From 9541950fbb91a2c5af2827be81eb3d52b50937d2 Mon Sep 17 00:00:00 2001 From: Shahzeb Khattak <76687527+Shahzeb-Khattak@users.noreply.github.com> Date: Tue, 16 Sep 2025 00:09:49 +1000 Subject: [PATCH 1/2] Use rpm query all with skip integrity & signature checks for faster package fetching --- src/fetch.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 " ( \\ "; From 4c1e1e0e2707e7de86466ba1921ba6311ffa98e2 Mon Sep 17 00:00:00 2001 From: Shahzeb Khattak <76687527+Shahzeb-Khattak@users.noreply.github.com> Date: Mon, 27 Oct 2025 13:40:26 +1100 Subject: [PATCH 2/2] update README: fedora --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)