LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, CentOS, Ubuntu
Posts: 333

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: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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
Posts: 3,935
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: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, CentOS, Ubuntu
Posts: 333

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



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

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

All times are GMT -5. The time now is 03:43 AM.

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