Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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.