Rocky 9.x Upgrade from CentOS Stream to Rocky
From Notes_Wiki
Revision as of 07:55, 15 June 2023 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Upgrade from CentOS Stream to Rocky The below steps would work both on CentOS Stream 8 and CentOS Stream 9, to convert them to Rocky 8.x or Rocky 9.x appropriately. # Ensure sufficient free space in / before proceeding # Update to latest packages in CentOS Stream using: #:<pre> #:: dnf updat...")
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Upgrade from CentOS Stream to Rocky
The below steps would work both on CentOS Stream 8 and CentOS Stream 9, to convert them to Rocky 8.x or Rocky 9.x appropriately.
- Ensure sufficient free space in / before proceeding
- Update to latest packages in CentOS Stream using:
- dnf update -y --allowerasing --skip-broken --nobest
- Install git
- dnf -y install git
- Download rocky-tools git repository in /tmp
- cd /tmp/
- git clone https://github.com/rocky-linux/rocky-tools.git
- Run the migration script
- cd /tmp/rocky-tools/migrate2rocky
- chmod -v +x migrate2rocky.sh
- ./migrate2rocky.sh -r
- If there is issue with some installed packages there will be dnf output indicating package names with issues. We need to remove those packages and try again:
- dnf remove ffmpeg-libs vlc-core vlc simplescreenrecorder
- Ensure that you dont remove any critical package that is required on the system being migrated to Rocky. Note the names of packages being removed including the ones getting removed due to dependency. We may have to install them again later.
- Reboot
- shutdown -r now
- Validate the new setup with Rocky Linux
- Optionally reinstall the packages that were removed during migration using dnf / other appropriate methods.
Refer:
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Upgrade from CentOS Stream to Rocky