Upgrade CentOS Linux

  • Upload
    adleo

  • View
    223

  • Download
    0

Embed Size (px)

Citation preview

  • 8/3/2019 Upgrade CentOS Linux

    1/5

    How To Upgrade CentOS Linux To Version 5.2by 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 updateOR

    # yum upgradeSample 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:00Transaction Summary=============================================================================Install 8 Package(s)Update 191 Package(s)Remove 2 Package(s)

    Total download size: 298 MIs 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.>

    http://www.cyberciti.biz/tips/upgrading-centos-51-to-52.html#commentshttp://lists.centos.org/pipermail/centos-announce/2008-June/014999.htmlhttp://www.cyberciti.biz/tips/category/download-of-the-dayhttp://www.cyberciti.biz/tips/category/redhatfedora-linuxhttp://lists.centos.org/pipermail/centos-announce/2008-June/014999.htmlhttp://www.cyberciti.biz/tips/upgrading-centos-51-to-52.html#comments
  • 8/3/2019 Upgrade CentOS Linux

    2/5

  • 8/3/2019 Upgrade CentOS Linux

    3/5

    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. Justlike a normal set of updates. Having said that, ...

    IIRC there was a recent thread, which I can't find at the moment, thatdiscussed some updates to glib (I though it was glibc but Ralph(?)corrected me in another thread) that might cause a problem in laterstages of the update process. I believe the tentative conclusion wasthat some notification about it would be needed.

    I'm guessing it might be along the lines of the sqlite update needed in

    the dark past. If so, that would be a two-step: update the lib and thendo the normal update. But keep in mind that's all predicated on vaguememory of the thread, incomplete information and blissful ignorance.

    Regardless, I'm remaining alert in case my memory and understanding arecorrect.

    >

    --Bill

    How To: Upgrade CentOS Linux 5.3 to v5.4by 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 newversion 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, high-

    availability filesystem to support Microsoft Windows storage needs on CentOS Linux.

    http://www.cyberciti.biz/faq/upgrade-centos-linux/#commentshttp://www.cyberciti.biz/faq/category/centos/http://www.cyberciti.biz/faq/upgrade-centos-linux/#comments
  • 8/3/2019 Upgrade CentOS Linux

    4/5

    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

    Usepg_dump forPostgreSQL 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 updatesTo upgrade your box, enter:

    # yum update

    Reboot the server:

    # reboot

    Verify everything is working:

    # uname -a# netstat -tulpn# tail -f /var/log/messages

    http://www.cyberciti.biz/tips/howto-copy-mysql-database-remote-server.htmlhttp://www.cyberciti.biz/tips/howto-backup-postgresql-databases.htmlhttp://www.cyberciti.biz/faq/how-to-back-up-a-web-server/http://www.cyberciti.biz/tips/linux-use-rsync-transfer-mirror-files-directories.htmlhttp://www.cyberciti.biz/tips/howto-copy-mysql-database-remote-server.htmlhttp://www.cyberciti.biz/tips/howto-backup-postgresql-databases.htmlhttp://www.cyberciti.biz/faq/how-to-back-up-a-web-server/http://www.cyberciti.biz/tips/linux-use-rsync-transfer-mirror-files-directories.html
  • 8/3/2019 Upgrade CentOS Linux

    5/5

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

    CentOS release 5.4 (Final)

    Or you can use the lsb_release command:

    # lsb_release -aSample outputs:

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

    To view log of all updated package, enter:

    tail -f /var/log/yum.log

    less /var/log/yum.loggrep -i bind /var/log/yum.log