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

Yum update from Local Repository

SOLVED
Go to solution
sbahra
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.

2 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: Yum update from Local Repository

Try this link:

 

RHEL – local repository

http://fojta.wordpress.com/2010/03/17/rhel-local-repository/

 

How to Setup a Local Redhat 5 Update Repository

http://www.spkaa.com/how-to-setup-a-local-redhat-5-update-repository

 

How to mirror RHN behind your firewall

http://kenfallon.com/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
baseurl=file:///patches
gpgcheck=1
enabled=1

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....