LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 04-12-2007, 10:58 PM   #1
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
Question CentOS 4 to 5 upgrade


Does anyone know how to upgrade form CentOS 4 to CentOS 5? I tried following the instructions in the release announcement which are as follows:

Quote:
The best way to move from CentOS-4 to CentOS-5 is via an installer
upgrade. However if you must do it online, here are some tips to help:
- Remove as many packages as you can, strip it right back to the
original OS if possible
- Backup everything
- Disable all repositories, except the centos-5 OS and Updates repos
- init 3
- shutdown as many services as possible
- download and install the centos-release-5.x rpm, which will update
your yum configs
- run a yum upgade ( not update )
However, when I ran yum upgrade, I got a bunch of messages telling me that certain packages were not compatible with the kernel.

For now, I just install the centos-release-4.4 package again which fixed yum. Anyone have any ideas?
 
Old 04-14-2007, 08:12 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Personally, I would install the centos-release rpm for CentOS 5 first and then do
Code:
#yum upgrade yum kernel
After that I would reboot and select the new kernel and then do
Code:
#yum -y upgrade
 
Old 04-14-2007, 08:13 AM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
If you have read and followed the first tip;

- Remove as many packages as you can, strip it right back to the original OS if possible

the yum upgrade will work. A lot of the third party replacement rpm packages (and there dependencies) are problematic when doing any major version upgrade. Best advice is to back up the entire /etc directory and any important personal data and settings then do a clean wipe and load install. Red Hat also advices not to do an update/upgrade installation and to do a fresh clean new installation.

I'm not saying it cannot be done, but it takes some planning, preparation and time before attempting the upgrade. The backup of the entire /etc directory and important personal data and settings is always a good idea in any case.

I upgraded my systems from CentOS-4.4 (with custom packages installed) to RHEL5, took about three hours and a half total for each system. Most of that time was for making a backup and cleaning the systems from conflicting third party packaging out, only about 20 minutes was used for the upgrade. Some third party packaging (KDE 3.5.6 for example) remained in place for the upgrade and did not cause an issue.

It is advisable to also have any third party repos reconfigured to the new version of the OS before starting the yum upgrade path. It is almost impossible to upgrade the OS and not upgrade the third party packaging.

Last edited by Lenard; 04-14-2007 at 08:17 AM.
 
Old 04-14-2007, 02:43 PM   #4
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Thanks for the help. All of the packages I have installed are from either the centos base repo or the dag weeirs repo, so I don't think I need to remove any packages.
 
Old 04-14-2007, 06:47 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes, even rpm packages from Dag's repo can be a problem. Best idea install/upgrade the rpmforge-release package.

http://dag.wieers.com/rpm/FAQ.php#B
 
  


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
How do I upgrade to latest version of J2RE using YUM on CentOS 4.4? Dmjmusser Linux - Server 1 02-08-2007 01:06 PM
CentOS Kernel Upgrade Error BizHat.com Linux - Kernel 1 08-25-2006 06:01 AM
Centos - After upgrade to KDE 3.5. issues tnbk00 Red Hat 7 08-21-2006 03:41 PM
Redhat AS server upgrade via Yum using CentOS repository? yilang Red Hat 1 04-15-2006 10:02 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

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

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