Upgrade Rocky Linux from 8.x to 9 (Tested method)

I recommend you back up all your data or take a snapshot of the current install before following along and performing the upgrade.

If you are using a third-party repository, please check if the third-party packages are compatible with the upgrade, or else the packages may break.

Updated:

sudo dnf install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-release-9.0-2.4.el9.noarch.rpm 
sudo dnf install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-repos-9.0-2.4.el9.noarch.rpm 
sudo dnf install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys-9.0-2.4.el9.noarch.rpmCode language: JavaScript (javascript)

Use the command above, the command below might throw some errors.

sudo dnf install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-release-9.0-2.3.el9.noarch.rpm 
sudo dnf install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-repos-9.0-2.3.el9.noarch.rpm 
sudo dnf install https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys-9.0-2.3.el9.noarch.rpm
Code language: JavaScript (javascript)

Time to run the command that does the upgrade from 8 to 9.

sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -yCode language: JavaScript (javascript)

The command below will download and install all the required packages to perform the upgrade process.


[root@dias-server ~]# sudo dnf update sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y
Last metadata expiration check: 0:01:05 ago on Sun 02 Oct 2022 12:26:09 PM EDT.
Modular dependency problem:

 Problem: conflicting requests
  - nothing provides module(platform:el8) needed by module container-tools:rhel8:8060020220802073315:2e213529.x86_64
No match for argument: distro-sync
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                                            Architecture                       Version                                                    Repository                             Size
==============================================================================================================================================================================================================
Upgrading:
 audit                                                              x86_64                             3.0.7-101.el9_0.2                                          baseos                                252 k
 audit-libs                                                         x86_64                             3.0.7-101.el9_0.2                                          baseos                                117 k
 chkconfig                                                          x86_64                             1.20-2.el9                                                 baseos                                162 k
 coreutils                                                          x86_64                             8.32-31.el9                                                baseos                                1.1 M
 coreutils-common                                                   x86_64                             8.32-31.el9                                                baseos                                2.0 M
 cryptsetup-libs                                                    x86_64                             2.4.3-4.el9_0.1                                            baseos                                433 k
 curl                                                               x86_64                             7.76.1-14.el9_0.5                                          baseos                                296 k
 cyrus-sasl-lib                                                     x86_64                             2.1.27-20.el9                                              baseos                                764 k
 device-mapper                                                      x86_64                             9:1.02.183-4.el9                                           baseos                                140 k
 device-mapper-event                                                x86_64                             9:1.02.183-4.el9                                           baseos                                 34 k
 device-mapper-event-libs                                           x86_64                             9:1.02.183-4.el9                                           baseos                                 33 k
 device-mapper-libs                                                 x86_64                             9:1.02.183-4.el9                                           baseos                                177 k
 dnf                                                                noarch                             4.10.0-5.el9_0                                             baseos                                440 k
 dnf-data                                                           noarch                             4.10.0-5.el9_0                                             baseos                                 40 k
 dnf-plugins-core                                                   noarch                             4.0.24-4.el9_0                                             baseos                                 34 k
 firewalld                                                          noarch                             1.0.0-4.el9                                                baseos                                432 k
 firewalld-filesystem                                               noarch                             1.0.0-4.el9                                                baseos                                8.2 k
 gawk                                                               x86_64                             5.1.0-6.el9                                                baseos                                996 k
 glib2                                                              x86_64                             2.68.4-5.el9                                               baseos                                2.6 M
 glibc                                                              x86_64                             2.34-28.el9_0.2                                            baseos                                1.9 M
 glibc-common                                                       x86_64                             2.34-28.el9_0.2                                            baseos                                289 k
 glibc-gconv-extra                                                  x86_64                             2.34-28.el9_0.2                                            baseos                                1.5 M
 glibc-langpack-en                                                  x86_64                             2.34-28.el9_0.2                                            baseos                                558 k
 gnupg2                                                             x86_64                             2.3.3-2.el9_0                                              baseos                                2.5 M
 gnupg2-smime                                                       x86_64                             2.3.3-2.el9_0                                              appstream                             242 k
 gobject-introspection                                              x86_64                             1.68.0-10.el9                                              baseos                                246 k
 gpgme                                                              x86_64                             1.15.1-6.el9                                               baseos                                206 k
 grub2-common                                                       noarch                             1:2.06-27.el9_0.7.rocky.0.1                                baseos                                904 k
 grub2-efi-x64                                                      x86_64                             1:2.06-27.el9_0.7.rocky.0.1                                baseos                                1.3 M
 grub2-tools                                                        x86_64                             1:2.06-27.el9_0.7.rocky.0.1                                baseos                                1.8 M
 grub2-tools-efi                                                    x86_64                             1:2.06-27.el9_0.7.rocky.0.1                                baseos                                539 k
 grub2-tools-extra                                                  x86_64                             1:2.06-27.el9_0.7.rocky.0.1                                baseos                                836 k
 grub2-tools-minimal                                                x86_64                             1:2.06-27.el9_0.7.rocky.0.1                                baseos                                601 k
 grubby                                                             x86_64                             8.40-55.el9                                                baseos                                 34 k
 ima-evm-utils                                                      x86_64                             1.4-4.el9                                                  baseos                                 63 k
 iputils                                                            x86_64                             20210202-7.el9                                             baseos                                169 k
 json-c                                                             x86_64                             0.14-11.el9                                                baseos                                 42 k
 kmod                                                               x86_64                             28-7.el9                                                   baseos                                122 k
 kmod-libs                                                          x86_64                             28-7.el9                                                   baseos                                 64 k
 krb5-libs                                                          x86_64                             1.19.1-15.el9_0                                            baseos                                722 k
 libarchive                                                         x86_64                             3.5.3-2.el9_0                                              baseos                                389 k
 libblkid                                                           x86_64                             2.37.4-3.el9                                               baseos                                107 k
 libbytesize                                                        x86_64                             2.5-3.el9                                                  appstream                              39 k
 libcomps                                                           x86_64                             0.1.18-1.el9                                               baseos                                 77 k
 libcurl                                                            x86_64                             7.76.1-14.el9_0.5                                          baseos                                286 k
 libdb                                                              x86_64                             5.3.28-53.el9                                              baseos                                736 k
 libdb-utils                                                        x86_64                             5.3.28-53.el9                                              appstream                             131 k
 libdnf                                                             x86_64                             0.65.0-5.1.el9                                             baseos                                643 k
 libevent                                                           x86_64                             2.1.12-6.el9                                               baseos                                261 k
 libfdisk                                                           x86_64                             2.37.4-3.el9                                               baseos                                154 k
 libffi                                                             x86_64                             3.4.2-7.el9                                                baseos                                 37 k
 libgpg-error                                                       x86_64                             1.42-5.el9                                                 baseos                                211 k
 libldb                                                             x86_64                             2.4.1-1.el9                                                baseos                                181 k
 libmodulemd                                                        x86_64                             2.13.0-2.el9                                               baseos                                231 k
 libmount                                                           x86_64                             2.37.4-3.el9                                               baseos                                133 k
 libnfsidmap                                                        x86_64                             1:2.5.4-10.el9                                             baseos                                 61 k
 libnftnl                                                           x86_64                             1.1.9-4.el9                                                baseos                                 84 k
 libpsl                                                             x86_64                             0.21.1-5.el9                                               baseos                                 63 k
 librepo                                                            x86_64                             1.14.2-1.el9                                               baseos                                 89 k
 libselinux                                                         x86_64                             3.3-2.el9                                                  baseos                                 84 k
 libselinux-utils                                                   x86_64                             3.3-2.el9                                                  baseos                                157 k
 libsemanage                                                        x86_64                             3.3-2.el9                                                  baseos                                118 k
 libsepol                                                           x86_64                             3.3-2.el9                                                  baseos                                301 k
 libsmartcols                                                       x86_64                             2.37.4-3.el9                                               baseos                                 63 k
 libsolv                                                            x86_64                             0.7.20-2.el9                                               baseos                                386 k
 libssh                                                             x86_64                             0.9.6-3.el9                                                baseos                                206 k
 libssh-config                                                      noarch                             0.9.6-3.el9                                                baseos                                9.8 k
 libsss_certmap                                                     x86_64                             2.6.2-4.el9_0.1                                            baseos                                 75 k
 libsss_idmap                                                       x86_64                             2.6.2-4.el9_0.1                                            baseos                                 38 k
 libsss_nss_idmap                                                   x86_64                             2.6.2-4.el9_0.1                                            baseos                                 40 k
 libsss_sudo                                                        x86_64                             2.6.2-4.el9_0.1                                            baseos                                 31 k
 libstdc++                                                          x86_64                             11.2.1-9.4.el9                                             baseos                                750 k
 libuser                                                            x86_64                             0.63-10.el9                                                baseos                                381 k
 libuuid                                                            x86_64                             2.37.4-3.el9                                               baseos                                 28 k
 libxcrypt                                                          x86_64                             4.4.18-3.el9                                               baseos                                115 k
 lua-libs                                                           x86_64                             5.4.2-4.el9                                                baseos                                211 k
 lvm2                                                               x86_64                             9:2.03.14-4.el9                                            baseos                                1.4 M
 lvm2-libs                                                          x86_64                             9:2.03.14-4.el9                                            baseos                                974 k
 mokutil                                                            x86_64                             2:0.4.0-8.el9_0.1                                          baseos                                 44 k
 mpfr                                                               x86_64                             4.1.0-7.el9                                                baseos                                326 k
 nftables                                                           x86_64                             1:0.9.8-12.el9                                             baseos                                361 k
 open-vm-tools                                                      x86_64                             11.3.5-1.el9_0.1                                           appstream                             840 k
 openldap                                                           x86_64                             2.6.2-1.el9_0                                              baseos                                254 k
 openssh                                                            x86_64                             8.7p1-10.el9_0                                             baseos                                450 k
 openssh-clients                                                    x86_64                             8.7p1-10.el9_0                                             baseos                                699 k
 openssh-server                                                     x86_64                             8.7p1-10.el9_0                                             baseos                                451 k
 openssl                                                            x86_64                             1:3.0.1-41.el9_0                                           baseos                                1.1 M
 openssl-libs                                                       x86_64                             1:3.0.1-41.el9_0                                           baseos                                2.1 M
 openssl-pkcs11                                                     x86_64                             0.4.11-7.el9                                               baseos                                 73 k
 p11-kit                                                            x86_64                             0.24.1-2.el9                                               baseos                                365 k
 p11-kit-trust                                                      x86_64                             0.24.1-2.el9                                               baseos                                145 k
 pam                                                                x86_64                             1.5.1-9.el9_0.1                                            baseos                                540 k
 parted                                                             x86_64                             3.4-6.el9                                                  baseos                                580 k
 policycoreutils                                                    x86_64                             3.3-6.el9_0                                                baseos                                200 k
 policycoreutils-python-utils                                       noarch                             3.3-6.el9_0                                                appstream                              68 k
 python3-audit                                                      x86_64                             3.0.7-101.el9_0.2                                          appstream                              83 k
 python3-configobj                                                  noarch                             5.0.6-25.el9                                               appstream                              62 k
 python3-dateutil                                                   noarch                             1:2.8.1-6.el9                                              baseos                                288 k
 python3-dbus                                                       x86_64                             1.2.18-2.el9                                               baseos                                132 k
 python3-decorator                                                  noarch                             4.4.2-6.el9                                                baseos                                 27 k
 python3-dnf                                                        noarch                             4.10.0-5.el9_0                                             baseos                                409 k
 python3-dnf-plugins-core                                           noarch                             4.0.24-4.el9_0                                             baseos                                212 k
 python3-firewall                                                   noarch                             1.0.0-4.el9                                                baseos                                342 k
 python3-gobject-base                                               x86_64                             3.40.1-5.el9                                               baseos                                315 k
 python3-gpg                                                        x86_64                             1.15.1-6.el9                                               baseos                                261 k
 python3-hawkey                                                     x86_64                             0.65.0-5.1.el9                                             baseos                                106 k
 python3-libcomps                                                   x86_64                             0.1.18-1.el9                                               baseos                                 48 k
 python3-libdnf                                                     x86_64                             0.65.0-5.1.el9                                             baseos                                775 k
 python3-libs                                                       x86_64                             3.9.10-2.el9                                               baseos                                7.3 M
     replacing  platform-python-pip.noarch 9.0.3-22.el8.rocky.0
     replacing  platform-python-setuptools.noarch 39.2.0-6.el8
 python3-libselinux                                                 x86_64                             3.3-2.el9                                                  appstream                             182 k
 python3-libsemanage                                                x86_64                             3.3-2.el9                                                  appstream                              80 k
 python3-linux-procfs                                               noarch                             0.7.0-1.el9                                                baseos                                 36 k
 python3-nftables                                                   x86_64                             1:0.9.8-12.el9                                             baseos                                 18 k
 python3-perf                                                       x86_64                             5.14.0-70.26.1.el9_0                                       baseos                                755 k
 python3-pip-wheel                                                  noarch                             21.2.3-6.el9                                               baseos                                1.1 M
 python3-policycoreutils                                            noarch                             3.3-6.el9_0                                                appstream                             2.0 M
 python3-pyudev                                                     noarch                             0.22.0-6.el9                                               baseos                                 76 k
 python3-rpm                                                        x86_64                             4.16.1.3-12.el9_0                                          baseos                                 90 k
 python3-setools                                                    x86_64                             4.4.0-4.el9                                                baseos                                547 k
 python3-setuptools-wheel                                           noarch                             53.0.0-10.el9                                              baseos                                470 k
 python3-six                                                        noarch                             1.15.0-9.el9                                               baseos                                 36 k
 python3-unbound                                                    x86_64                             1.13.1-13.el9_0                                            appstream                              99 k
 readline                                                           x86_64                             8.1-4.el9                                                  baseos                                210 k
 rpm                                                                x86_64                             4.16.1.3-12.el9_0                                          baseos                                487 k
 rpm-build-libs                                                     x86_64                             4.16.1.3-12.el9_0                                          baseos                                 92 k
 rpm-libs                                                           x86_64                             4.16.1.3-12.el9_0                                          baseos                                309 k
 rpm-plugin-selinux                                                 x86_64                             4.16.1.3-12.el9_0                                          baseos                                 19 k
 rpm-plugin-systemd-inhibit                                         x86_64                             4.16.1.3-12.el9_0                                          appstream                              19 k
 shadow-utils                                                       x86_64                             2:4.9-3.el9                                                baseos                                1.1 M
 sssd-client                                                        x86_64                             2.6.2-4.el9_0.1                                            baseos                                143 k
 sssd-common                                                        x86_64                             2.6.2-4.el9_0.1                                            baseos                                1.5 M
 sssd-kcm                                                           x86_64                             2.6.2-4.el9_0.1                                            baseos                                103 k
 sssd-nfs-idmap                                                     x86_64                             2.6.2-4.el9_0.1                                            baseos                                 35 k
 sudo                                                               x86_64                             1.9.5p2-7.el9                                              baseos                                1.0 M
 systemd                                                            x86_64                             250-6.el9_0.1                                              baseos                                4.0 M
 systemd-libs                                                       x86_64                             250-6.el9_0.1                                              baseos                                613 k
 systemd-pam                                                        x86_64                             250-6.el9_0.1                                              baseos                                239 k
 systemd-udev                                                       x86_64                             250-6.el9_0.1                                              baseos                                1.5 M
 tpm2-tss                                                           x86_64                             3.0.3-7.el9                                                baseos                                566 k
 unbound-libs                                                       x86_64                             1.13.1-13.el9_0                                            appstream                             516 k
 util-linux                                                         x86_64                             2.37.4-3.el9                                               baseos                                2.2 M
 xfsprogs                                                           x86_64                             5.14.2-1.el9                                               baseos                                1.0 M
 xmlsec1                                                            x86_64                             1.2.29-9.el9                                               appstream                             189 k
 xmlsec1-openssl                                                    x86_64                             1.2.29-9.el9                                               appstream                              90 k
 yum                                                                noarch                             4.10.0-5.el9_0                                             baseos                                 92 k
 yum-utils                                                          noarch                             4.0.24-4.el9_0                                             baseos                                 36 k
Installing dependencies:
 alternatives                                                       x86_64                             1.20-2.el9                                                 baseos                                 37 k
 compat-openssl11                                                   x86_64                             1:1.1.1k-4.el9_0                                           appstream                             1.5 M
 inih                                                               x86_64                             56-1.el8                                                   epel                                   27 k
 initscripts-service                                                noarch                             10.11.4-1.el9                                              baseos                                 14 k
 libcbor                                                            x86_64                             0.7.0-6.el8                                                epel                                   56 k
 libdnf-plugin-subscription-manager                                 x86_64                             1.29.26.1-1.el9_0                                          baseos                                 71 k
 libeconf                                                           x86_64                             0.4.1-2.el9                                                baseos                                 27 k
 libfido2                                                           x86_64                             1.11.0-2.el8                                               epel                                   95 k
 openldap-compat                                                    x86_64                             2.6.2-1.el9_0                                              baseos                                 17 k
 protobuf-c                                                         x86_64                             1.3.3-12.el9                                               baseos                                 35 k
 python3                                                            x86_64                             3.9.10-2.el9                                               baseos                                 29 k
     replacing  platform-python.x86_64 3.6.8-47.el8_6.rocky.0
 python3-chardet                                                    noarch                             4.0.0-5.el9                                                baseos                                209 k
 python3-cloud-what                                                 x86_64                             1.29.26.1-1.el9_0                                          baseos                                 79 k
 python3-ethtool                                                    x86_64                             0.15-2.el9                                                 baseos                                 40 k
 python3-idna                                                       noarch                             2.10-7.el9                                                 baseos                                 92 k
 python3-iniparse                                                   noarch                             0.4-45.el9                                                 baseos                                 42 k
 python3-inotify                                                    noarch                             0.9.6-25.el9                                               baseos                                 52 k
 python3-librepo                                                    x86_64                             1.14.2-1.el9                                               baseos                                 50 k
 python3-pysocks                                                    noarch                             1.7.1-12.el9                                               baseos                                 34 k
 python3-requests                                                   noarch                             2.25.1-6.el9                                               baseos                                114 k
 python3-setuptools                                                 noarch                             53.0.0-10.el9                                              baseos                                841 k
 python3-subscription-manager-rhsm                                  x86_64                             1.29.26.1-1.el9_0                                          baseos                                148 k
 python3-urllib3                                                    noarch                             1.26.5-3.el9                                               baseos                                188 k
 rpm-sign-libs                                                      x86_64                             4.16.1.3-12.el9_0                                          baseos                                 24 k
 subscription-manager                                               x86_64                             1.29.26.1-1.el9_0                                          baseos                                761 k
     replacing  python3-syspurpose.x86_64 1.28.29-3.el8
 subscription-manager-rhsm-certificates                             x86_64                             1.29.26.1-1.el9_0                                          baseos                                 49 k
 systemd-rpm-macros                                                 noarch                             250-6.el9_0.1                                              baseos                                 24 k
 usermode                                                           x86_64                             1.114-4.el9                                                baseos                                175 k
 userspace-rcu                                                      x86_64                             0.12.1-6.el9                                               baseos                                104 k
 util-linux-core                                                    x86_64                             2.37.4-3.el9                                               baseos                                434 k
     replacing  hardlink.x86_64 1:1.3-6.el8
Installing weak dependencies:
 gawk-all-langpacks                                                 x86_64                             5.1.0-6.el9                                                appstream                             206 k
 libxcrypt-compat                                                   x86_64                             4.4.18-3.el9                                               appstream                              88 k
 python-unversioned-command                                         noarch                             3.9.10-2.el9                                               appstream                              12 k
Removing dependent packages:
 gdbm                                                               x86_64                             1:1.18-1.el8                                               @anaconda                             381 k
 python3-slip                                                       noarch                             0.6.4-11.el8                                               @anaconda                              60 k
 python3-slip-dbus                                                  noarch                             0.6.4-11.el8                                               @anaconda                              70 k
Downgrading:
 NetworkManager                                                     x86_64                             1:1.36.0-5.el9_0                                           baseos                                2.1 M
 NetworkManager-libnm                                               x86_64                             1:1.36.0-5.el9_0                                           baseos                                1.6 M
 NetworkManager-team                                                x86_64                             1:1.36.0-5.el9_0                                           baseos                                 32 k
 NetworkManager-tui                                                 x86_64                             1:1.36.0-5.el9_0                                           baseos                                225 k
 tuned                                                              noarch                             2.18.0-1.el9                                               baseos                                281 k

Transaction Summary
==============================================================================================================================================================================================================
Install     33 Packages
Upgrade    146 Packages
Remove       3 Packages
Downgrade    5 Packages

Total download size: 84 M
Downloading Packages:
(1/184): NetworkManager-team-1.36.0-5.el9_0.x86_64.rpm                                                                                                                         63 kB/s |  32 kB     00:00
(2/184): tuned-2.18.0-1.el9.noarch.rpm                                                                                                                                        361 kB/s | 281 kB     00:00
(3/184): NetworkManager-tui-1.36.0-5.el9_0.x86_64.rpm                                                                                                                         203 kB/s | 225 kB     00:01
(4/184): inih-56-1.el8.x86_64.rpm                                                                                                                                             615 kB/s |  27 kB     00:00
(5/184): libcbor-0.7.0-6.el8.x86_64.rpm                                                                                                                                       2.0 MB/s |  56 kB     00:00
(6/184): libfido2-1.11.0-2.el8.x86_64.rpm                                                                                                                                     2.4 MB/s |  95 kB     00:00
(7/184): python3-idna-2.10-7.el9.noarch.rpm                                                                                                                                   299 kB/s |  92 kB     00:00
(8/184): NetworkManager-libnm-1.36.0-5.el9_0.x86_64.rpm                                                                                                                       1.2 MB/s | 1.6 MB     00:01
(9/184): alternatives-1.20-2.el9.x86_64.rpm                                                                                                                                   456 kB/s |  37 kB     00:00
(10/184): python3-requests-2.25.1-6.el9.noarch.rpm                                                                                                                            1.3 MB/s | 114 kB     00:00
(11/184): python3-chardet-4.0.0-5.el9.noarch.rpm                                                                                                                              388 kB/s | 209 kB     00:00
(12/184): rpm-sign-libs-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                                          296 kB/s |  24 kB     00:00
(13/184): NetworkManager-1.36.0-5.el9_0.x86_64.rpm                                                                                                                            1.4 MB/s | 2.1 MB     00:01
(14/184): initscripts-service-10.11.4-1.el9.noarch.rpm                                                                                                                        178 kB/s |  14 kB     00:00
(15/184): usermode-1.114-4.el9.x86_64.rpm                                                                                                                                     1.1 MB/s | 175 kB     00:00
(16/184): python3-urllib3-1.26.5-3.el9.noarch.rpm                                                                                                                             398 kB/s | 188 kB     00:00
(17/184): python3-setuptools-53.0.0-10.el9.noarch.rpm                                                                                                                         1.7 MB/s | 841 kB     00:00
(18/184): python3-iniparse-0.4-45.el9.noarch.rpm                                                                                                                              523 kB/s |  42 kB     00:00
(19/184): python3-pysocks-1.7.1-12.el9.noarch.rpm                                                                                                                             421 kB/s |  34 kB     00:00
(20/184): python3-inotify-0.9.6-25.el9.noarch.rpm                                                                                                                             645 kB/s |  52 kB     00:00
(21/184): python3-3.9.10-2.el9.x86_64.rpm                                                                                                                                     374 kB/s |  29 kB     00:00
(22/184): systemd-rpm-macros-250-6.el9_0.1.noarch.rpm                                                                                                                         305 kB/s |  24 kB     00:00
(23/184): python3-librepo-1.14.2-1.el9.x86_64.rpm                                                                                                                             317 kB/s |  50 kB     00:00
(24/184): subscription-manager-rhsm-certificates-1.29.26.1-1.el9_0.x86_64.rpm                                                                                                 611 kB/s |  49 kB     00:00
(25/184): python3-ethtool-0.15-2.el9.x86_64.rpm                                                                                                                               127 kB/s |  40 kB     00:00
(26/184): python3-subscription-manager-rhsm-1.29.26.1-1.el9_0.x86_64.rpm                                                                                                      958 kB/s | 148 kB     00:00
(27/184): libdnf-plugin-subscription-manager-1.29.26.1-1.el9_0.x86_64.rpm                                                                                                     887 kB/s |  71 kB     00:00
(28/184): openldap-compat-2.6.2-1.el9_0.x86_64.rpm                                                                                                                            214 kB/s |  17 kB     00:00
(29/184): python3-cloud-what-1.29.26.1-1.el9_0.x86_64.rpm                                                                                                                     333 kB/s |  79 kB     00:00
(30/184): protobuf-c-1.3.3-12.el9.x86_64.rpm                                                                                                                                  446 kB/s |  35 kB     00:00
(31/184): subscription-manager-1.29.26.1-1.el9_0.x86_64.rpm                                                                                                                   1.6 MB/s | 761 kB     00:00
(32/184): userspace-rcu-0.12.1-6.el9.x86_64.rpm                                                                                                                               1.2 MB/s | 104 kB     00:00
(33/184): libeconf-0.4.1-2.el9.x86_64.rpm                                                                                                                                     339 kB/s |  27 kB     00:00
(34/184): python-unversioned-command-3.9.10-2.el9.noarch.rpm                                                                                                                  156 kB/s |  12 kB     00:00
(35/184): libxcrypt-compat-4.4.18-3.el9.x86_64.rpm                                                                                                                            1.0 MB/s |  88 kB     00:00
(36/184): gawk-all-langpacks-5.1.0-6.el9.x86_64.rpm                                                                                                                           1.3 MB/s | 206 kB     00:00
(37/184): yum-4.10.0-5.el9_0.noarch.rpm                                                                                                                                       1.1 MB/s |  92 kB     00:00
(38/184): python3-dnf-4.10.0-5.el9_0.noarch.rpm                                                                                                                               1.0 MB/s | 409 kB     00:00
(39/184): dnf-data-4.10.0-5.el9_0.noarch.rpm                                                                                                                                  506 kB/s |  40 kB     00:00
(40/184): util-linux-core-2.37.4-3.el9.x86_64.rpm                                                                                                                             401 kB/s | 434 kB     00:01
(41/184): python3-six-1.15.0-9.el9.noarch.rpm                                                                                                                                 424 kB/s |  36 kB     00:00
(42/184): compat-openssl11-1.1.1k-4.el9_0.x86_64.rpm                                                                                                                          1.4 MB/s | 1.5 MB     00:01
(43/184): python3-linux-procfs-0.7.0-1.el9.noarch.rpm                                                                                                                         234 kB/s |  36 kB     00:00
(44/184): firewalld-filesystem-1.0.0-4.el9.noarch.rpm                                                                                                                         103 kB/s | 8.2 kB     00:00
(45/184): dnf-4.10.0-5.el9_0.noarch.rpm                                                                                                                                       1.1 MB/s | 440 kB     00:00
(46/184): python3-firewall-1.0.0-4.el9.noarch.rpm                                                                                                                             1.1 MB/s | 342 kB     00:00
(47/184): audit-libs-3.0.7-101.el9_0.2.x86_64.rpm                                                                                                                             742 kB/s | 117 kB     00:00
(48/184): audit-3.0.7-101.el9_0.2.x86_64.rpm                                                                                                                                  1.0 MB/s | 252 kB     00:00
(49/184): chkconfig-1.20-2.el9.x86_64.rpm                                                                                                                                     1.0 MB/s | 162 kB     00:00
(50/184): lua-libs-5.4.2-4.el9.x86_64.rpm                                                                                                                                     1.3 MB/s | 211 kB     00:00
(51/184): firewalld-1.0.0-4.el9.noarch.rpm                                                                                                                                    509 kB/s | 432 kB     00:00
(52/184): libarchive-3.5.3-2.el9_0.x86_64.rpm                                                                                                                                 1.2 MB/s | 389 kB     00:00
(53/184): policycoreutils-3.3-6.el9_0.x86_64.rpm                                                                                                                              1.2 MB/s | 200 kB     00:00
(54/184): python3-gobject-base-3.40.1-5.el9.x86_64.rpm                                                                                                                        1.3 MB/s | 315 kB     00:00
(55/184): glib2-2.68.4-5.el9.x86_64.rpm                                                                                                                                       1.3 MB/s | 2.6 MB     00:01
(56/184): libdb-5.3.28-53.el9.x86_64.rpm                                                                                                                                      635 kB/s | 736 kB     00:01
(57/184): rpm-plugin-selinux-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                                     245 kB/s |  19 kB     00:00
(58/184): rpm-build-libs-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                                         1.1 MB/s |  92 kB     00:00
(59/184): python3-pip-wheel-21.2.3-6.el9.noarch.rpm                                                                                                                           1.4 MB/s | 1.1 MB     00:00
(60/184): python3-rpm-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                                            1.1 MB/s |  90 kB     00:00
(61/184): rpm-libs-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                                               662 kB/s | 309 kB     00:00
(62/184): rpm-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                                                    1.2 MB/s | 487 kB     00:00
(63/184): grubby-8.40-55.el9.x86_64.rpm                                                                                                                                       428 kB/s |  34 kB     00:00
(64/184): libnftnl-1.1.9-4.el9.x86_64.rpm                                                                                                                                     1.0 MB/s |  84 kB     00:00
(65/184): yum-utils-4.0.24-4.el9_0.noarch.rpm                                                                                                                                 455 kB/s |  36 kB     00:00
(66/184): python3-dnf-plugins-core-4.0.24-4.el9_0.noarch.rpm                                                                                                                  903 kB/s | 212 kB     00:00
(67/184): dnf-plugins-core-4.0.24-4.el9_0.noarch.rpm                                                                                                                          433 kB/s |  34 kB     00:00
(68/184): python3-dateutil-2.8.1-6.el9.noarch.rpm                                                                                                                             942 kB/s | 288 kB     00:00
(69/184): python3-setuptools-wheel-53.0.0-10.el9.noarch.rpm                                                                                                                   1.0 MB/s | 470 kB     00:00
(70/184): python3-decorator-4.4.2-6.el9.noarch.rpm                                                                                                                            344 kB/s |  27 kB     00:00
(71/184): openssl-libs-3.0.1-41.el9_0.x86_64.rpm                                                                                                                              1.4 MB/s | 2.1 MB     00:01
(72/184): openssl-3.0.1-41.el9_0.x86_64.rpm                                                                                                                                   679 kB/s | 1.1 MB     00:01
(73/184): cryptsetup-libs-2.4.3-4.el9_0.1.x86_64.rpm                                                                                                                          1.1 MB/s | 433 kB     00:00
(74/184): python3-pyudev-0.22.0-6.el9.noarch.rpm                                                                                                                              472 kB/s |  76 kB     00:00
(75/184): kmod-libs-28-7.el9.x86_64.rpm                                                                                                                                       787 kB/s |  64 kB     00:00
(76/184): kmod-28-7.el9.x86_64.rpm                                                                                                                                            522 kB/s | 122 kB     00:00
(77/184): shadow-utils-4.9-3.el9.x86_64.rpm                                                                                                                                   1.4 MB/s | 1.1 MB     00:00
(78/184): openssl-pkcs11-0.4.11-7.el9.x86_64.rpm                                                                                                                              887 kB/s |  73 kB     00:00
(79/184): parted-3.4-6.el9.x86_64.rpm                                                                                                                                         1.2 MB/s | 580 kB     00:00
(80/184): gobject-introspection-1.68.0-10.el9.x86_64.rpm                                                                                                                      635 kB/s | 246 kB     00:00
(81/184): coreutils-8.32-31.el9.x86_64.rpm                                                                                                                                    1.3 MB/s | 1.1 MB     00:00
(82/184): iputils-20210202-7.el9.x86_64.rpm                                                                                                                                   1.1 MB/s | 169 kB     00:00
(83/184): libffi-3.4.2-7.el9.x86_64.rpm                                                                                                                                       438 kB/s |  37 kB     00:00
(84/184): coreutils-common-8.32-31.el9.x86_64.rpm                                                                                                                             1.5 MB/s | 2.0 MB     00:01
(85/184): libsolv-0.7.20-2.el9.x86_64.rpm                                                                                                                                     1.2 MB/s | 386 kB     00:00
(86/184): libsepol-3.3-2.el9.x86_64.rpm                                                                                                                                       1.2 MB/s | 301 kB     00:00
(87/184): mpfr-4.1.0-7.el9.x86_64.rpm                                                                                                                                         1.0 MB/s | 326 kB     00:00
(88/184): libsemanage-3.3-2.el9.x86_64.rpm                                                                                                                                    746 kB/s | 118 kB     00:00
(89/184): libselinux-utils-3.3-2.el9.x86_64.rpm                                                                                                                               984 kB/s | 157 kB     00:00
(90/184): libselinux-3.3-2.el9.x86_64.rpm                                                                                                                                     1.0 MB/s |  84 kB     00:00
(91/184): libgpg-error-1.42-5.el9.x86_64.rpm                                                                                                                                  898 kB/s | 211 kB     00:00
(92/184): libpsl-0.21.1-5.el9.x86_64.rpm                                                                                                                                      762 kB/s |  63 kB     00:00
(93/184): libmodulemd-2.13.0-2.el9.x86_64.rpm                                                                                                                                 979 kB/s | 231 kB     00:00
(94/184): libxcrypt-4.4.18-3.el9.x86_64.rpm                                                                                                                                   730 kB/s | 115 kB     00:00
(95/184): libevent-2.1.12-6.el9.x86_64.rpm                                                                                                                                    1.1 MB/s | 261 kB     00:00
(96/184): mokutil-0.4.0-8.el9_0.1.x86_64.rpm                                                                                                                                  543 kB/s |  44 kB     00:00
(97/184): ima-evm-utils-1.4-4.el9.x86_64.rpm                                                                                                                                  760 kB/s |  63 kB     00:00
(98/184): gnupg2-2.3.3-2.el9_0.x86_64.rpm                                                                                                                                     1.2 MB/s | 2.5 MB     00:02
(99/184): json-c-0.14-11.el9.x86_64.rpm                                                                                                                                       535 kB/s |  42 kB     00:00
(100/184): tpm2-tss-3.0.3-7.el9.x86_64.rpm                                                                                                                                    1.2 MB/s | 566 kB     00:00
(101/184): grub2-common-2.06-27.el9_0.7.rocky.0.1.noarch.rpm                                                                                                                  1.4 MB/s | 904 kB     00:00
(102/184): openssh-server-8.7p1-10.el9_0.x86_64.rpm                                                                                                                           1.4 MB/s | 451 kB     00:00
(103/184): openssh-clients-8.7p1-10.el9_0.x86_64.rpm                                                                                                                          1.4 MB/s | 699 kB     00:00
(104/184): python3-nftables-0.9.8-12.el9.x86_64.rpm                                                                                                                           194 kB/s |  18 kB     00:00
(105/184): openssh-8.7p1-10.el9_0.x86_64.rpm                                                                                                                                  1.3 MB/s | 450 kB     00:00
(106/184): python3-libcomps-0.1.18-1.el9.x86_64.rpm                                                                                                                           596 kB/s |  48 kB     00:00
(107/184): libcomps-0.1.18-1.el9.x86_64.rpm                                                                                                                                   943 kB/s |  77 kB     00:00
(108/184): librepo-1.14.2-1.el9.x86_64.rpm                                                                                                                                    1.1 MB/s |  89 kB     00:00
(109/184): nftables-0.9.8-12.el9.x86_64.rpm                                                                                                                                   1.1 MB/s | 361 kB     00:00
(110/184): sssd-nfs-idmap-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                          438 kB/s |  35 kB     00:00
(111/184): sssd-kcm-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                                655 kB/s | 103 kB     00:00
(112/184): python3-setools-4.4.0-4.el9.x86_64.rpm                                                                                                                             1.4 MB/s | 547 kB     00:00
(113/184): sssd-client-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                             918 kB/s | 143 kB     00:00
(114/184): libsss_sudo-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                             391 kB/s |  31 kB     00:00
(115/184): libsss_nss_idmap-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                        480 kB/s |  40 kB     00:00
(116/184): libsss_idmap-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                            482 kB/s |  38 kB     00:00
(117/184): libsss_certmap-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                          908 kB/s |  75 kB     00:00
(118/184): p11-kit-trust-0.24.1-2.el9.x86_64.rpm                                                                                                                              933 kB/s | 145 kB     00:00
(119/184): p11-kit-0.24.1-2.el9.x86_64.rpm                                                                                                                                    1.2 MB/s | 365 kB     00:00
(120/184): sssd-common-2.6.2-4.el9_0.1.x86_64.rpm                                                                                                                             1.2 MB/s | 1.5 MB     00:01
(121/184): systemd-pam-250-6.el9_0.1.x86_64.rpm                                                                                                                               1.0 MB/s | 239 kB     00:00
(122/184): systemd-libs-250-6.el9_0.1.x86_64.rpm                                                                                                                              1.3 MB/s | 613 kB     00:00
(123/184): systemd-udev-250-6.el9_0.1.x86_64.rpm                                                                                                                              1.5 MB/s | 1.5 MB     00:00
(124/184): libcurl-7.76.1-14.el9_0.5.x86_64.rpm                                                                                                                               1.2 MB/s | 286 kB     00:00
(125/184): curl-7.76.1-14.el9_0.5.x86_64.rpm                                                                                                                                  1.2 MB/s | 296 kB     00:00
(126/184): libldb-2.4.1-1.el9.x86_64.rpm                                                                                                                                      1.1 MB/s | 181 kB     00:00
(127/184): openldap-2.6.2-1.el9_0.x86_64.rpm                                                                                                                                  1.5 MB/s | 254 kB     00:00
(128/184): libuser-0.63-10.el9.x86_64.rpm                                                                                                                                     1.6 MB/s | 381 kB     00:00
(129/184): libssh-config-0.9.6-3.el9.noarch.rpm                                                                                                                               127 kB/s | 9.8 kB     00:00
(130/184): libssh-0.9.6-3.el9.x86_64.rpm                                                                                                                                      1.3 MB/s | 206 kB     00:00
(131/184): python3-libs-3.9.10-2.el9.x86_64.rpm                                                                                                                               850 kB/s | 7.3 MB     00:08
(132/184): python3-dbus-1.2.18-2.el9.x86_64.rpm                                                                                                                               819 kB/s | 132 kB     00:00
(133/184): sudo-1.9.5p2-7.el9.x86_64.rpm                                                                                                                                      1.6 MB/s | 1.0 MB     00:00
(134/184): grub2-tools-minimal-2.06-27.el9_0.7.rocky.0.1.x86_64.rpm                                                                                                           1.5 MB/s | 601 kB     00:00
(135/184): python3-perf-5.14.0-70.26.1.el9_0.x86_64.rpm                                                                                                                       939 kB/s | 755 kB     00:00
(136/184): grub2-tools-extra-2.06-27.el9_0.7.rocky.0.1.x86_64.rpm                                                                                                             1.3 MB/s | 836 kB     00:00
(137/184): grub2-tools-efi-2.06-27.el9_0.7.rocky.0.1.x86_64.rpm                                                                                                               908 kB/s | 539 kB     00:00
(138/184): systemd-250-6.el9_0.1.x86_64.rpm                                                                                                                                   1.2 MB/s | 4.0 MB     00:03
(139/184): python3-gpg-1.15.1-6.el9.x86_64.rpm                                                                                                                                1.1 MB/s | 261 kB     00:00
(140/184): gpgme-1.15.1-6.el9.x86_64.rpm                                                                                                                                      1.2 MB/s | 206 kB     00:00
(141/184): libnfsidmap-2.5.4-10.el9.x86_64.rpm                                                                                                                                740 kB/s |  61 kB     00:00
(142/184): readline-8.1-4.el9.x86_64.rpm                                                                                                                                      1.2 MB/s | 210 kB     00:00
(143/184): grub2-tools-2.06-27.el9_0.7.rocky.0.1.x86_64.rpm                                                                                                                   1.5 MB/s | 1.8 MB     00:01
(144/184): grub2-efi-x64-2.06-27.el9_0.7.rocky.0.1.x86_64.rpm                                                                                                                 1.1 MB/s | 1.3 MB     00:01
(145/184): krb5-libs-1.19.1-15.el9_0.x86_64.rpm                                                                                                                               1.1 MB/s | 722 kB     00:00
(146/184): cyrus-sasl-lib-2.1.27-20.el9.x86_64.rpm                                                                                                                            1.6 MB/s | 764 kB     00:00
(147/184): libstdc++-11.2.1-9.4.el9.x86_64.rpm                                                                                                                                1.6 MB/s | 750 kB     00:00
(148/184): pam-1.5.1-9.el9_0.1.x86_64.rpm                                                                                                                                     991 kB/s | 540 kB     00:00
(149/184): gawk-5.1.0-6.el9.x86_64.rpm                                                                                                                                        1.2 MB/s | 996 kB     00:00
(150/184): glibc-common-2.34-28.el9_0.2.x86_64.rpm                                                                                                                            1.2 MB/s | 289 kB     00:00
(151/184): glibc-langpack-en-2.34-28.el9_0.2.x86_64.rpm                                                                                                                       1.4 MB/s | 558 kB     00:00
(152/184): glibc-gconv-extra-2.34-28.el9_0.2.x86_64.rpm                                                                                                                       964 kB/s | 1.5 MB     00:01
(153/184): libuuid-2.37.4-3.el9.x86_64.rpm                                                                                                                                    339 kB/s |  28 kB     00:00
(154/184): util-linux-2.37.4-3.el9.x86_64.rpm                                                                                                                                 1.5 MB/s | 2.2 MB     00:01
(155/184): libsmartcols-2.37.4-3.el9.x86_64.rpm                                                                                                                               403 kB/s |  63 kB     00:00
(156/184): libmount-2.37.4-3.el9.x86_64.rpm                                                                                                                                   869 kB/s | 133 kB     00:00
(157/184): libblkid-2.37.4-3.el9.x86_64.rpm                                                                                                                                   1.3 MB/s | 107 kB     00:00
(158/184): libfdisk-2.37.4-3.el9.x86_64.rpm                                                                                                                                   495 kB/s | 154 kB     00:00
(159/184): glibc-2.34-28.el9_0.2.x86_64.rpm                                                                                                                                   996 kB/s | 1.9 MB     00:01
(160/184): python3-hawkey-0.65.0-5.1.el9.x86_64.rpm                                                                                                                           665 kB/s | 106 kB     00:00
(161/184): xfsprogs-5.14.2-1.el9.x86_64.rpm                                                                                                                                   1.5 MB/s | 1.0 MB     00:00
(162/184): libdnf-0.65.0-5.1.el9.x86_64.rpm                                                                                                                                   909 kB/s | 643 kB     00:00
(163/184): lvm2-libs-2.03.14-4.el9.x86_64.rpm                                                                                                                                 1.5 MB/s | 974 kB     00:00
(164/184): python3-libdnf-0.65.0-5.1.el9.x86_64.rpm                                                                                                                           605 kB/s | 775 kB     00:01
(165/184): device-mapper-libs-1.02.183-4.el9.x86_64.rpm                                                                                                                       1.1 MB/s | 177 kB     00:00
(166/184): device-mapper-event-libs-1.02.183-4.el9.x86_64.rpm                                                                                                                 402 kB/s |  33 kB     00:00
(167/184): device-mapper-event-1.02.183-4.el9.x86_64.rpm                                                                                                                      387 kB/s |  34 kB     00:00
(168/184): python3-configobj-5.0.6-25.el9.noarch.rpm                                                                                                                          774 kB/s |  62 kB     00:00
(169/184): python3-audit-3.0.7-101.el9_0.2.x86_64.rpm                                                                                                                         1.0 MB/s |  83 kB     00:00
(170/184): device-mapper-1.02.183-4.el9.x86_64.rpm                                                                                                                            587 kB/s | 140 kB     00:00
(171/184): libdb-utils-5.3.28-53.el9.x86_64.rpm                                                                                                                               1.5 MB/s | 131 kB     00:00
(172/184): policycoreutils-python-utils-3.3-6.el9_0.noarch.rpm                                                                                                                817 kB/s |  68 kB     00:00
(173/184): rpm-plugin-systemd-inhibit-4.16.1.3-12.el9_0.x86_64.rpm                                                                                                            242 kB/s |  19 kB     00:00
(174/184): unbound-libs-1.13.1-13.el9_0.x86_64.rpm                                                                                                                            1.6 MB/s | 516 kB     00:00
(175/184): python3-unbound-1.13.1-13.el9_0.x86_64.rpm                                                                                                                         1.1 MB/s |  99 kB     00:00
(176/184): lvm2-2.03.14-4.el9.x86_64.rpm                                                                                                                                      1.0 MB/s | 1.4 MB     00:01
(177/184): gnupg2-smime-2.3.3-2.el9_0.x86_64.rpm                                                                                                                              1.5 MB/s | 242 kB     00:00
(178/184): python3-libsemanage-3.3-2.el9.x86_64.rpm                                                                                                                           843 kB/s |  80 kB     00:00
(179/184): python3-libselinux-3.3-2.el9.x86_64.rpm                                                                                                                            1.1 MB/s | 182 kB     00:00
(180/184): xmlsec1-openssl-1.2.29-9.el9.x86_64.rpm                                                                                                                            570 kB/s |  90 kB     00:00
(181/184): xmlsec1-1.2.29-9.el9.x86_64.rpm                                                                                                                                    1.1 MB/s | 189 kB     00:00
(182/184): libbytesize-2.5-3.el9.x86_64.rpm                                                                                                                                   444 kB/s |  39 kB     00:00
(183/184): open-vm-tools-11.3.5-1.el9_0.1.x86_64.rpm                                                                                                                          1.0 MB/s | 840 kB     00:00
(184/184): python3-policycoreutils-3.3-6.el9_0.noarch.rpm                                                                                                                     836 kB/s | 2.0 MB     00:02
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                         2.9 MB/s |  84 MB     00:28
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/sbin/service from install of initscripts-service-10.11.4-1.el9.noarch conflicts with file from package initscripts-10.00.17-1.el8_6.2.x86_64
  file /usr/share/man/man8/service.8.gz from install of initscripts-service-10.11.4-1.el9.noarch conflicts with file from package initscripts-10.00.17-1.el8_6.2.x86_64

Code language: PHP (php)

The next step is to rebuild the RPM database.

sudo rpm --rebuilddb

After the RPM database rebuilds itself, we can restart.

sudo reboot.

That’s it, folks; now you have upgraded your Rocky Linux install from 8 to 9.