1

I've got a question about yum. When I upgrade my system using dnf, it downloads packages from the Web. Can I set dnf configuration so that I could save rpm files for later use, with the same system but without Web connection?

4

I believe the option that you are looking for is keepcache=1 which you would need to set in /etc/dnf/dnf.conf. After doing that you should see the files in /var/cache/dnf/.

If you would like to remove the downloaded rpm's at a later time you can use dnf clean packages.

  • thank you @LucasMcCoy . I have one more Q please, I think that this is going to work the next time I upgrade/download a RPM, am I right? (if yes , can you show me how to save the current RPMs.) – 0x0584 Mar 16 '16 at 15:12
  • @010010001 Yes this will work for rpm's that you install going forward. Packages that you have already installed were deleted after they were installed. You can download the rpm from a website or you could reinstall the package via dnf to get a copy of the rpm. – Kredns Mar 16 '16 at 15:36
  • great. thanks bro, that is going to help me a lot – 0x0584 Mar 16 '16 at 22:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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