neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Very slow loading packages count

Open amithiel opened this issue 3 years ago • 3 comments

Hi! After years of using neofetch in every single distro (being desktop or server), i'm experiencing the first issue that's driving me mad:

Problem: Every time i reboot my server, the first time neofetch runs...it gets stuck on the package listing

time

I was using ubuntu server 20.04, and never had such issue. Some days ago, i decided to fresh install ubuntu server 22.04. Can't for the life of me figure out what's wrong.

cheers

Neofetch 7.1.0 ( also tried the master branch ) Log: https://pastebin.com/0EFbPmbz

amithiel avatar Jul 25 '22 11:07 amithiel

Same issue on Fedora, packages are slowest and it is bugging my UX

pendula95 avatar Aug 04 '22 11:08 pendula95

What I found is that the code in version 7.1.0 uses old code where packages number was obtained by doing rpm -qa After checking the code from master there is quick fix that obtains this data from dnf cache file. So I just used code from master to resolve the issue.

@amithiel In your case it can be dpkg is slow or snap is slow. This command is used to get data dpkg-query -f '.\n' -W I also have snap installed but it was fast in my case so I guess that is not the issue. You can check that also snap list I am not familiar with dpkg but there might be a faster way to get info about installed packages.

pendula95 avatar Aug 04 '22 12:08 pendula95

What I found is that the code in version 7.1.0 uses old code where packages number was obtained by doing rpm -qa After checking the code from master there is quick fix that obtains this data from dnf cache file. So I just used code from master to resolve the issue.

@amithiel In your case it can be dpkg is slow or snap is slow. This command is used to get data dpkg-query -f '.\n' -W I also have snap installed but it was fast in my case so I guess that is not the issue. You can check that also snap list I am not familiar with dpkg but there might be a faster way to get info about installed packages.

well, i tried pfetch and also screenfetch and they worked with no issues, which led me to blame snaps (since they only list dpkg). i'm fed up with ubuntu anyway, i migrated my server to debian stable, and i have zero issues now. cheers

amithiel avatar Aug 06 '22 20:08 amithiel