Introduction
Rocky Linux is an open-source Linux distribution developed by Rocky Enterprise Software Foundation. It is an enterprise OS intended to be a downstream, complete binary-compatible release that uses the Red Hat Enterprise Linux OS source code. It aims for bug-for-bug compatibility with the Red Hat ecosystem.
Rocky Linux 9 is the latest Rocky Linux version, released in July 2022.
In this tutorial, you will learn to install Rocky Linux.
Prerequisites
- Recommended system requirements:
- x86-64, ARM64, ppc64le, or s390x architecture.
- 2 GB of RAM.
- 40 GB of disk space for storage.
- A 16 GB USB drive (The ISO image is 7.9 GB large).
Rocky Linux 9 Features
The Rocky Linux version 9.0 comes with a new reproducible build system called Peridot. A reproducible build is a software compiling process that ensures the resulting binary code can be reproduced.
Note: Install Rocky Linux in RAM on our Bare Metal Cloud and experience blazing-fast speeds and performance.
The aim is to facilitate the creation of new RHEL forks in case Rocky Linux is ever discontinued in the future and to allow the Rocky Linux project to create new releases faster.
Other prominent features of the latest Rocky Linux version are:
- Desktop Environment Improvements
The default desktop environment in Rocky Linux 9 is Gnome 40, the latest GNOME release featuring a redesigned UI and better user experience. The OS features fractional scaling and support for larger displays with greater screen resolutions.
Additionally, the OS allows each screen to have a specific refresh rate, independent from others.
- Language Runtimes and Tools
Rocky Linux 9 comes with the latest language runtimes and compilers, including GCC 11.2.1, Go (1.17.1), Rust (1.58.1), and LLVM LLVM (13.0.1).
The OS also features the latest coding software packages, such as Python 3.9, Node.JS 16, Ruby 3.0.3, PHP 8.0, and Perl 5.32. The updates come with improvements in terms of performance, bug fixes, and language functionality.
- File System Improvements
This version has better overall performance and updated debugging tool versions, including GDB 10.2, Valgrind 3.18.1, SystemTap 4.6, etc. SELinux performance, memory overhead, load times, and other features are substantially improved.
The base of the OS is the XFS file system which now supports Direct Access operations (DAX), allowing direct access to byte-addressable persistent memory. DAX, combined with NFS, reduces latency compared to traditional block I/O conventions.
- Security
Rocky Linux 9 no longer uses SHA-1 message digest as it is considered unsecure, while the remote root login via SSH has also been disabled by default. The security changes prevent hackers from performing brute force attacks and entering the system.
The new OS version features OpenSSL v3.0.1, which includes numerous improvements, including a provider concept, a new versioning scheme, an improved HTTPS client, new protocol support, and many others.
Additionally, OpenSSH is upgraded to version 8.7p1 with many improvements - including replacing SCP/RCP protocol with the SFTP protocol.
- System Monitoring
The system includes the Cockpit web console that features an improved performance page with metrics related to CPU, memory usage, network bandwidth, etc. The console allows users to diagnose issues with high memory usage, network spikes, or resource hogs.
- Networking
There have been multiple changes to how networking works in Rocky Linux 9:
- The NetworkManager stores new connection profiles using key files, although ifcfg is still supported.
- The nftables framework has replaced iptables-nft and ipset, which are now deprecated.
- The NetworkManager app is now the default way for configuring network connections. The network-scripts package has been removed from Rocky Linux 9.
How to Install Rocky Linux 9
Follow the steps outlined in the sections below to install Rocky Linux 9 on your machine.
Step 1: Download the ISO Image
Using a browser of your choice, browse to https://rockylinux.org/download/ and, depending on your system and use case, select one of the available ISO image downloads:
For this tutorial, we will install Rocky Linux on a 64-bit architecture. We have downloaded the DVD ISO image, which contains the BaseOS and AppStream repositories.
The Boot and Minimal versions are used when installing the OS from another source (such as an HTTP repository of the binary files) or to enter Rescue Mode.
Step 2: Create Bootable USB Drive
Depending on which system you will create the bootable USB drive, use one of the following tools:
Rufus on Windows
1. Browse to https://rufus.ie/en/# and download the latest Rufus version. For this tutorial, we will use the portable version:
2. Open Rufus and insert a USB stick. The program automatically recognizes and selects it.
3. Click the SELECT button and select the Rocky Linux 9 ISO image you have previously downloaded.
4. Click START to write the ISO image and create a bootable USB drive.
Startup Disk Creator on Ubuntu Linux
1. Click the Show Applications button, and in the search dialog type Startup Disk Creator.
2. In the Source disc image section, click Other. Select the Rocky Linux ISO image you have previously downloaded.
3. In the Disk to Use section, select your USB drive.
4. Click Make Startup Disk and wait for the process to complete.
Step 3: Boot up Rocky Linux from the USB
To boot up Rocky Linux from the USB, follow the steps below:
1. Insert the Rocky Linux USB drive.
2. Turn on the machine or restart the system. The USB drive should boot automatically. If it does, skip the next step.
If the USB doesn't boot, manually select the USB boot device in the Boot Menu or BIOS/UEFI.
3. Access the boot menu by tapping the designated boot key for your machine as soon as the computer turns on. The key differs based on the machine vendor, so Google the one for your device.
4. Select the USB boot device using the arrow keys in the boot menu. The system starts loading the Rocky Linux installation menu.
Step 4: Install Rocky Linux
After booting to the installation menu, start the installation by selecting Install Rocky Linux 9.0.
Choose Installation Language
Once the Rocky Linux Anaconda installer loads, the Welcome page prompts you to choose the language for the installation process. After selecting, press Continue.
Installation Menu
The installation summary menu appears with crucial parameters that need to be configured before the installation.
Select each item to configure the specified setting and click Begin Installation when finished. The sections below explain each of the configurable parameters.
Keyboard Layout Selection
Select the Keyboard option to add keyboard layouts. The default keyboard configuration depends on which language you selected. Click the + button to add a keyboard layout aside from the default one.
You can also test the keyboard in the textbox on the right to ensure it is the correct layout.
When finished, click Done to go back to the installation menu.
Language Support
Select the Language Support menu item to install additional UI languages. When finished, click Done.
Time and Date
Select the Time & Date option to set up the time and date. The installer automatically detects the region and time zone if you have internet access. Alternatively, set the parameters manually by selecting the region and city from the dropdown menu and set the time and date in the bottom part of the screen.
Turn on the Network Time switch to keep the time and date synchronized with the internet time.
When finished, click Done to save the changes and go back.
Software Selection
Under the SOFTWARE section, click the Software Selection item to select which base environment and additional software to install.
Depending on your use case and base environment, choose between debugging tools, the DNS Name Server packages, FTP server tools, etc.
When finished, click Done to return to the installation menu.
Installation Destination
Under the SYSTEM section, click the Installation Destination item to select and partition the hard disk for the installation. Ensure that the disk on which you are installing Rocky Linux has a checkmark.
Under Storage Configuration, choose whether to configure the storage automatically or if you want to create custom partitions. If you choose Custom, click Done, and the Manual Partitioning window appears.
Manual Partitioning
In the Manual Partitioning window, create the custom partitions for your OS and select a file system type.
1. In the dropdown menu, select Standard Partition as the partitioning scheme:
2. Click the + button to add a new partition.
For this installation, we will create the following partitions:
- /home - 20 GiB
- /boot - 1 GiB
- swap - 8 GiB
Add each partition by clicking the + button and specifying the size. Click the Add mount point button to create the partition.
3. When finished, click Done to exit the partition manager.
4. A window appears showing the summary of changes to be written to disk:
Click Accept Changes to proceed with the partitioning or Cancel to return and make changes to the partitions. When the partitioning finishes, the wizard returns to the installation menu.
Root Password
Under the USER SETTINGS section, click the Root Password item to set up an administrator password for the system. Enter the password and confirm it. Remote logins via SSH are disabled by default. Check the Allow root SSH login with password option to enable it.
The password strength indicator shows whether the password is strong enough. After setting up the password, click Done to return to the installation menu and begin the installation.
User Creation
Under USER SETTINGS, click the User Creation item to create a user for the OS. Enter a name, and choose a login username and password. Retype the password and check the password strength indicator.
To make the user a system administrator, check the Make this user administrator box.
When finished, click Done to save the changes.
Install Rocky Linux
After configuring all the settings in the installation menu, click the Begin Installation button to start installing Rocky Linux.
When the installation completes, take out the USB drive and click the Reboot System button to boot into the fresh Rocky Linux 9 installation on your machine:
Step 5: Log in
After the system boots, a login screen appears with the user account(s) you have created:
Click the user you want to log in to and provide the password:
Press Enter, and the Gnome desktop environment appears:
The installation is complete. You can start using Rocky Linux on your machine.
Note: Learn also how to install Rocky Linux on VMware, how to install Rocky Linux on VirtualBox, how to install Python on Rocky Linux, or how to install Ansible on Rocky Linux.
Conclusion
This guide showed how to install the latest Rocky Linux version 9. This version comes with various improvements in performance, security, and UX, and brings the latest versions of language runtimes and compilers.