Convert Your Rhel(6, 6.0, 6.1…..6.4…) to CentOS

1

Hello Everyone,

Today Am going to show you how to convert RHEL 6 all version to CentOS 6 latest. Steps bellow…

1) First open terminal from menu>system tools>Terminal

2) Write su and press enter, give root password and press enter.

3) Write following command and press enter. It clean all cased package and heads which is currently on your system and used to add/remove packages.

yum clean all

4) Now we have to create a directory for downloading Centos  repository. Write following command and press enter

mkdir ~/centos

5) Now we have to go to the directory. Write following command and press enter to go to the directory.

   cd ~/centos/

6) Now we have to download Centos repository here. Write following command and press enter one by one.

   wget http://mirror.centos.org/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
   wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-utils-1.1.30-14.el6.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

7) Now we have to import gpg key for Centos. here command below.

   rpm –import RPM-GPG-KEY-CentOS-6

8)Its time to remove Rhel release.

   rpm -e –nodeps redhat-release-server

9) Use following command for removing Rhel network plugins from yum.

 rpm -e yum-rhn-plugin

10) Use following command for remove other Rhel files.

   rpm -e rhn-check rhnsd rhn-setup rhn-setup-gnome

11) Now its time to convert ur Rhel to Centos. use following command

   rpm -Uvh –force *.rpm

12) Now u have to use following command for final step.

   yum upgrade

13) When finished use reboot command to reboot.

reboot

Hopes it work for you. In the beginning i try to use simplify these stems for those who might confuse about using command line. Its boring for those who r expert but this tropic is for both expert and beginners, If any fault found let me know. its my first post. So I apologize for any unknown mistake.

 

Share.

About Author

sajib chowdhury

1 Comment

  1. sorfuddin ahmad
    sorfuddin ahmad on

    Really thanks for potential information about of RHEL 6 i don’t no about this but now i guess something from your sharing post…..

Leave A Reply

Powered by themekiller.com