diff --git a/README.md b/README.md index 446fb5c..2916320 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ afetch is written in C99, meaning that it should be able to be compiled with alm * Deepin * Elementary OS * EndeavourOS -* Fedora (slow due to package manager) +* Fedora * FreeBSD * Gentoo * MacOS (homebrew) diff --git a/src/fetch.c b/src/fetch.c index 3cfb582..dc61a45 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -289,11 +289,7 @@ void *os() info.col7 = BBLUE "\\ \\" BWHITE "__/ | " BBLUE; info.col8 = BBLUE " \\" BWHITE "(_____/" BBLUE; - info.getPkgCount = - "[[ $(which sqlite3 2>/dev/null) && $? -ne " - "1 ]] && (sqlite3 " - "/var/lib/rpm/rpmdb.sqlite \"select * from " - "Name\"|wc -l) || rpm -qa | wc -l"; + info.getPkgCount = "rpm -qa --nodigest --nosignature | wc -l"; } else if (strncmp(osname, "Gentoo", 6) == 0) { info.col1 = BMAGENTA " _-----_ \n"; info.col2 = BMAGENTA " ( \\ ";