I need to install git on a machine which doesn't have internet connection. I am wondering if there is any option to ask yum to keep a backup of rpm and dependencies it downloads.



Simply just change keepcache=0 to keepcache=1 in /etc/yum.conf file.

NOTE: ‍‍‍keepcache=0 exists by default and you only need to change it to 1; if it's not there just add keepcache=1 to the file.

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.