Separate pacman and AUR packages in package count for Arch-based distros
#2254
Replies: 5 comments 2 replies
Considerable
What about custom repos? And if we do this for pacman, should we do the same for apt, rpm, apk, etc? No for me.
Only |
|
In that case, maybe we can make use of the From a quick glance at |
|
I added some code to my https://github.com/ObjectsCountries/fastfetch/commit/a7663e8933a254668eb50b6ae5a505ed10d9c13b Here's what it looks like so far (I actually have 15 foreign packages on my system according to
And with
I think everything's good, but I'm a bit unsure about if I modified src/modules/packages/packages.c properly. Please let me know if any changes are needed before I implement the foreign package detection. |
|
Hi, Each package has a description file located at /var/lib/pacman/local/package/desc. On my system (CachyOS, using yay for AUR), I noticed that AUR packages consistently show:
For official packages, these two tags have different values. However, %PACKAGER% is not "Unknown Packager" for manually installed packages. That said, I’m unsure whether this behaviour is consistent across all packages/systems, as I couldn’t find official documentation on desc files. It would be great if others could test this on their systems to confirm whether this method works before we implement it in fastfetch. Could this be a viable approach? |
That is because in
I have mine configured however most that create repos for Arch derivate don't so is not reliable for that |


Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
I'm thinking of making a pull request that adds an option to separate
pacmanpackages from AUR packages when listing the number of packages on Arch Linux-based distributions (i.e.Packages: 600 (pacman), 400 (AUR), 30 (flatpak)and so on). Additionally, I'd like to include an option to separate repositories as well (i.e.Packages: 100 (core), 200 (extra), 300 (multilib), 400 (AUR), 30 (flatpak)and so on). Is this something that anyone might be interested in?From what I can tell, I would need to include the ALPM C library, is that okay? Also, should this use the
combinedoption of the Packages module? This option is a boolean, but maybe it could be changed to be either a boolean or a string:falseto separate allpacmanrepositories,trueto combinepacman's package count with the AUR's, and maybe something like"pacman"to combine all ofpacman's repos and display them separately from the AUR. If I need to create a separate option, I can do that as well.I'm on Artix Linux, so I will be able to test this myself, as well as account for repositories other than
core,extraandmultilib. One last thing: I promise not to vibe-code this at all.All reactions