Difference between revisions of "Rocky 9.x Upgrade Rocky 8.x to Rocky 9.x"
From Notes_Wiki
(Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Upgrade Rocky 8.x to Rocky 9.x To upgrade from Rocky 8 to Rocky 9 use: # Ensure sufficient free space in / before proceeding # Go to URL https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/ # Note package names for rocky-release, rocky-repos and rocky-gpg-keys. Eg at time of t...") |
m |
||
Line 3: | Line 3: | ||
To upgrade from Rocky 8 to Rocky 9 use: | To upgrade from Rocky 8 to Rocky 9 use: | ||
# Ensure sufficient free space in / before proceeding | # Ensure sufficient free space in / before proceeding | ||
# Full update current system | |||
#:<pre> | |||
#:: dnf update -y --skip-broken --nobest --allowerasing | |||
#:</pre> | |||
# Go to URL https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/ | # Go to URL https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/ | ||
# Note package names for rocky-release, rocky-repos and rocky-gpg-keys. Eg at time of this writing values were:<source type="bash"> | # Note package names for rocky-release, rocky-repos and rocky-gpg-keys. Eg at time of this writing values were:<source type="bash"> | ||
Line 10: | Line 14: | ||
GPG_KEYS_PKG="rocky-gpg-keys-9.2-1.5.el9.noarch.rpm" | GPG_KEYS_PKG="rocky-gpg-keys-9.2-1.5.el9.noarch.rpm" | ||
</source> | </source> | ||
# Remove packages that may cause conflict: | |||
#:<pre> | |||
#:: dnf -y remove rpmconf yum-utils epel-release | |||
#:</pre> | |||
# Install the rocky9 packages using: | # Install the rocky9 packages using: | ||
#:<pre> | #:<pre> | ||
Line 28: | Line 36: | ||
# If there are still errors we may have to remove those packages. For example | # If there are still errors we may have to remove those packages. For example | ||
#:<pre> | #:<pre> | ||
#:: | #:: dnf remove openssl3-libs | ||
#:: | #:: dnf remove python39-six | ||
#:: dnf remove epel-release | |||
#:</pre> | #:</pre> | ||
#: and then try distro-sync again. Note the names of packages being removed including the ones getting removed due to dependency. We may have to install them again later. | #: and then try distro-sync again. Note the names of packages being removed including the ones getting removed due to dependency. We may have to install them again later. | ||
Line 35: | Line 44: | ||
#:<pre> | #:<pre> | ||
#:: sudo rpm --rebuilddb | #:: sudo rpm --rebuilddb | ||
#:</pre> | |||
# Check if there is older kernel using: | |||
#:<pre> | |||
#:: rpm -qa | grep -i kernel | |||
#:</pre> | |||
#: If the above list contains older 4.18 kernel instead of new 5.14 kernel then old can be removed via: | |||
#::<pre> | |||
#::: rpm -e --nodeps `rpm -qa|grep -i kernel|grep 4.18` | |||
#::</pre> | |||
# Optionally install latest 5.14 kernel using: | |||
#:<pre> | |||
#:: dnf -y install kernel kernel-core shim epel-release | |||
#:</pre> | |||
# List modules using: | |||
#:<pre> | |||
#:: dnf module list | |||
#:</pre> | |||
#: and remove modules which depend on platform:el8. For example | |||
#::<pre> | |||
#::: dnf module disable container-tools gimp httpd llvm-toolset mariadb nginx nodejs perl perl-DBD-MySQL perl-DBI perl-libwww-perl php postgresql python27 python36 python38 python39 satellite-5-client virt perl-DBD-SQLite perl-IO-Socket-SSL | |||
#::</pre> | |||
# Full update system once again using: | |||
#:<pre> | |||
#:: dnf update -y --nobest --allowerasing --skip-broken | |||
#:: dnf install neofetch -y | |||
#:</pre> | #:</pre> | ||
# Reboot system and validate Rocky 9 | # Reboot system and validate Rocky 9 | ||
Line 45: | Line 79: | ||
Refer: | Refer: | ||
- https://www.techrepublic.com/article/upgrade-rocky-linux/ | * https://computingforgeeks.com/upgrade-to-rocky-linux-9-from-rocky-linux-8/ | ||
* https://www.techrepublic.com/article/upgrade-rocky-linux/ | |||
[[Main Page|Home]] > [[Rocky Linux or CentOS]] > [[Rocky Linux 9.x]] > [[Rocky 9.x System Administration|System Administration]] > [[Rocky 9.x Upgrade Rocky 8.x to Rocky 9.x|Upgrade Rocky 8.x to Rocky 9.x]] | [[Main Page|Home]] > [[Rocky Linux or CentOS]] > [[Rocky Linux 9.x]] > [[Rocky 9.x System Administration|System Administration]] > [[Rocky 9.x Upgrade Rocky 8.x to Rocky 9.x|Upgrade Rocky 8.x to Rocky 9.x]] |
Revision as of 05:04, 26 June 2023
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Upgrade Rocky 8.x to Rocky 9.x
To upgrade from Rocky 8 to Rocky 9 use:
- Ensure sufficient free space in / before proceeding
- Full update current system
- dnf update -y --skip-broken --nobest --allowerasing
- Go to URL https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/
- Note package names for rocky-release, rocky-repos and rocky-gpg-keys. Eg at time of this writing values were:
REPO_URL="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r" RELEASE_PKG="rocky-release-9.2-1.5.el9.noarch.rpm" REPOS_PKG="rocky-repos-9.2-1.5.el9.noarch.rpm" GPG_KEYS_PKG="rocky-gpg-keys-9.2-1.5.el9.noarch.rpm"
- Remove packages that may cause conflict:
- dnf -y remove rpmconf yum-utils epel-release
- Install the rocky9 packages using:
- sudo dnf install $REPO_URL/$RELEASE_PKG $REPO_URL/$REPOS_PKG $REPO_URL/$GPG_KEYS_PKG
- Move redhat-logos as it causes update to fail
- mv /usr/share/redhat-logos /usr/share/redhat-logos-old
- Upgrade system from Rocky 8 to Rocky 9 via:
- sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y
- If above throws errors then please try:
- sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y --skip-broken --nobest
- If there are still errors we may have to remove those packages. For example
- dnf remove openssl3-libs
- dnf remove python39-six
- dnf remove epel-release
- and then try distro-sync again. Note the names of packages being removed including the ones getting removed due to dependency. We may have to install them again later.
- Rebuild the RPM DB using:
- sudo rpm --rebuilddb
- Check if there is older kernel using:
- rpm -qa | grep -i kernel
- If the above list contains older 4.18 kernel instead of new 5.14 kernel then old can be removed via:
- rpm -e --nodeps `rpm -qa|grep -i kernel|grep 4.18`
- Optionally install latest 5.14 kernel using:
- dnf -y install kernel kernel-core shim epel-release
- List modules using:
- dnf module list
- and remove modules which depend on platform:el8. For example
- dnf module disable container-tools gimp httpd llvm-toolset mariadb nginx nodejs perl perl-DBD-MySQL perl-DBI perl-libwww-perl php postgresql python27 python36 python38 python39 satellite-5-client virt perl-DBD-SQLite perl-IO-Socket-SSL
- Full update system once again using:
- dnf update -y --nobest --allowerasing --skip-broken
- dnf install neofetch -y
- Reboot system and validate Rocky 9
- Optionally you can allow SHA1 based signatures via:
- update-crypto-policies --set DEFAULT:SHA1
- https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
- Also install any critical packages removed earlier via dnf
Refer:
- https://computingforgeeks.com/upgrade-to-rocky-linux-9-from-rocky-linux-8/
- https://www.techrepublic.com/article/upgrade-rocky-linux/
Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Upgrade Rocky 8.x to Rocky 9.x