LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2009, 02:38 PM   #1
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Rep: Reputation: 15
getting redhat to update from an internal repository


I have multiple redhat 5 servers that are behind a firewall. I used the mirror script from here http://www.webmo.net/support/yum_repository.html and downloaded ftp://mirror.switch.ch/pool/3/mirror/centos/5.2/ updates and os to my internal repository. Changed my repo files on one of my servers to point to these directories. When I run yum check-update, it connects to the repository

[root@lxtpmb01 yum.repos.d]# yum check-update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up repositories
rhel5-swrepo 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 434 kB 00:00
################################################## 959/959
primary.xml.gz 100% |=========================| 434 kB 00:00
################################################## 959/959


But then nothing. It didn't find any files that need to be updated.

Is this because the OS is a redhat release and is looking for redhat files and the updates are centos? Or I did something else wrong?
 
Old 04-11-2009, 12:54 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Centos only supports the most current point release. Since Centos 5.3 is out, there will be no further updates to 5.2. There actually have not been any Centos5.2 updates since RHEL5.3 was released(almost 2months?). You can copy (change your source address 5.2 to 5.3) the new files and try again.
 
Old 04-13-2009, 09:24 AM   #3
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Original Poster
Rep: Reputation: 15
The 5.2 mirror that I used has new files in the updates directory. They are certainly newer than the redhat server that I'm trying to update, which was last updated over a year ago. What I don't understand is why my yum check-update didn't recognize those newer files as files that it should use for updates.
 
Old 04-13-2009, 12:55 PM   #4
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Original Poster
Rep: Reputation: 15
found the problem

I had to clear the yum cache on the server I was trying to update by rm'ing everything from /var/cache/yum. Once I did that and ran yum check-update it found all the new files on my repository.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No active update repository available kaplan71 SUSE / openSUSE 3 01-06-2009 09:35 AM
Background repository update for smart ? dukeinlondon SUSE / openSUSE 0 06-29-2007 05:59 AM
Repository to update program version J_angel2000 Linux - Software 2 05-12-2007 12:49 AM
repository for offline update seuchato SUSE / openSUSE 1 08-05-2006 06:26 AM
apt Repository Update Problem pwo Linux - Software 5 10-12-2004 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration