Switch from RHEL5 to CentOS5

If it doesn't fit in another category, ask it here.
t1shopper
Posts: 21
Joined: 2009/12/03 23:15:27
Contact:

Switch from RHEL5 to CentOS5

Post by t1shopper » 2009/12/03 23:37:58

I don't believe we're getting our money's worth for our $500 per year RHEL5 license so we want to move over to CentOS and donate the money here instead.

Since we run a really basic server (PHP5, MySQL5, Apache2) I believe all we need to do is change the repositories over but having never done that, can you point me to instructions? (I saw the thread [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=7905]here[/url] but it's from 2007 so maybe it's out-of-date?)
[font=Courier]
$ uname -a
2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/*release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

---== YUM Config files ==---
/etc/yum/yum-updatesd.conf
/etc/yum/pluginconf.d/rhnplugin.conf
/etc/yum/pluginconf.d/security.conf
/etc/yum.repos.d/adobe-linux-i386.repo
/etc/yum.repos.d/pidgin.repo
/etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[/font]

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Switch from RHEL5 to CentOS5

Post by toracat » 2009/12/04 01:00:50

The CentOS Wiki article (thanks to [b]pschaff[/b]):

http://wiki.centos.org/HowTos/MigrationGuide

will help you. Look for the "Migration from RHEL5 to CentOS5" section.

t1shopper
Posts: 21
Joined: 2009/12/03 23:15:27
Contact:

Re: Switch from RHEL5 to CentOS5

Post by t1shopper » 2009/12/04 06:32:44

If I'm reading the migration guide correctly it seems drastic to remove all RHEL rpm's with [font=Courier]$ rpm -e [/font] then reinstall everything?

At this time, I just want a way to keep up on security patches - not wipe everything clean.

I had thought we could just "use CentOS for updates?" Is that possible? We have tons of PHP code and MySQL databases running - if we switch out the PHP and MySQL rpm's I just don't believe that - especially the MySQL databases - would come back up. We'd probably need to do restores on the databases.

$100 donated to CentOS immediately for solid steps on how to migrate over smoothly.

adebened
Posts: 290
Joined: 2007/04/16 22:03:20

Re: Switch from RHEL5 to CentOS5

Post by adebened » 2009/12/04 07:52:06

Hello,

The last section of the above howto ("Migration from RHEL5 to CentOS5") should be all that's required. After that, when you do a yum update, packages will automatically be hauled in from the CentOS repositories instead of RHEL. You won't need to delete any other packages than the four mentioned in the howto. The migration is quite smooth from what I recall (I did it to a machine once). I think there was some very minor issue with the package desktop-backgrounds-basic but the post [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=7905]here[/url], near the bottom, tells you how to get around that (it might not even be a problem anymore).

[quote]
$100 donated to CentOS immediately for solid steps on how to migrate over smoothly.
[/quote]
Umm...

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Switch from RHEL5 to CentOS5

Post by pschaff » 2009/12/04 18:56:33

[quote]
t1shopper wrote:
If I'm reading the migration guide correctly it seems drastic to remove all RHEL rpm's with [font=Courier]$ rpm -e [/font] then reinstall everything?
[/quote]
Not sure why you consider removing 4 RPMs (redhat-release-notes redhat-release yum-rhn-plugin redhat-logos) and installing 3 (centos-release centos-release-notes redhat-logos) "drastic".

[quote]
At this time, I just want a way to keep up on security patches - not wipe everything clean.

I had thought we could just "use CentOS for updates?" Is that possible? We have tons of PHP code and MySQL databases running - if we switch out the PHP and MySQL rpm's I just don't believe that - especially the MySQL databases - would come back up. We'd probably need to do restores on the databases.

$100 donated to CentOS immediately for solid steps on how to migrate over smoothly.[/quote]
The documented procedure should provide what you say you want. The CentOS donation policy seems to still be under [url=http://www.centos.org/modules/tinycontent/index.php?id=23]review[/url], so perhaps you could offer to buy the developers a brew. :-)

t1shopper
Posts: 21
Joined: 2009/12/03 23:15:27
Contact:

Re: Switch from RHEL5 to CentOS5

Post by t1shopper » 2009/12/10 20:03:36

adebened & pschaff: Thank you , I missed it that it's only removing 4 RPMs! Thank you. So now since I cannot give money to CentOS, how do I buy developers a brew? Seriously.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Switch from RHEL5 to CentOS5

Post by toracat » 2009/12/10 20:48:13

[quote]
t1shopper wrote:
how do I buy developers a brew? Seriously.[/quote]
By going to one of these beer events if you are in the London or Berlin area:

http://wiki.centos.org/Events/BeerEvent

t1shopper
Posts: 21
Joined: 2009/12/03 23:15:27
Contact:

Re: Switch from RHEL5 to CentOS5

Post by t1shopper » 2009/12/14 01:17:38

Humm. I'm in California, USA. How about this: http://www.mrbeer.com/category-exec/category_id/181

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Switch from RHEL5 to CentOS5

Post by toracat » 2009/12/14 15:29:49

Being in California, I should offer to collect, brew and drink the beer on the CentOS devs behalf. [Thanks, [b]Alan[/b], for this advice] :-D

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Switch from RHEL5 to CentOS5

Post by AlanBartlett » 2009/12/14 16:04:14

The other alternative would be to put aside whatever sum of money you would like to donate -- until such time as monetary donations can be accepted once again.

Those of us who are accustomed with the [i]CentOS[/i] project instinctively know that things move very slowly in [i]CentOS-devs land[/i].

Post Reply