LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-09-2011, 04:45 PM   #1
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Rep: Reputation: 17
Update a CentOS 5 virtual server to CentOS 5.6


I would like to update a CentOS 5 virtual server to CentOS 5.6

I've never done this before and I would be greatful for any hints/tips/guides on the process.

I can't format my system as I have software/files that I need on there so I would like to upgrade rather than to install from scratch.

The CentOS documentation seems to come straight from RedHat and suggests that I connect to the RHN network, which is not possible as i'm using the free CentOS release.

Is the procedure the following, sorry but I really don't know. How safe is this procedure, if it works :


Code:
modify yum.conf to point to a 5.6 mirror and then perform the following commands :
yum clean all
yum update
shutdown -r now

Last edited by dazdaz; 04-09-2011 at 05:38 PM.
 
Old 04-09-2011, 06:01 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,003
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
Running 'yum update' should do. I just upgraded one guest on VMware server and all went OK. Best read the release notes first though.
 
1 members found this post helpful.
Old 04-09-2011, 06:18 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Back up your important files and - in particular - make a tarball of your existing /etc, just in case.

Code:
# tar cfz /root/good-etc.tgz /etc
RHEL (and, by extension, CentOS) is very good about not trampling on config files during package updates, but they're not perfect. I ran into a particularly vexing multipathing issue the other day after upgrading across minor versions. Point is: have a good version to compare against, just in case your regression testing turns up trouble.
 
1 members found this post helpful.
Old 04-10-2011, 04:53 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,003
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
Quote:
Originally Posted by unSpawn View Post
I just upgraded one guest on VMware server and all went OK.
3 VM's later all still OK. One physical machine displayed errors after upgrade caused by:
- iscsi and iscsid: disable both if not required,
- haldaemon: reverting back to old startup mantra "/usr/sbin/hald --daemon=yes --verbose=no --use-syslog" works OK for me,
- setroubleshootd showing [avc.WARNING] could not open any audit sockets (/var/run/audispd_events, /var/run/audit_events), retry in 60 seconds error meaning the /var/run/audit_events socket does not exist: commenting out the binary_protocol_socket_path line in /etc/setroubleshoot/setroubleshoot.cfg makes the warning disappear.
 
Old 04-10-2011, 05:02 AM   #5
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.x, 5.x, Fedora 20, Kubuntu 12.04, Solaris 10,8
Posts: 321

Original Poster
Rep: Reputation: 17
I also followed this procedure to update my PHP RPM's to 5.2.x.

http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Centos Virtual server mail setup help keith_899 Linux - Server 6 11-04-2010 10:27 AM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
Running linux(CentOS) as virtual server on Windows 2003 server? manoj.maniraj Linux - Server 3 03-26-2009 04:08 AM
Virtual Mail Server on CentOS 5 James Harrison Linux - Server 3 02-21-2008 06:23 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration