How to Install Rocky Linux {Step-by-Step Guide}

November 2, 2022


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.

How to install Rocky Linux 9 - step-by-step guide.


  • 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 and, depending on your system and use case, select one of the available ISO image downloads:

Downloading Rocky Linux 9 ISO image.

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 and download the latest Rufus version. For this tutorial, we will use the portable version:

Download Rufus 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.

Creating a bootable USB drive in Rufus.

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.

Opening Startup Disk Creator in Ubuntu.

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.

Creating a startup USB drive in Ubuntu.

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.

Rocky Linux 9 installation menu.

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.

Selecting the installation language.

Installation Menu

The installation summary menu appears with crucial parameters that need to be configured before the installation.

Rocky Linux installation summary menu with configurable parameters.

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.

Adding keyboard layouts during installation.
Language Support

Select the Language Support menu item to install additional UI languages. When finished, click Done.

Selecting which language to use in the OS.
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.

Setting the time and date during installation.

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.

Selecting the Base environment and additional software for installation.

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.

Choosing the destination drive and partitioning scheme.

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:

Selecting a custom partitioning scheme for Rocky Linux installation.

2. Click the + button to add a new partition.

Creating custom partitions for Rocky Linux.

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:

Summary of disk changes after creating custom partitions.

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.

Creating a root password.
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.

Creating a user for Rocky Linux.

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.

Starting the installation of Rocky Linux 9.

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:

Completing the Rocky Linux 9 installation.

Step 5: Log in

After the system boots, a login screen appears with the user account(s) you have created:

Rocky Linux login screen.

Click the user you want to log in to and provide the password:

Logging in to the Rocky Linux OS.

Press Enter, and the Gnome desktop environment appears:

Rocky Linux GNOME Desktop environment.

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.


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.

Was this article helpful?
Bosko Marijan
Having worked as an educator and content writer, combined with his lifelong passion for all things high-tech, Bosko strives to simplify intricate concepts and make them user-friendly. That has led him to technical writing at PhoenixNAP, where he continues his mission of spreading knowledge.
Next you should read
How to Install a Desktop (GUI) on an Ubuntu Server
August 4, 2022

Ubuntu Server does not include a Graphical User Interface (GUI). This guide will help you choose and install a graphical interface on your Ubuntu server.
Read more
How to Reinstall Ubuntu
July 6, 2022

This tutorial shows how to create a bootable USB and reinstall Ubuntu. Reinstalling the OS is sometimes the easiest solution for fixing issues with drivers or after an upgrade failure.
Read more
How to Install Ubuntu 22.04 LTS Desktop (Jammy Jellyfish)
April 20, 2022

Ubuntu 22.04 LTS is the newest Ubuntu version with great new features. Follow this guide to install Ubuntu 22.04 in no time.
Read more
How to Install Windows 11 on Hyper-V Virtual Machine
February 10, 2022

Try the new Windows 11 by installing it inside a virtual machine. This tutorial will show you how to create a Windows 11 virtual machine using Microsoft Hyper-V.
Read more