Fedora Linux Support Community & Resources Center
  #1  
Old 13th October 2008, 08:03 PM
lemon8h8ead Offline
Registered User
 
Join Date: Oct 2008
Location: Dallas, Texas, USA
Posts: 3
Migrate from RHEL to Fedora or CentOS?

For various reasons, a friend of mine would like to walk away from an x86 RHEL 4 license and consider using Fedora or CentOS instead. No matter what approach is taken, it will be a distraction from business as usual. So, this manager is looking for the "lesser of evils".

There are very few applications installed on the subject server:
  • Apache web server + Perl CGI scripts
  • Oracle database server
No matter what course of action is taken, I'll help this friend export+backup all of the web configuration files, web objects, Perl CGI scripts, database tables, database DDL scripts, client application source code, and user directory tree contents. Fortunately, this manager maintains good notes and keeps the important items in a couple of trees. Also, an independent backup system receives deltas every night via FTPS after end of day processing. So, this business is in good shape for a migration.

We were curious about doing a conversion to either Fedora or (perhaps) CentOS instead of re-creating the world. We have time. This will probably take place during the last 2 weeks of the year (relatively "dead" time for the business).

Questions:
1 - Is an "upgrade" to Fedora even possible? Been done before?
2 - Would CentOS 5 be a closer fit and, therefore, lower risk?
3 - Or does doing a ground-up make more sense? (That would be my approach if it were MY business.)

Thank you in advance.
Reply With Quote
  #2  
Old 13th October 2008, 08:05 PM
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 56
Posts: 12,371
( Moved to Linux Chat )
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 13th October 2008, 08:11 PM
leigh123linux
Guest
 
Posts: n/a
It would be possible to update to CentOS 5 ( it's real easy )


Code:
su
rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/os/i386/CentOS/centos-release-5-2.el5.centos.i386.rpm
yum clean all
yum update
Reply With Quote
  #4  
Old 13th October 2008, 08:14 PM
nick.stumpos Offline
Registered User
 
Join Date: Feb 2005
Location: Lansing, Mi
Age: 29
Posts: 2,222
yes centos is essentially rhel just without the copyrighted graphics etc. the code is the same. fedora is far more bleeding edge. i would recommend centos over fedora for a production server any day of the week
__________________
As always
Love, Life, Loyalty, Wisdom, Knowledge, And Understanding
FC6: Common Questions answered
Reply With Quote
  #5  
Old 13th October 2008, 10:37 PM
lemon8h8ead Offline
Registered User
 
Join Date: Oct 2008
Location: Dallas, Texas, USA
Posts: 3
Thanks all for the replies.

One last (not so small, perhaps) thing: There is no `yum` on this RHEL4. I don't know why or when yum might have been introduced to RHEL.

If installing centos-release-5-2.el5.centos.i386.rpm "registers" the system with Centos so that running up2date will work, then probably, this code will work just as well:
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox -u
Or does someone think that I ought to install just `yum` with up2date and do the mass update with yum?
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox yum
sudo yum update
Of course, if either code set doesn't work, then we have to strongly consider a re-build.

Here is the content of that RPM file:
/etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
/etc/pki/rpm-gpg/RPM-GPG-KEY-beta
/etc/redhat-release
/etc/sysconfig/rhn
/etc/sysconfig/rhn/sources
/etc/yum.repos.d
/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Media.repo
/usr/share/doc/centos-release-5
/usr/share/doc/centos-release-5/EULA
/usr/share/doc/centos-release-5/GPL
/usr/share/doc/centos-release-5/autorun-template
/usr/share/eula/eula.en_US
/usr/share/firstboot/modules/eula.py
/usr/share/firstboot/modules/eula.pyc
/usr/share/firstboot/modules/eula.pyo
Thanks in advance.
Reply With Quote
  #6  
Old 14th October 2008, 12:59 AM
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,851
Quote:
Originally Posted by lemon8h8ead View Post
Thanks all for the replies.

One last (not so small, perhaps) thing: There is no `yum` on this RHEL4. I don't know why or when yum might have been introduced to RHEL.

If installing centos-release-5-2.el5.centos.i386.rpm "registers" the system with Centos so that running up2date will work, then probably, this code will work just as well:
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox -u
Or does someone think that I ought to install just `yum` with up2date and do the mass update with yum?
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox yum
sudo yum update
Are you talking about "upgrading" from RHEL4 to CentOS 5? I've not used RH at all, but I have used CentOS, and it seems that there's too much difference between the two to switch from one to the other without a fresh install.

Is that what you were getting at, Leigh - that you can "upgrade" a running RHEL box to CentOS? Seems far-fetched, but I can be an idiot sometimes.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #7  
Old 14th October 2008, 06:00 AM
NoEffex Offline
Registered User
 
Join Date: Oct 2008
Posts: 299
Yeah, if you want the latest packages, get fedora. If you want stability, go CentOS.
__________________
Intel Core 2 Quad Q8400 CPU (2.66 GHz)
3gb RAM
500GB HD
Debian Lenny x86_64 & Windows 7 Ultimate x64
NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

Second(Server) PC:
512mb RAM
80gb TiVO HD(Lololol, took it from TiVO, old one broke)
PC-BSD 7.1.1 x86
Ossom router decked out with DD-WRT as a bridge providing net
Sign the Online Petition to bring Crysis 2 to Linux/Mac!
Reply With Quote
  #8  
Old 14th October 2008, 06:07 AM
leigh123linux
Guest
 
Posts: n/a
Quote:
Originally Posted by tjvanwyk View Post
Are you talking about "upgrading" from RHEL4 to CentOS 5? I've not used RH at all, but I have used CentOS, and it seems that there's too much difference between the two to switch from one to the other without a fresh install.

Is that what you were getting at, Leigh - that you can "upgrade" a running RHEL box to CentOS? Seems far-fetched, but I can be an idiot sometimes.
RHEL & CentOS are basically the same OS so the update should be easy .
Reply With Quote
  #9  
Old 14th October 2008, 06:10 AM
leigh123linux
Guest
 
Posts: n/a
Quote:
Originally Posted by lemon8h8ead View Post
Thanks all for the replies.

One last (not so small, perhaps) thing: There is no `yum` on this RHEL4. I don't know why or when yum might have been introduced to RHEL.

If installing centos-release-5-2.el5.centos.i386.rpm "registers" the system with Centos so that running up2date will work, then probably, this code will work just as well:
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox -u
Or does someone think that I ought to install just `yum` with up2date and do the mass update with yum?
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox yum
sudo yum update
Of course, if either code set doesn't work, then we have to strongly consider a re-build.

Here is the content of that RPM file:
/etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
/etc/pki/rpm-gpg/RPM-GPG-KEY-beta
/etc/redhat-release
/etc/sysconfig/rhn
/etc/sysconfig/rhn/sources
/etc/yum.repos.d
/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Media.repo
/usr/share/doc/centos-release-5
/usr/share/doc/centos-release-5/EULA
/usr/share/doc/centos-release-5/GPL
/usr/share/doc/centos-release-5/autorun-template
/usr/share/eula/eula.en_US
/usr/share/firstboot/modules/eula.py
/usr/share/firstboot/modules/eula.pyc
/usr/share/firstboot/modules/eula.pyo
Thanks in advance.

I would use yum to update .
Reply With Quote
  #10  
Old 14th October 2008, 06:38 AM
Evil_Bert Offline
Retired Again - Administrator
 
Join Date: Nov 2007
Location: 'straya
Posts: 3,279
RHEL and CentOS packages are allegedly interchangeable - in most cases they're compiled from exactly the same source, so they should be. Here, though, you're upgrading from one major release to the next, so there's risk of breaking something. From what I've read on the web, CentOS <5.0 can't be upgraded successfully to CentOS 5.x due to too many interdependencies .... but there may be fixes.

It would be interesting to see if it worked. If willing to try, I would:
a. get yum (any version)
b. install the CentOS 5.2 release rpm
c. check CentOS 5.2 is your only enabled repo (just in case)
d. update yum separately:
Code:
yum update yum
e. then upgrade the rest of the system:
Code:
yum upgrade
I'd also be prepared to do a fresh install if the above fails.

Here are a couple of sites with useful advice:
http://www.cyberciti.biz/tips/upgrad...-51-to-52.html
http://www.silfreed.net/content/centos-upgrade-success

Edit: Even though we normally accept that yum upgrade and yum update now do exactly the same thing (due to obsoletes=1 being set in yum.conf), if you're getting yum from CentOS, I don't know what the default setting in yum.conf will be, hence the suggestion of yum upgrade. Alternatively, you could use yum update --obsoletes.
__________________
Marching to the beat of his own conundrum.

Last edited by Evil_Bert; 14th October 2008 at 06:58 AM.
Reply With Quote
  #11  
Old 14th October 2008, 07:56 AM
Evil_Bert Offline
Retired Again - Administrator
 
Join Date: Nov 2007
Location: 'straya
Posts: 3,279
Quote:
Originally Posted by lemon8h8ead View Post
... this manager is looking for the "lesser of evils" ...
Having thought about it a bit more ...

Have you considered jus changing to CentOS 4.x? CentOS 4 will remain supported until Feb, 2012, which will give you time to consider other measures - you may even plan on replacing hardware in that timeframe or moving to a virtualised server, in which case, you'd need to do a fresh install then, anyway. So changing to CentOS 4.x may give you what you want now with minimum pain.

Changing from RHEL 4.x to CentOS 4.x seems to be relatively routine. Here's one guide:
Converting RHEL 4 to CentOS 4.
__________________
Marching to the beat of his own conundrum.
Reply With Quote
  #12  
Old 14th October 2008, 10:23 AM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,048
Download the CentOS 5.2 dvd and do a proper upgrade.


SJ
__________________
Do the Math
Reply With Quote
  #13  
Old 21st October 2008, 04:35 AM
lemon8h8ead Offline
Registered User
 
Join Date: Oct 2008
Location: Dallas, Texas, USA
Posts: 3
Converting RHEL 4 to CentOS 4 - Done

I followed the following procedure verbatim and it worked like a charm:

http://www.cse.ucsd.edu/deptadmin/cs...o_centos4.html

Thank you, Evil Bert.

It turns out someone at UCSD had developed a shell script to automate the process (at the bottom of http://www.cse.ucsd.edu/deptadmin/cs..._overview.html). I did the manual procedure which did not take very long.

Thanks also to everyone else for the other comments.

Last edited by lemon8h8ead; 21st October 2008 at 04:41 AM.
Reply With Quote
  #14  
Old 21st October 2008, 08:57 AM
Evil_Bert Offline
Retired Again - Administrator
 
Join Date: Nov 2007
Location: 'straya
Posts: 3,279
Quote:
Originally Posted by lemon8h8ead View Post
Thank you, Evil Bert.
You're welcome. We like to see satisfied customers.

(Maybe now is a good time to ask the Admin's for that raise ..... )
__________________
Marching to the beat of his own conundrum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To: Attach a Fedora/RHEL/CentOS system to an Active Directory Domain aphilipoff Guides & Solutions (No Questions) 10 29th March 2009 10:33 PM
RHEL/CentOS X.0 -> X.1 -> X.2 jvroig Linux Chat 5 29th May 2008 12:38 AM
Laptop hardware support on RHEL/Fedora/Centos Effie04 Linux Chat 0 9th November 2006 10:06 AM
How migrate RHEL WS to FC4? BabyConga EOL (End Of Life) Versions 2 10th November 2005 06:23 AM


Current GMT-time: 14:13 (Tuesday, 02-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat