LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-11-2008, 07:36 AM   #1
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Question How do I update RedHat 5.1 x86_64 iso with latest RPM's


Hi,

I have a RedHat 5.1 x86_64 iso image which we're going to use to kickstart 100+ servers. As these 100 servers are to be built over a couple of months, I don't want to run a Post-Kickstart 'yum update' as this will leave servers on different RPM versions.

What I'd like to do is update the ISO with all the latest RPM's, and then roll this out as the source of my kickstart's.

Has anyone any experience with this or can you suggest an alternative method?

Many Thanks,

Stuart.
 
Old 08-11-2008, 07:46 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why don't you download the relevant rpms to a server, and create a repo on that server, and do a yum update from your own server? That way you'll have control of all versioning.

Look into createrepo for repo creation
 
Old 08-12-2008, 10:16 AM   #3
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Original Poster
Rep: Reputation: 36
BillyMayDay, thanks for your options. I tried the createrepo option and either I'm too thick to understand it (probably) or I had something missing in the install but couldn't get it to work.

What I did to get it working is:

Built a client from my (out of date) iso image.
install the yum-readonly package
Run a 'yum update --readonly', this downloads the packages from RHN but doesn't install them, just stores them in the /var/cache/yum/<distro>/packages directory.
I put the new packages onto an NFS Server (I.e. not the client).
Altered %post to mount the NFS area to /mnt, and to Run 'rpm -U /mnt/*' then umount /mnt

When the host rebooted I registered the client and 'yum update all' returned no packages!

Whole Kickstart took about 30 minutes, which is great!
 
  


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
Where to get the latest rpm's? slogal Linux - Newbie 3 04-27-2005 01:10 PM
X won't start except as root after latest Redhat/Fedora update hlslaughter Linux - Software 2 10-25-2004 06:03 PM
Where does u2date put the update RPM's paul.nel Red Hat 5 04-05-2004 03:08 PM
How do I update 1000 RPM's without RHN's Up2Date tool? anticitan Linux - Software 3 03-24-2004 05:11 PM
Yast Online Update and RPM's Diode Linux - Software 0 10-23-2003 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:09 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