Pegasi Wiki

This wiki acts as a memo for our own work so why not share them? Feel free to browse and use out notes and leave a note while at it.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rhel_to_centos [2016/08/10 12:07]
Pekka Kuronen
rhel_to_centos [2017/11/06 10:11]
Line 1: Line 1:
-===== How to migrate existing RedHat Enterprise Linux 6.x to a CentOS ===== 
  
-I am doing an expired subscription RedHat Enterprise Linux 6.5 conversion to CentOS. I am not sure if it matters that it is stuck on the 6.5 version but I will use the 6.5 CentOS Vault to do the initial conversion to reduce moving parts of the process. ​ 
- 
-Doing RHEL 6.x straight to the latest CentOS (6.8) may work just fine but since I am doing this to a production server I will do it in following order: 
- 
-  * RHEL 6.x -> CentOS 6.x 
-  * CentOS 6.x -> CentOS 6.8 
- 
-That way I replace RHEL with a same patchlevel CentOS which I then upgrade to the latest version. 
- 
-Also there is a page in the CentOS [[https://​wiki.centos.org/​HowTos/​MigrationGuide|website]] about the subject so let's follow it with a few corrections. 
- 
-==== Preparing ==== 
- 
-We start with old 6.x packages from the CentOS vault to get to the same patch level. 
- 
-RedHat / CentOS 6.5: 
- 
-<​code>​ 
-mkdir upgrade; cd upgrade 
-wget '​http://​vault.centos.org/​6.5/​os/​x86_64/​Packages/​centos-release-6-5.el6.centos.11.1.x86_64.rpm'​ 
-wget '​http://​vault.centos.org/​6.5/​os/​x86_64/​Packages/​centos-indexhtml-6-1.el6.centos.noarch.rpm'​ 
-wget '​http://​vault.centos.org/​6.5/​os/​x86_64/​Packages/​yum-3.2.29-40.el6.centos.noarch.rpm'​ 
-wget '​http://​vault.centos.org/​6.5/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm'​ 
-</​code>​ 
- 
-RedHat / CentOS 6.6: 
- 
-<​code>​ 
-mkdir upgrade; cd upgrade 
-wget '​http://​vault.centos.org/​6.6/​os/​x86_64/​Packages/​centos-release-6-6.el6.centos.12.2.x86_64.rpm'​ 
-wget '​http://​vault.centos.org/​6.6/​os/​x86_64/​Packages/​centos-indexhtml-6-2.el6.centos.noarch.rpm'​ 
-wget '​http://​vault.centos.org/​6.6/​os/​x86_64/​Packages/​yum-3.2.29-60.el6.centos.noarch.rpm'​ 
-wget '​http://​vault.centos.org/​6.6/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm'​ 
-</​code>​ 
- 
-RedHat / CentOS 6.7: 
- 
-<​code>​ 
-mkdir upgrade; cd upgrade 
-wget '​http://​vault.centos.org/​6.7/​os/​x86_64/​Packages/​centos-release-6-7.el6.centos.12.3.x86_64.rpm'​ 
-wget '​http://​vault.centos.org/​6.7/​os/​x86_64/​Packages/​centos-indexhtml-6-2.el6.centos.noarch.rpm'​ 
-wget '​http://​vault.centos.org/​6.7/​os/​x86_64/​Packages/​yum-3.2.29-69.el6.centos.noarch.rpm'​ 
-wget '​http://​vault.centos.org/​6.7/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm'​ 
-</​code>​ 
- 
-RedHat / CentOS 6.8: 
- 
-<​code>​ 
-mkdir upgrade; cd upgrade 
-wget '​ftp://​ftp.funet.fi/​pub/​mirrors/​centos.org/​6.8/​os/​x86_64/​Packages/​centos-release-6-8.el6.centos.12.3.x86_64.rpm'​ 
-wget '​ftp://​ftp.funet.fi/​pub/​mirrors/​centos.org/​6.8/​os/​x86_64/​Packages/​centos-indexhtml-6-2.el6.centos.noarch.rpm'​ 
-wget '​ftp://​ftp.funet.fi/​pub/​mirrors/​centos.org/​6.8/​os/​x86_64/​Packages/​yum-3.2.29-73.el6.centos.noarch.rpm'​ 
-wget '​ftp://​ftp.funet.fi/​pub/​mirrors/​centos.org/​6.8/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm'​ 
-</​code>​ 
- 
- 
-==== Executing ==== 
- 
-Remove packages and clean RHN subscriptions 
- 
-<​code>​ 
-yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes* 
-rpm -e --nodeps redhat-indexhtml redhat-release-server-6Server 
-subscription-manager clean 
-yum remove subscription-manager 
-</​code>​ 
- 
-Install CentOS equivalent packages and work our way to the latest 6.x. 
- 
-<​code>​ 
-rpm -Uvh --force *.rpm 
-yum clean all 
-yum upgrade 
-</​code>​ 
- 
-{(rater>​id=rhel_to_centos|type=rate|trace=ip|tracedetails=0|headline=off)} 
- 
-~~DISCUSSION|Leave a comment~~ 

  //check if we are running within the DokuWiki environment if (!defined("DOKU_INC")){ die(); } //place the needed HTML source codes BELOW this line