Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RHEL and CentOS yum upgrading 1

Status
Not open for further replies.

stfaprc

Programmer
Feb 10, 2005
216
US
Is there way using yum (or apt-get)to upgrade from RHEL-5 to CentOS-5.2 ? (the RHEL5 is "5.0")
 
You should be able to simply type "yum update" and all the udates since the installation will be updated. If you do not have yum updating your system automatically, you may find quite a few packages have been updated. I installed 5.0 and update automatically. When I just checked /etc/redhat-release, it said I had 5.2 so I imagine it updates that file also. If your doesn't say 5.2, you may still be up to date. Just go to centos.org and check the release notes on 5.2. Then compare the changed packages with your system using "rpm -q packagename" and see if they are the latest and greatest. As for the latest version of RHEL, that too is version 5.2. In fact, Centos updates theirs after a change is made to the "upsteam" (RHEL) version.
 
I guess it wouldn't hurt for me to check a few facts before shooting off my mouth. I happened by the Red Hat site and saw that version 5.3 came out January 20th. I misspoke when I said all you had to do is type "yum update". For a version change you do "yum upgrade". As I said earlier, mine seemed to do it running update automatically so it may work either way but I wanted to let you know.
 
Like I wrote, I want to do an inplace replacement of RHEL5.0 with CentOS-5.2
So it looks like that the way to do this, if possible to begin with, is to use mrepo which replaces yum and apt.
 
I don't know anything about mrepo but it doesn't seem to me that you need to replace yum. You just need to get yum to start using the Centos repositories. See if this helps:

Code:
cp /etc/redhat-release /etc/redhat-release-saved

rpm -e --nodeps redhat-release-notes redhat-release yum-rhn-plugin redhat-logos

rpm -Uvh [URL unfurl="true"]http://mirror.stanford.edu/yum/pub/centos/5.2/os/i386/CentOS/centos-release-5-2.el5.centos.i386.rpm[/URL] [URL unfurl="true"]http://mirror.stanford.edu/yum/pub/centos/5.2/os/i386/CentOS/centos-release-notes-5.2-2.i386.rpm[/URL]

yum update


If this doesn't work, you can download the files from a mirror of your choice and install them directly. You will also need the ones for your specific system. For example, if you have a 64 bit system, these are not the ones you want.

Here is a list of mirror sites:
 
Hi, I'm back :)

I did the
which seems to have worked. At least, I was able to reboot.
I'm a little concerned about all the rpmnew files created - do I really need to review all of them?

And I'm confused by this output:
Code:
# uname -a

Linux name1.name0.com 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
So the machine is still running RHEL5.0? But now it has lots of CentOS5.2 apps? And what is with the x86_64 ?

thanks
 
stfaprc said:
So the machine is still running RHEL5.0? But now it has lots of CentOS5.2 apps? And what is with the x86_64 ?

Isn't that kind of what you were aiming for? :)

Are you sure the machine architecture wasn't x86_64 before as well? You have a 64-bit CPU (otherwise it wouldn't be running!), so that is the optimal choice for you.

Annihilannic.
 
Hi, I too am back! ;-)

So the machine is still running RHEL5.0?

Can't tell by this. The only difference between RedHat and Centos is the branding/graphics. Everything else is open source. Most naming has been left in tact. When you ran yum update, it should have updated the kernel because it has changed since 5.0. According to the version and release number uname is showing, it looks like you have the latest and greatest. You can look at /boot/grub/grub.conf and see if there is a different kernel to choose from. For example, in addition to the el5 there may be an el5xen along with older versions. As for the x86_64 thing, Im at a loss myself. The first x86_64 should be your system's architecture as Annihilannic points out. The second one should be the OS version running. If you were running a pentium 4 athlon machine it should look something like this:

Linux name1.name0.com 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 i686 athlon i386 GNU/Linux.

I'm not sure why it's showing that you have x86_64 unless it's telling the truth and you just don't believe it. ;-)

If your servers are all working correctly, I wouldn't put a priority on checking out each rpmnew file. Sometimes however, they made changes to some default configs so it wouldn't hurt to take a peek at tem sooner or later.




 
the WebMin still works! :)

OK, it is reporting:
Operating system CentOS Linux 5.2
Kernel and CPU Linux 2.6.18-92.1.22.el5 on x86_64

I'm still confused about chipset, since I had used the i386 links to update to CentOS5.2 from RHEL5 . Unless - would the scripts for the i386 be smart enough to redirect to the x86_64 libraries and packages ?

Now to test my sendmail, DNS server and firewall setup
 
i386 is a "lowest common denominator"; since the packages in question are not a critical part of the OS (from a performance perspective), rather than release versions for each architecture they have just chosen the most compatible. So no redirection involved; they just use the same package on both architectures.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top