[CentOS] Yum upgrade inside firewall

Wed Dec 3 17:33:30 UTC 2008
nate <centos at linuxpowered.net>

mcclnx mcc wrote:
> We have several CENTOS 4.X which inside Firewall.  I can NOT run "yum"
> inside firewall to upgrade O.S. to new release.
> Â
> Does there has way I can download all RPM to otherside firewall server then
> transfer those files into servers inside firewall and upgrade.
> Â
> Anyone have procedure dicuments or website can be reference?
> Â

establish a mirror using rsync, this is what I run for CentOS 5.x

rsync -av --delete rsync://mirrors.kernel.org/centos/5/updates/x86_64/
latest/x86_64/
rsync -av --delete rsync://mirrors.kernel.org/centos/5/updates/i386/
latest/i386/

replace 5 with 4 to get CentOS 4.x

Then put those files on a system which your systems can access and
point yum to it. In my case an example would be to put this in your
yum config and disable all other external repositories

[updates]
name=CentOS-$releasever - Updates
baseurl=http://10.1.30.139/updates/centos_5/latest/$basearch/
gpgcheck=0

# this one specific to centos 5.1 32-bit
[base]
name=CentOS-$releasever - Base
baseurl=http://10.1.30.139/OS/centos_5_1_32/
gpgcheck=0

nate