Frequently Asked Questions

Help Center Search

To Upgrade from Red Hat 4 to Cent OS 4.7 Using Yum

Print this Article
Comment on this Article
Last Updated: August 25, 2009 4:06 PM

You can migrate from Red Hat Enterprise Linux 4 to CentOS 4.7 using yum through SSH.

  1. Connect to your server through SSH, using a client such as PUTTY.
  2. Enter your User name and Password.
  3. Type su - and enter your root password.
  4. Run the following commands to upgrade to Cent OS 4.7:
    yum clean all
    mkdir ~/centos
    cd ~/centos/

    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/centos-release-4-7.i386.rpm
    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm
    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm
    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm
    wget http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm

    rpm --import http://mirror.centos.org/centos/4/os/i386/RPM-GPG-KEY-centos4
    rpm -e --nodeps redhat-release
    rpm -Uvh *.rpm

    yum upgrade