Difference between revisions of "How To Migrate Existing Hosts from CentOS to Rocky Linux 8"

From CAC Documentation wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
* Remove CentOS repos RPMs:
 
* Remove CentOS repos RPMs:
 
   rpm -qa  | grep centos | xargs rpm -e --nodeps
 
   rpm -qa  | grep centos | xargs rpm -e --nodeps
* Install Rocky repos RPMS:
+
* Point to CAC-hosted Rocky 8 repositories:
 +
<pre>
 +
  cd /etc/yum.repos.d
 +
  curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-AppStream.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-BaseOS.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-Devel.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-Extras.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-HighAvailability.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-PowerTools.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-ResilientStorage.repo'
 +
  rm *.rpmnew *.rpmold</pre>
 +
* Install relevant Rocky RPMS:
 
   <pre>
 
   <pre>
   yum install --disablerepo=* https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.4-26.el8.noarch.rpm https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-logos-84.5-7.el8.x86_64.rpm https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-obsolete-packages-8-4.noarch.rpm https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-release-8.4-26.el8.noarch.rpm https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-repos-8.4-26.el8.noarch.rpm </pre>
+
   yum install --releasever 8 --nogpg rocky-gpg-keys rocky-logos rocky-obsolete-packages rocky-release rocky-repos rocky-backgrounds</pre>
* Reboot the host
 
* Install rocky-background RPM:
 
  yum clean all; yum install -y rocky-backgrounds
 
 
* Make sure everything looks good:
 
* Make sure everything looks good:
 
   yum check
 
   yum check
* (Optional) Point to CAC-hosted Rocky 8 repositories:
 
<pre>
 
  cd /etc/yum.repos.d
 
  curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-AppStream.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-BaseOS.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-Devel.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-Extras.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-HighAvailability.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-PowerTools.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-ResilientStorage.repo'</pre>
 
 
* Make sure everything is up-to-date:
 
* Make sure everything is up-to-date:
 
   yum update
 
   yum update
 +
* Reboot host.

Revision as of 12:49, 28 September 2022

CentOS will reach end-of-life on December 31, 2021. Use these steps to convert a CentOS 8 host to Rocky Linux 8:

  • Remove CentOS repos RPMs:
 rpm -qa  | grep centos | xargs rpm -e --nodeps
  • Point to CAC-hosted Rocky 8 repositories:
  cd /etc/yum.repos.d
  curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-AppStream.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-BaseOS.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-Devel.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-Extras.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-HighAvailability.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-PowerTools.repo'; curl -O 'https://redcloud.cac.cornell.edu:8443/swift/v1/rocky-8-repos/Rocky-ResilientStorage.repo'
  rm *.rpmnew *.rpmold
  • Install relevant Rocky RPMS:
  yum install --releasever 8 --nogpg rocky-gpg-keys rocky-logos rocky-obsolete-packages rocky-release rocky-repos rocky-backgrounds
  • Make sure everything looks good:
 yum check
  • Make sure everything is up-to-date:
 yum update
  • Reboot host.