Upgrade Rocky Linux 8 to 9

Run the following command:

Confirm the update with y and Enter to confirm. Wait for the process to finish.

The command updates the package list and performs any available upgrades. The --refresh flag instructs dnf to refresh the package list before upgrading.

Add Rocky Linux 9 Repositories

Check the latest versions on the official Rocky Linux website:

After setting the variables, add the repositories by running:

Remove Unnecessary Packages

Install Rocky Linux 9 Packages

If you get an error saying GPG key failed, remove the existing one using the following syntax:

You can find the GPG key IDs by running:

Example:

Next, install the right GPG key by running:

Install Rocky linux9 again.

Rebuild RPM Database

Rebuild the RPM database:

After the rebuild completes, reboot the machine, and it boots into the new Rocky Linux 9 system. Run:

If it restarts and starts, it will be completed successfully.

コメント

タイトルとURLをコピーしました