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

Both sides previous revision Previous revision
Next revision
Previous revision
rhel_to_centos [2016/08/10 12:07]
Pekka Kuronen
rhel_to_centos [2017/11/06 10:11] (current)
Line 1: Line 1:
-===== How to migrate existing RedHat Enterprise Linux 6.x to a CentOS =====+====== How to migrate existing RedHat Enterprise Linux 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+This is a copy-paste instruction ​to complete RHEL -> CentOS ​migration in one minuteUpdated ​to include latest versions.
  
-Doing RHEL 6.straight to the latest CentOS ​(6.8) may work just fine but since am doing this to a production server I will do it in following order:+Often you have an expired subscription RedHat Enterprise Linux that is stuck to an earlier patch levelYou could update from early RHEL patchlevel ​straight to the latest ​version of CentOS but I still recommend ​to do the initial conversion with identical version numbers just to reduce the variables of the process. I've seen a standard update go wrong with my cluster software so better not push our luck.
  
-  ​* RHEL 6.-> CentOS ​6.x +So we will do it in following order: 
-  * CentOS ​6.-> CentOS ​6.8+ 
 +  ​* RHEL 7.-> CentOS ​7.n 
 +  * CentOS ​7.-> CentOS ​7.latest
  
 That way I replace RHEL with a same patchlevel CentOS which I then upgrade to the latest version. That way I replace RHEL with a same patchlevel CentOS which I then upgrade to the latest version.
Line 12: Line 14:
 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. 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 ====+===== Preparing ====
 + 
 +<​code>​ 
 +mkdir upgrade; cd upgrade 
 +</​code>​
  
-We start with old 6.x packages from the CentOS vault to get to the same patch level.+===== Downloading packets =====
  
-RedHat / CentOS 6.5:+==== RedHat / CentOS 7.0 ==== 
 + 
 +<​code>​ 
 +wget '​http://​vault.centos.org/​7.0.1406/​os/​x86_64/​Packages/​centos-release-7-0.1406.el7.centos.2.3.x86_64.rpm'​ 
 +wget '​http://​vault.centos.org/​7.0.1406/​os/​x86_64/​Packages/​centos-indexhtml-7-9.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.0.1406/​os/​x86_64/​Packages/​yum-3.4.3-118.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.0.1406/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.31-24.el7.noarch.rpm'​ 
 +</​code>​ 
 + 
 +==== RedHat / CentOS 7.1 ==== 
 + 
 +<​code>​ 
 +wget '​http://​vault.centos.org/​7.1.1503/​os/​x86_64/​Packages/​centos-release-7-1.1503.el7.centos.2.8.x86_64.rpm'​ 
 +wget '​http://​vault.centos.org/​7.1.1503/​os/​x86_64/​Packages/​centos-indexhtml-7-9.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.1.1503/​os/​x86_64/​Packages/​yum-3.4.3-125.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.1.1503/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.31-29.el7.noarch.rpm'​ 
 +</​code>​ 
 + 
 +==== RedHat / CentOS 7.2 ==== 
 + 
 +<​code>​ 
 +wget '​http://​vault.centos.org/​7.2.1511/​os/​x86_64/​Packages/​centos-release-7-2.1511.el7.centos.2.10.x86_64.rpm'​ 
 +wget '​http://​vault.centos.org/​7.2.1511/​os/​x86_64/​Packages/​centos-indexhtml-7-9.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.2.1511/​os/​x86_64/​Packages/​yum-3.4.3-132.el7.centos.0.1.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.2.1511/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm'​ 
 +</​code>​ 
 + 
 +==== RedHat / CentOS 7.3 ==== 
 + 
 +<​code>​ 
 +wget '​http://​vault.centos.org/​7.3.1611/​os/​x86_64/​Packages/​centos-release-7-3.1611.el7.centos.x86_64.rpm'​ 
 +wget '​http://​vault.centos.org/​7.3.1611/​os/​x86_64/​Packages/​centos-indexhtml-7-9.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.3.1611/​os/​x86_64/​Packages/​yum-3.4.3-150.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.3.1611/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm'​ 
 +</​code>​ 
 + 
 +==== RedHat / CentOS 7.4 ==== 
 + 
 +<​code>​ 
 +wget '​http://​vault.centos.org/​7.4.1708/​os/​x86_64/​Packages/​centos-release-7.4.1708.el7.centos.x86_64.rpm'​ 
 +wget '​http://​vault.centos.org/​7.4.1708/​os/​x86_64/​Packages/​centos-indexhtml-7-9.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.4.1708/​os/​x86_64/​Packages/​yum-3.4.3-172.el7.centos.noarch.rpm'​ 
 +wget '​http://​vault.centos.org/​7.4.1708/​os/​x86_64/​Packages/​yum-plugin-fastestmirror-1.1.31-44.el7.noarch.rpm'​ 
 +</​code>​ 
 + 
 +==== RedHat / CentOS 6.5 ====
  
 <​code>​ <​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-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/​centos-indexhtml-6-1.el6.centos.noarch.rpm'​
Line 26: Line 76:
 </​code>​ </​code>​
  
-RedHat / CentOS 6.6:+==== RedHat / CentOS 6.6 ====
  
 <​code>​ <​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-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/​centos-indexhtml-6-2.el6.centos.noarch.rpm'​
Line 36: Line 85:
 </​code>​ </​code>​
  
-RedHat / CentOS 6.7:+==== RedHat / CentOS 6.7 ====
  
 <​code>​ <​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-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/​centos-indexhtml-6-2.el6.centos.noarch.rpm'​
Line 46: Line 94:
 </​code>​ </​code>​
  
-RedHat / CentOS 6.8:+==== RedHat / CentOS 6.8 ====
  
 <​code>​ <​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-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/​centos-indexhtml-6-2.el6.centos.noarch.rpm'​
Line 56: Line 103:
 </​code>​ </​code>​
  
- +===== Executing ​=====
-==== Executing ====+
  
 Remove packages and clean RHN subscriptions Remove packages and clean RHN subscriptions
Line 68: Line 114:
 </​code>​ </​code>​
  
-Install CentOS equivalent packages and work our way to the latest ​6.x.+Install CentOS equivalent packages and work our way to the latest ​patches / updates.
  
 <​code>​ <​code>​
Line 78: Line 124:
 {(rater>​id=rhel_to_centos|type=rate|trace=ip|tracedetails=0|headline=off)} {(rater>​id=rhel_to_centos|type=rate|trace=ip|tracedetails=0|headline=off)}
  
-~~DISCUSSION|Leave a comment~~+~~DISCUSSION|Leave a comment~~~~NOCACHE~~ 
 +~~QUICKSTATS:​@rhel_to_centos&​basics~~ 
 +~~QUICKSTATS:​@rhel_to_centos&​ip~~ 

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