On RHEL-like systems, sometimes neofetch uses dnf to count packages and sometimes it uses rpm. I don't know why/when it chooses one over the other; on RHEL 8.7 (installed through EPEL) it seems to use rpm, but if I install it on the same OS through nix-shell on RHEL 8.7 it uses dnf. (I tried passing --config none and this doesn't seem to affect the output). Either way, both implementations have a few bugs:
rpm issues
rpm -qa outputs packages that correspond to gpg keys that are installed through rpm as packages. This is probably fine, as long as it's consistent with the behaviour on other OSs, but it means that the number of packages reported is different than when using dnf
dnf issues
It counts the "Installed packages" text that's printed at the top of dnf list --installed as a package. This text is printed even if the -q option is passed to dnf.
I read the neofetch code and realized what I said here was incorrect. The database and dnf list --installed give different responses for whatever reason. I don't think this part is a bug in neofetch.
Neofetch version
7.1.0
Screenshot
Config file
I don't have a personal config file, and I can reproduce this issue when using --config none.
Verbose log
Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.
Description
On RHEL-like systems, sometimes neofetch uses
dnf
to count packages and sometimes it usesrpm
. I don't know why/when it chooses one over the other; on RHEL 8.7 (installed through EPEL) it seems to userpm
, but if I install it on the same OS throughnix-shell
on RHEL 8.7 it usesdnf
. (I tried passing--config none
and this doesn't seem to affect the output).Either way, both implementations have a few bugs:rpm issues
rpm -qa
outputs packages that correspond to gpg keys that are installed through rpm as packages. This is probably fine, as long as it's consistent with the behaviour on other OSs, but it means that the number of packages reported is different than when usingdnf
dnf issues
It counts the "Installed packages" text that's printed at the top ofdnf list --installed
as a package. This text is printed even if the-q
option is passed todnf
.I read the neofetch code and realized what I said here was incorrect. The database and
dnf list --installed
give different responses for whatever reason. I don't think this part is a bug in neofetch.Neofetch version
7.1.0
Screenshot
Config file
I don't have a personal config file, and I can reproduce this issue when using
--config none
.Verbose log
neofetch -vv 2> neofetchlog
neofetchlog
to pastebin, gist or equivalent.