With APT (Ubuntu), downloaded packages are stored at:


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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.