This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Blog About Dedicated Servers

« | »

yum upgrade; redhat 9 -> CentOS 3.1

Luigi Ramone | 15 December, 2005 20:02

Here are the steps i took to update a Redhat 9 box running on a minimal install ( no X, etc ) as suitable for a server to CentOS 3.1 ( which is a fork of RedHat Enterprise Linux v3 )..

I took a fresh install of redhat 9, slapped it on a test box then updated it with up2date. I then installed yum for redhat 9 which can be found here:
Yum Download

Now, you might want to rebuild the rpm database, just incase, thats up to you:
# rpm -vv --rebuilddb

I then modified /etc/yum.conf to look like this:



Code

---------------------------------

[main]
exclude=httpd* mysql* php* perl*
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
tolerant=1
exactarch=1

[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/os/i386/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/updates/i386/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/addons/i386/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.pacific.net.au/linux/cAos/centos-3/3.1/extras/i386/
gpgcheck=1

---------------------------------

Change "http://mirror.pacific.net.au" to a mirror near you, a list can be found here:
CentOS Mirrors

After that you need to import the GPG key for the centos RPMs. Issue the following command:
# rpm --import http://mirror.centos.org/centos/3.1/i386/RPM-GPG-KEY-CentOS-3

Nows the time you want to check you have made appropriate backups, etc ( i hope you all test this out before rolling production servers! ).

Next step is to run the following command:
# yum upgrade

This will download the rpm headers and determine what needs to be done, play carefull attention of course here and in all parts if this process for errors. Yum will then ask you if you are sure you want to go ahead, if no errors are present, press "y" then "enter".

This process will take a while, depending on your connection and the gear your installing it on of course. Go brew a fresh pot of coffee, order a pizza, grab a movie or GET BACK TO WORK YOU!!!!

After thats done, check for errors, make sure the new kernel is installed by issueing:
# rpm -qa|grep kernel

You should be presented with a kernel versioned like this: 2.4.21-15.EL.c0 as well as your other kernels previously installed. Check your boot loader to make sure the new kernel is default.

Finally run:
# yum update

Just to ensure you have everything you need.

Now your set to reboot ( hopefully ):
shutdown -rf now

Add comment

Topic

Text

Your name

Your email address (if any)

Your personal page (if any)


authimage




Powered by Boonic, Bloogo & pLog
This Blog does not have any affiliation nor relation with the mentioned companies. All the logotipos, trade names and images are property of the companies that registered them.