System Administration
Showing results for 
Search instead for 
Did you mean: 

Yum update from Local Repository

Go to solution
Occasional Contributor

Yum update from Local Repository


We have a RHEL 5.X server A which is behind a firewall. This needs to be patched but because there is no internet connectivity to this server we are planning to download updates on the RHEL 5.X server B (which will be connected to internet) and then copy these updates to server A.


Now my question is what are the steps to install these updates after i copy the rpms to some location say /yum/Packages on server A.

Patrick Wallek
Honored Contributor

Re: Yum update from Local Repository

Try this link:


RHEL – local repository


How to Setup a Local Redhat 5 Update Repository


How to mirror RHN behind your firewall

Tim Nelson
Honored Contributor

Re: Yum update from Local Repository

copy your downloaded patches to a location on server. e.g. /patches

If not already done run createrepo

#>createrepo /patches


register this repo with yum by editing /etc/yum.repos.d/local.repo (call it anything you like)

the file should look like this (you can name things as you wish)

[Local Repo]
name=5.7 Local Repo created 122211

cleanup yum

#>yum clean all

check your repo registration

yum repolist

(it should only show the one you just created above)


yum check-update

(you should see a list of all the updates you just copied as applicable)


then update your system

yum update


You are done....