Hi there,
fedora 40, using dnf3 used this nice db file with a list of all packages: /var/cache/dnf/packages.db
Alas, fedora 41 switched to dnf5 which no longer uses this file so:
% dnf install python3-
No matches for: `dnf command' or `available package'
The current layout of the cache folder looks like this: % find /var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/repodata
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/repodata/repomd.xml
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/repodata/b826501210413564ce176a21fac9732a065d87670422eaa2054ac1bc5ecb06c9-primary.xml.zck
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/repodata/5c3ec73a978ca882d72f61c8484b3915d1690e89dc7a13f5951eb0de96b64940-comps-Everything.x86_64.xml.gz
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/metalink.xml
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/solv
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/solv/rawhide-group.solvx
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/solv/rawhide.solv
/var/cache/libdnf5/rawhide-2d95c80a1fa0a67d/packages
I can't help with writing new code for this problem, but I'll gladly help with testing. Cheers, Han