How to Install Rocky Linux 9: Step-by-Step Guide for Beginners
If you're new to Linux and looking for a stable, enterprise-grade operating system that's fully compatible with Red Hat Enterprise Linux (RHEL), Rocky Linux 9 is an excellent free, open-source choice. Maintained by a dedicated community, it's ideal for servers, desktops, and development environments. This Rocky Linux installation guide walks you through the process step by step, whether you're using a virtual machine (VM) or physical hardware.
In this tutorial, we'll cover how to install Rocky Linux 9 using default settings for simplicity. The steps are similar for Rocky Linux 10, but we'll focus on version 9 (latest minor: 9.7). Rocky Linux is highly customizable, so you can tweak partitions, networking, or packages as needed. Always back up your data before starting any installation.
Prerequisites
- CPU: 64-bit AMD/Intel processor (at least 1.1 GHz dual-core).
- RAM: 1.5 GB minimum (4 GB+ recommended for desktops).
- Storage: 10 GB free space (20 GB+ for full features).
- Internet: Optional but useful for updates.
For VMs, use software like VirtualBox, VMware, or Hyper-V. For hardware, you'll need a USB drive (4 GB+).
Step 01: Download Rocky Linux 9 ISO
Head to the official Rocky Linux official website and select the latest stable version of Rocky Linux 9 (e.g., 9.7). Choose from these ISO types based on your needs:
- DVD ISO: Full image with most packages (no internet needed for install).
- Boot ISO: Small file; downloads packages during install (requires internet).
- Minimal ISO: Basic system only; add packages later (internet often needed).
Step 02: Prepare a Bootable USB or Virtual Machine
- Open your hypervisor (e.g., Vmware, Virtualbox, or Hyper-V).
- Create a new VM with at least 2 GB RAM and 20 GB disk.
- Attach the downloaded ISO to the VM's virtual drive.
Step 03: Start the installation
Step 04: Select Language
- Standard Partition: Splits a disk into fixed-size sections. Each partition gets its space upfront, and you can’t easily change its size later without reformatting or downtime.
- LVM(Logical Volume Management): Lets you treat one or more disks as a flexible storage pool. You can create volumes from this pool and grow or shrink them later without touching the whole disk layout.
- LVM Thin Provisioning: Allows you to create volumes that appear larger than the available disk space. Actual space is used only when data is written, helping avoid wasted storage and improve efficiency.
We'll use LVM with automatic creation, then customize. You can modify the Desired Capacity, File System, and Device Type etc. of a partition by selecting them, and editing the fields on the right side.
/boot (1 GiB) – Stores the Linux kernel and files required to start (boot) the system.
/ (root) (minimum 10 GiB) – The main system partition where Rocky Linux and its core files are installed.
-
/home (at least 1 GiB) – Holds user files and personal data, keeping them separate from system files.
-
swap (minimum 1 GiB) – Used as virtual memory when the system runs low on RAM.
-
/boot/efi (200–600 MiB) – Required only on UEFI-based systems to store EFI bootloader files.
After the partition/mount point configurations are finished, click "Done", and click "Accept Changes" on the confirmation dialog.
Step 6: Set Up Localization and Software
- Localization: Keep defaults for Keyboard, Language Support, and Time & Date, or customize (e.g., set your time zone).
- Software: Installation Source defaults to the ISO. Under Software Selection, choose "Minimal Install" or add environments like "Server with GUI" for desktops. We'll stick with defaults and install packages later via DNF.
Step 7: Configure User Settings
Step 8: Begin and Complete Installation
Post-Installation Tips
- Update the system: Run sudo dnf update to get the latest packages and security fixes.
- Install essential tools: A minimal Vim (vi) is already included, but for the full-featured version with syntax highlighting and more, run
- sudo dnf install vim-enhanced net-tools. (This gives you better editing and classic networking commands like ifconfig.)
- Set up firewall: To allow SSH access securely on the firewall use the
- sudo firewall-cmd --permanent --add-service=ssh; sudo firewall-cmd --reload
- Enable GUI for desktops: If you want a graphical interface (e.g., GNOME),
- install it with
- sudo dnf groupinstall "Workstation".
- Then, set the default boot target to graphical:
- sudo systemctl set-default graphical.target.
- To apply changes reboot with
- sudo reboot
- Explore the official Rocky Linux documentation for more advanced configurations, like custom repos or SELinux tweaks.

Comments
Post a Comment