Install Rocky Linux 9.5 in 12 Easy Steps: A Complete Guide

Install Rocky Linux 9.5

Learn how to install Rocky Linux 9.5 in 12 easy steps with this comprehensive guide. Follow our step-by-step instructions, including CLI examples, to set up your system quickly and efficiently. Perfect for beginners and experienced users alike!

Table of Contents

Introduction

Rocky Linux has become a popular choice for those looking for a stable, community-driven, enterprise grade Linux distribution, especially after CentOS shifted focus to CentOS Stream. Rocky Linux 9.5, based on RHEL (Red Hat Enterprise Linux), is an ideal operating system for servers and workstations
alike. Whether you’re setting up a server for production or simply testing the operating system in a virtual environment, this guide will walk you through the entire process. In this blog post, we’ll guide you through the process of installing Rocky Linux 9.5 in 12 easy steps, helping you get started with a clean installation.

Prerequisites

Before we begin, ensure that you have:

RequirementDetails
Machine SpecificationsA compatible physical or virtual machine with at least 2GB of RAM and 20GB of disk space.
USB Drive or Network InstallationA USB drive (minimum 12GB) or a network-based installation.
Rocky Linux 9.5 ISO ImageA Rocky Linux 9.5 ISO image (available from the official Rocky Linux website).
Tool for Writing ISO to USBA tool to write the ISO to USB (e.g., Rufus, Etcher, or dd).

Install Rocky Linux 9.5

Step 1: Download the Rocky Linux 9.5 ISO

First, visit the official Rocky Linux download page to get the latest stable version of Rocky Linux 9.5.

Choose the appropriate version

  • Minimal ISO: Best for minimal installations and advanced users who want to customize their setup.
  • DVD ISO: Full installation with a graphical interface, suitable for new users.
Install Rocky Linux 9.5

Photo by admingeek from Infotechys

Choose the ISO based on your needs and download it to your local machine.

Step 2: Create a Bootable USB Drive

Once you have the ISO image, you need to create a bootable USB drive. You can do this on Windows, macOS, or Linux.

On Windows:

  • Download Rufus from rufus.ie.
  • Insert your USB drive and open Rufus.
  • In Rufus, select your USB drive, choose the downloaded Rocky Linux ISO, and click “Start.”
  • Confirm the warning that the USB drive will be erased, and the tool will create a bootable USB.

On Linux (Using dd command):

				
					sudo dd if=/path/to/RockyLinux9.5.iso of=/dev/sdX bs=4M status=progress && sync
				
			

Replace /dev/sdX with the correct path for your USB drive (e.g., /dev/sdb ). Be cautious with the dd command as selecting the wrong drive can erase data.

Step 3: Boot From the USB Drive

  • Insert the bootable USB drive into your machine.
  • Restart the computer and enter the BIOS/UEFI settings (usually by pressing F2, F12, ESC, or DEL during boot).
  • Set the USB drive as the first boot device.
  • Save and exit the BIOS/UEFI settings. The system will boot from the USB drive.
Install Rocky Linux 9.5

Photo by admingeek from Infotechys

Step 4: Select Installation Language

Once the system boots from the USB drive, you’ll be greeted by the Rocky Linux 9.5 Installer. The first step is to choose the installation language.

Install Rocky Linux 9.5

Photo by admingeek from Infotechys

Select your preferred language from the list (e.g., English). Click Continue to proceed.

Step 5: Configure Keyboard Layout

In the Installation Summary window, click on the Keyboard option. Select your preferred keyboard layout, and click Done.

Configure Keyboard Layout in Rocky Linux Installation Window

Photo by admingeek from Infotechys

Example: For a U.S. keyboard layout, select English (US). This will already be your default setting.

Step 6: Configure Timezone and Date/Time Settings

Click on the Time & Date option to set your timezone. The system will typically auto-detect your location based on the system’s IP address. Choose your timezone from the list (e.g., America/New_York). You can configure NTP (Network Time Protocol) to ensure the system’s time is synchronized.

Configure Time Zone Settings Layout in Rocky Linux Installation Window

Photo by admingeek from Infotechys

Click Done to save your settings.

Step 7: Set Installation Destination

Click on Installation Destination to select the disk where Rocky Linux will be installed. Select the disk where you want to install Rocky Linux (e.g., /dev/sda).
You can choose to use the entire disk or set up custom partitions using Custom.

Configure Disk Partitioning in Rocky Linux Installation Window (Part 1 of 3)

Photo by admingeek from Infotechys

Recommended Partition Layout (for new users):

  • /boot: 1 GB (formatted as ext4)
  • /root: 20-40 GB (formatted as ext4 or XFS)
  • swap: Equal to the amount of RAM for systems with less than 8GB RAM, otherwise 4GB is typically enough.
  • /home: Remaining space (if you need a separate partition for user data)
Configure Disk Partitioning in Rocky Linux Installation Window (Part 2 of 3)
Disk Partitioning - Custom (Part 1)
Configure Disk Partitioning in Rocky Linux Installation Window (Part 3 of 3)
Disk Partitioning - Custom (Part 2)
Install Rocky Linux 9.5: Accept Changes - Disk Partitioning

Photo by admingeek from Infotechys

Click Done after selecting the disk and partition scheme and then, click the Accept Changes button to continue.

Network and Hostname Settings

Next, configure your network settings. Click on Network & Hostname to:

  • Set your hostname (e.g., rocky-vm1). It’s localhost.localdomain by default.
  • Configure your network interface. If you have a wired connection, it should automatically connect. For wireless, select your Wi-Fi network and enter the password.
Network and Hostname Settings in Rocky Linux 9.5 Installation - Part 1 of 2
Network and Hostname Settings - Part1
Network and Hostname Settings in Rocky Linux 9.5 Installation - Part 2 of 2
Network and Hostname Settings - Part2

Ensure that Automatic IP Configuration is selected unless you are using a static IP address.

Step 8: Software Selection

For this demonstration, we selected the “Workstation” option for a setup with the GNOME desktop, graphical utilities, and essential software. You can also choose additional software, such as Development Tools, Web Server, or Virtualization, under “Software Selection.”

Software Selection in Rocky Linux 9.5 Installation

Photo by admingeek from Infotechys

Click the Done button to continue.

Step 9: Set Root Password

Click on Root Password to set the administrator password. This password will be required to perform administrative tasks on your system.
Make sure to use a strong, secure password with a combination of uppercase, lowercase, numbers, and symbols.

Set Root Password in Rocky Linux 9.5 Installation

Photo by admingeek from Infotechys

Step 10: Create User Account (Optional)

You can also create a regular user account for everyday use by clicking on the User Creation option. Enter the following:

  • Username: Choose a name for your user.
  • Password: Set a password for the user account.
Create User in Rocky Linux 9.5 Installation

Photo by admingeek from Infotechys

You can also enable or disable administrator privileges (i.e., whether this user can run sudo commands). Click Done when finished.

Step 11: Begin Installation and Monitor Progress

Once all configurations are set, click on Begin Installation to start the installation process. The installer will now format the disk and install the required files. This process may take some time depending on your system’s speed.

Begin Installation Process in Rocky Linux 9.5

Photo by admingeek from Infotechys

During installation, you can monitor the progress and see what tasks are being performed. The installation will automatically handle the following:

  • Copying files to the disk.
  • Installing software packages.
  • Setting up the bootloader.
Installation Process - Formatting, copy files, and setting up bootloader

Photo by admingeek from Infotechys

Once the installation is complete, you will be notified with a message saying that the installation was successful.

Step 12: Reboot and First Boot Configuration

  • Once the installation is complete, click Reboot to restart the system.
  • Remove the USB drive from the machine to ensure the system boots from the hard disk.
Reboot Machine post-installation process in Rocky Linux 9.5

Photo by admingeek from Infotechys

  • Upon reboot, you will be greeted by the Rocky Linux 9.5 login screen
Login Screen - post installation - Rocky Linux 9.5

Photo by admingeek from Infotechys

  • Log in using the root or user account credentials you created earlier.
Rocky Linux 9.5 - Desktop or Workstation Environment

Photo by admingeek from Infotechys

Post-Installation Setup

After logging in for the first time, there are a few important configurations you may want to perform:

Update the system
				
					sudo dnf update -y
				
			
Install additional software

As per your needs, such as web servers, database servers, or development tools (example below).

				
					sudo dnf install nginx httpd mariadb-server git -y
				
			
Enable and start services

Run the following to enable and start services (e.g. Firewalld, Nginx)

				
					sudo systemctl enable --now nginx && sudo systemctl enable --now firewalld
				
			

Summary: Rocky Linux 9.5 Installation

In this guide, we’ve walked you through the installation of Rocky Linux 9.5 in 12 easy steps. Here’s a quick summary:

StepAction
1Download Rocky Linux 9.5 ISO
2Create Bootable USB Drive
3Boot from USB Drive
4Select Installation Language
5Set Keyboard Layout
6Configure Timezone and Date/Time
7Choose Installation Destination
8Software Selection
9Set Root Password
10Create User Account (Optional)
11Begin Installation and Monitor Progress
12Reboot and First Boot Configuration

After installation, you’re ready to start using Rocky Linux 9.5, whether it’s for web development, enterprise servers, or just a solid Linux-based desktop.

Conclusion

By following this guide, you now have a functional system and can start customizing it according to your needs. If you encounter any issues, you can always refer to the official documentation or community forums for troubleshooting.

Did you find this article useful? Your feedback is invaluable to us! Please feel free to share your thoughts in the comments section below.

Related Posts
RHEL9 on KVM
Commands
Install RHEL9 on KVM

In this tutorial, we’ll guide you through the step-by-step installation of RHEL9 on KVM. The process is uncomplicated, and we’ll present it in a format

Read More »
Install CentOS8 on KVM
Commands
Install CentOS8 on KVM

In today’s tutorial, we will install CentOS8 on KVM. The install process is fairly straightforward and we will cover it here step-by-step. We will follow

Read More »

Leave a Reply

Your email address will not be published. Required fields are marked *