hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.15k stars 90 forks source link

Use dnf5 instead of dnf if available #251

Closed Seirdy closed 2 months ago

Seirdy commented 2 months ago

Is your feature request related to a problem? Please describe.

dnf4 is notoriously slow and memory-intensive. dnf5 can list the system package count much faster than dnf4 can. Unfortunately, at the time of writing, it's not the default version of DNF on any version of Fedora or derivatives.

Describe the solution you'd like

hyfetch/neowofetch should detect the presence of dnf5 on DNF-based systems and use it when available.

hykilpikonna commented 2 months ago

Currently, neofetch is directly querying /var/cache/dnf/packages.db for the package count, which is faster than both dnf and dnf5.

image

image