Sunteți pe pagina 1din 5

How To Upgrade CentOS Linux To Version 5.

2
by Vivek Gite 16 comments

CentOS Linux 5.2 has been released and available for immediate update via yum command or the i386 and x86_64 Architectures. From the announcement page:

CentOS-5.2 is based on the upstream release EL 5.2.0, and includes packages from all variants including Server and Client. All upstream repositories have been combined into one, to make it easier for end users to work with. And the option to further enable external repositories at install time is now available in the installer.

How do I update from CentOS-5.0 and 5.1 to 5.2?


Simply type the following command as root user: # yum update OR # yum upgrade Sample output:
...... .... shadow-utils-4.0.17-13.el 100% |=========================| 50 kB 00:00 ---> Package shadow-utils.i386 2:4.0.17-13.el5 set to be updated ---> Downloading header for cups to pack into transaction set. cups-1.2.4-11.18.el5_2.1. 100% |=========================| 165 kB 00:00 Transaction Summary ============================================================================= Install 8 Package(s) Update 191 Package(s) Remove 2 Package(s) Total download size: 298 M Is this ok [y/N]: y

Finally, reboot your computer, enter: # reboot


Robinson Tiemuqinke spake the following on 6/6/2007 5:37 PM: > Hi, > > I've just turned from Fedora Core to Centos 5, And > would like to know the 'official' way/mechanism to > upgrade a bunch of Centos 5 machines. > > My basic situation is: hundred of machines will be > installed with Centos 5.0 by means of kickstart. and > then the machines will always uses Centos 5.0 > kickstart images for initial installation, not Centos > 5.1, Centos 5.2, etc. >

Since you will be installing hundreds of machines, a local copy of the repo is beneficial. Since you want to stay with the 5.0 install disks, the update list will just grow over time as you install new machines in the future. > So my questions are: > > 1, If the above possible? Since I take lot effort to > have hacked Centos 5.0 images to make it work for my > mixed environment, and I don't like to do the same > work every three months. If you are installing by kickstart, you only need the boot images, and you point to your own install directories. You could use FTP HTTP or even NFS. That way, you will not have the large amount of updates to every future install after they are built. > > 2, Based on Centos 5.0 initial installation, can I > upgrade the Centos 5.0 machines to Centos 5.1 level, > 5.2 level, and so on, by means of continuous online > upgrade but not reinstallation, right? You can just have a yum -y upgrade in %post-install of your kickstart, or hack it into the firstboot scripts. You will want to also add your repo mods into the kickstart also. > > 3, For continuous online upgrade, which repositories > should I download and keep updated daily? If the > extras/ and updates/ are enough? Or I have to download > addons/ centosplus/ fasttrack/ as well, or even isoes/ You only would want to mirror the extra repos above if you use them. If you don't install anything from centosplus or addons, you don't need to mirror it. And fasttrack stuff might not actually make it into the next release. > and os/? > > 4, I've changed file /etc/yum.repos.d/CentOS-Base.repo > to use only os/ and updates/ repositories. and when it > is needed, I manually pull packages from other Centos > 5 repositories. Is this the 'official' way? or not? I > mean, should I better include repositories like > 'centosplus/'? As above. If you are not going to install from centosplus, then don't bother mirroring it. And if you really want something from centosplus on a box or two, you can either put them back to standard updates, or add an outside link to the centosplus directory. You would want to use the protect-base add on for anything in plus anyway . > > Thanks a lot, sorry for too many questions as I am a > newbie to Centos. > For a newbie, you seem to be jumping in with both feet! Welcome to CentOS! I don't have enough machines yet to set all this up yet, but here's to the future!

[CentOS] Upgrade to 5.3?


William L. Maltby CentOS4Bill at triad.rr.com Tue Jan 27 09:53:02 UTC 2009 Previous message: [CentOS] Upgrade to 5.3? Next message: [CentOS] Upgrade to 5.3? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On Tue, 2009-01-27 at 00:33 -0600, Barry Brimer wrote: > > I'm not that up on CentOS so I'd be curious to know if it is possible > > to upgrade CentOS 5.2 to 5.3 without reinstalling? Perhaps via Yum? Or > > can you get update RPMs? > > Once CentOS 5.3 is released, you can just type "yum upgrade" and you will > be upgraded from CentOS 5.2 to CentOS 5.3. If your configuration is set normally, "yum update" will do it. Just like a normal set of updates. Having said that, ... IIRC there was a recent thread, which I can't find at the moment, that discussed some updates to glib (I though it was glibc but Ralph(?) corrected me in another thread) that might cause a problem in later stages of the update process. I believe the tentative conclusion was that some notification about it would be needed. I'm guessing it might the dark past. If so, do the normal update. memory of the thread, be along the lines of the sqlite update needed in that would be a two-step: update the lib and then But keep in mind that's all predicated on vague incomplete information and blissful ignorance.

Regardless, I'm remaining alert in case my memory and understanding are correct. > <snip sig stuff> -Bill

How To: Upgrade CentOS Linux 5.3 to v5.4


by Vivek Gite 8 comments

How do I upgrade CentOS Linux from version 5.3 to latest version 5.4 over the Internet? CentOS Linux v5.4 has been released and available via mirrors for immediate update. The new version includes the kernel-based virtual machine (KVM) virtualization, next generation of developer features and tools including GCC 4.4, a new malloc(). Also included clustered, highavailability filesystem to support Microsoft Windows storage needs on CentOS Linux.

Fig.01: CentOS running GNOME Desktop (credit wikipedia)

Step # 1: Make A Backup


It cannot be stressed enough how important it is to make a backup of your system before you do this. Most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Use the following tools to backup data to other server: Use mysqldump for MySQL databases Use pg_dump for PostgreSQL databases Use tar and rsync tool for LAMP

Step # 2: Update All Packages


Type the following command to get a list of packages that are going to be updated, enter: # yum list updates To upgrade your box, enter: # yum update Reboot the server: # reboot Verify everything is working: # uname -a # netstat -tulpn # tail -f /var/log/messages

# tail -f /path/to/log/file # cat /etc/redhat-release Sample outputs:


CentOS release 5.4 (Final)

Or you can use the lsb_release command: # lsb_release -a Sample outputs:


LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1amd64:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: CentOS Description: CentOS release 5.4 (Final) Release: 5.4 Codename: Final

To view log of all updated package, enter:


tail -f /var/log/yum.log less /var/log/yum.log grep -i bind /var/log/yum.log

S-ar putea să vă placă și