Learn how to upgrade Rocky Linux 8 to 9 with our detailed step-by-step guide. Ensure a smooth and successful upgrade process for your Rocky Linux system today. #centlinux #linux #rockylinux
Rocky Linux is a Linux distribution developed by Rocky Enterprise Software Foundation. It is intended to be a downstream, complete binary-compatible release using the Red Hat Enterprise Linux (RHEL) operating system source code. The project’s aim is to provide a community-supported, production-grade enterprise operating system. Rocky Linux, along with Red Hat Enterprise Linux and SUSE Linux Enterprise, has become popular for enterprise operating system use.
Rocky Linux 9.0, the latest version of the open source enterprise operating system designed to be fully bug-for-bug compatible with Red Hat Enterprise Linux (RHEL), is now generally available. The update includes new security and networking features, and a new open source build system called Peridot.
Released on 14 July 2022, Rocky Linux 9.0 has all of the build chain infrastructure tools for developers to pick up Rocky Linux or extend or reproduce the Operating system, should a developer want to do something independently of the community or any upstream supporting organization. A primary goal behind developing the new, cloud-native build system was assuring that new versions of Rocky can be released within one week of new RHEL version releases.
Some of the new features of Rocky Linux 9 are:
Recommended Book: How Linux Works, 3rd Edition: What Every Superuser Should Know (PAID LINK) by Brian Ward (Author)
Recommended Online Training: Learn Bash Shell in Linux for Beginners
With Rocky Linux 9.0, some older CPUs will not work well, or perhaps at all. The following architectures are considered minimum requirements for a successful install:
We are using a minimal Rocky Linux 8 virtual machine with following specifications.
By using a ssh client, connect with rockylinux-01.centlinux.com as root user.
Rebuild cache of enabled yum repositories.
# dnf makecache
Execute following dnf command to update software packages in your Rocky Linux server.
# dnf update -y
Here, you are going to upgrade Rocky Linux 8 to 9.
Therefore, it is good to note down the information about your existing system components before starting upgrade process.
Check versions of Linux operating system, Linux Kernel and other installed applications as follows.
# cat /etc/rocky-release Rocky Linux release 8.6 (Green Obsidian) # uname -r 4.18.0-372.16.1.el8_6.0.1.x86_64 # mysql -V mysql Ver 15.1 Distrib 10.3.32-MariaDB, for Linux (x86_64) using readline 5.1 # httpd -v Server version: Apache/2.4.37 (rocky) Server built: Jun 22 2022 14:17:54 # php -v PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
For upgrading your yum repositories from Rocky Linux 8 to 9, you have to upgrade following three software packages.
You can either download above software packages from Rocky Linux website.
Or you can execute following dnf command to install all three of them on your Linux operating system.
# dnf install -y https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/{rocky-gpg-keys-9.0-2.2.el9.noarch.rpm,rocky-release-9.0-2.2.el9.noarch.rpm,rocky-repos-9.0-2.2.el9.noarch.rpm}
You can safely ignore the warning during the execution of above command.
Now you can easily upgrade your Linux operating system by executing following command at Linux Bash prompt.
# dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync
Above command takes a couple of minutes to complete and successfully upgrades your server operating system from Rocky Linux 8 to 9. It also upgrade software applications and Linux Kernel as well.
In Rocky Linux 9, the RPM backend database format has been changed from Berkley Database Backend to SQLite.
Therefore, you need to rebuild your RPM database once to upgrade it to SQLite backend.
# rpm --rebuilddb warning: Converting database from bdb_ro to sqlite backend
Reboot your Linux operating system with the new Linux kernel.
# reboot
During system boot, you may observe the Old Linux Kernel 4.18 is still listed in the GRUB boot menu.
It is the default behavior of Linux operating system to keep two previous Kernels for fallback support.
Although if you don’t like it there, you can remove it by following our guide on how to remove old Linux kernels.
Check versions of Linux operating system, Linux Kernel and installed applications as follows.
# cat /etc/rocky-release Rocky Linux release 9.0 (Blue Onyx) # uname -r 5.14.0-70.17.1.el9_0.x86_64 # mysql -V mysql Ver 15.1 Distrib 10.5.13-MariaDB, for Linux (x86_64) using EditLine wrapper # httpd -v Server version: Apache/2.4.51 (Rocky Linux) Server built: Mar 21 2022 00:00:00 # php -v PHP 8.0.13 (cli) (built: Nov 16 2021 18:07:21) ( NTS gcc x86_64 ) Copyright (c) The PHP Group Zend Engine v4.0.13, Copyright (c) Zend Technologies with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies
You can see that your Linux operating system along with Linux Kernel and installed applications has been upgraded from Rocky Linux 8 to 9.
Thank you for following our guide on how to upgrade Rocky Linux 8 to 9. We hope this tutorial has helped you achieve a smooth upgrade. If you need further assistance or customized support for your Rocky Linux upgrade, visit my Fiverr page here. Happy upgrading!
Puppy Linux is a fast, lightweight OS designed for speed and simplicity, perfect for old…
Learn how to change Apache document root in Linux by following this step-by-step guide. Adjust…
Discover how to change Apache port in Linux easily. Follow our simple guide to modify…
Learn how to create a virtual host in Apache Server with this comprehensive guide. Set…
Discover 10 practical tasks for the RHCSA exam with step-by-step solutions. Boost your Linux skills…
Discover the ultimate Fail2ban configuration guide. Learn how to set up, customize, and optimize Fail2ban…
This website uses cookies.