With APT (Ubuntu), downloaded packages are stored at:
/var/cache/apt/archives
Where does DNF (Fedora) store downloaded packages?
With APT (Ubuntu), downloaded packages are stored at:
/var/cache/apt/archives
Where does DNF (Fedora) store downloaded packages?
DNF stores downloaded packages and metadata in /var/cache/dnf, in various per-repository subdirectories.
By default, after a successful installation, the packages are removed. You can change this behavior with keepcache in /etc/dnf/dnf.conf.
Note that PackageKit — in use on Fedora Workstation by default — puts packages in /var/cache/PackageKit, so you can get duplicates. Harmonizing this is work in progress.
It doesn't - once a package is installed the downloaded rpm file is not normally kept.
The file will be in the cache (in /var/cache/dnf) briefly but once it has been successfully installed that will be removed.
newer version of dnf use: (libdnf is not dnf --version)
/var/cache/libdnf5
and dnf system-upgrade use:
/var/lib/dnf/system-upgrade
I'm upgrading some machines from Fedora 41 to 42. Running dnf system-upgrade download --releasever=42 today, I discovered that RPMs are now being stored in /usr/lib/sysimage/libdnf5/offline/packages/ which is different from where they used to go. I'm guessing this is a change made going from DNF version 4 to 5.