How To Migrate Existing Hosts from CentOS to Rocky Linux 8

From CAC Documentation wiki
Revision as of 14:34, 29 November 2021 by Shl1 (talk | contribs)
Jump to navigation Jump to search

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
  • Install Rocky repos RPMS:
  yum install --disablerepo=* 
  • Reboot the host
  • Install rocky-background RPM:
 yum clean all; yum install -y rocky-backgrounds
  • Make sure everything looks good:
 yum check
  • (Optional) Point to CAC-hosted Rocky 8 repositories:
  cd /etc/yum.repos.d
  curl -O ''; curl -O ''; curl -O ''; curl -O ''; curl -O ''; curl -O ''; curl -O ''
  • Make sure everything is up-to-date:
 yum update