RPM updates

Issues related to applications and software problems
Post Reply
brenemak
Posts: 1
Joined: 2012/10/23 16:29:29

RPM updates

Post by brenemak » 2012/10/23 16:34:12

What is the best way to get rpm updates on a server that is not able to access the internet? Is it possible to get specific updates when needed?

User avatar
TrevorH
Site Admin
Posts: 33225
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

RPM updates

Post by TrevorH » 2012/10/24 07:52:12

I don't think there's an easy way to do this at all. One possible method is to set up another system with the same packages installed (e.g. rpm -q --qf '%{name}.%{arch}' will list them) and change the keepcache=0 to 1 in /etc/yum.conf and just run `yum update` on the connected system. Once it's complete you can tar up the contents of /var/cache/yum and transfer that to the unconnected system and run yum update there.

The other and probably more maintainable solution is to create a local mirror of the CentOS yum repo inside your firewall where the unconnected system can reach it and update from there.

Post Reply