How to install arch linux
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 4, 2026
Key Facts
- Arch Linux follows a rolling release model, meaning you get continuous updates.
- The Arch Linux installation process is primarily command-line driven.
- Arch Linux emphasizes simplicity and user control, requiring manual configuration.
- The Arch Wiki is an invaluable resource for installation and post-installation steps.
- A minimum of 512 MB of RAM is recommended for the installation environment.
Overview
Arch Linux is a popular, independent Linux distribution that targets experienced users. It is known for its simplicity, modernity, cutting-edge software, and adherence to the user's control. Unlike many other distributions that come with pre-configured desktop environments and applications, Arch Linux provides a minimal base system that users can then customize to their specific needs. This hands-off approach means that the installation process is more involved than with distributions like Ubuntu or Fedora, requiring users to manually partition disks, install packages, and configure system settings.
Why Choose Arch Linux?
The primary appeal of Arch Linux lies in its philosophy. It is designed to be simple, lightweight, and customizable. Users build their system from the ground up, choosing only the components they need. This results in a highly optimized and efficient operating system tailored exactly to the user's workflow. The rolling release model ensures that users always have access to the latest software versions without needing to perform major version upgrades. Furthermore, the Arch Wiki, the distribution's official documentation, is widely regarded as one of the most comprehensive and well-maintained resources in the Linux community, making it an indispensable tool for both installation and ongoing maintenance.
The Installation Process: A Step-by-Step Guide
The Arch Linux installation process is performed entirely from the command line using the included installation environment. Here's a general outline of the steps involved:
1. Download the Installation Media
First, you need to download the latest Arch Linux ISO image from the official Arch Linux website. You can choose a mirror location close to you for faster download speeds. Once downloaded, you'll need to create a bootable USB drive or DVD using tools like Rufus (Windows), Etcher (cross-platform), or `dd` (Linux/macOS).
2. Boot from the Installation Media
Insert the bootable media into your computer and restart it. You'll need to access your computer's BIOS/UEFI settings to change the boot order and ensure it boots from the USB drive or DVD. Once booted, you will be presented with a command-line prompt.
3. Connect to the Internet
Before proceeding, it's crucial to establish an internet connection. If you're using a wired Ethernet connection, it will likely be detected automatically. For Wi-Fi, you'll need to use the `iwctl` utility. Run `iwctl`, then `device list` to see your wireless interface, `station
4. Update the System Clock
Ensure your system clock is accurate by running `timedatectl set-ntp true`.
5. Partition the Disks
This is a critical step. You'll need to partition your storage devices (hard drive or SSD) to create the necessary file systems. Tools like `fdisk`, `cfdisk`, or `parted` can be used for this. A typical setup includes a root partition (`/`), a swap partition, and optionally a separate home partition (`/home`) and an EFI System Partition (ESP) if you're using UEFI booting. For UEFI systems, the ESP should be formatted as FAT32.
6. Format the Partitions
After partitioning, you need to format the created partitions with appropriate file systems. For example, you can format the root partition with ext4 using `mkfs.ext4 /dev/sdXn` (replace `/dev/sdXn` with your actual root partition). Format the swap partition with `mkswap /dev/sdXn`, and enable it with `swapon /dev/sdXn`. For the ESP, use `mkfs.fat -F32 /dev/sdXn`.
7. Mount the File Systems
Mount your root partition to `/mnt`. If you have a separate home partition, create a directory for it (`mkdir /mnt/home`) and mount it there (`mount /dev/sdXn /mnt/home`). Mount the ESP to `/mnt/boot` (or `/mnt/efi`).
8. Install the Base System
Use the `pacstrap` command to install the base Arch Linux system and essential packages. A common command is `pacstrap /mnt base linux linux-firmware`. You might also want to install a text editor like `nano` or `vim` and network management tools like `networkmanager`.
9. Configure the System
Generate the `fstab` file, which defines how partitions are mounted at boot, by running `genfstab -U /mnt >> /mnt/etc/fstab`. Then, change root into the new system using `arch-chroot /mnt`. Now you can configure your system:
- Time Zone: Set your time zone using `ln -sf /usr/share/zoneinfo/Region/City /etc/localtime` and run `hwclock --systohc`.
- Locale: Edit `/etc/locale.gen` to uncomment your desired locales (e.g., `en_US.UTF-8 UTF-8`) and run `locale-gen`. Create `/etc/locale.conf` and set `LANG=en_US.UTF-8`.
- Hostname: Create `/etc/hostname` and enter your desired hostname.
- Hosts File: Edit `/etc/hosts` and add entries for your hostname.
- Root Password: Set a password for the root user using `passwd`.
- Bootloader: Install and configure a bootloader, such as GRUB or systemd-boot. For GRUB on UEFI, you'll typically install `grub` and `efibootmgr`, then run `grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB` and `grub-mkconfig -o /boot/grub/grub.cfg`.
10. Install Additional Software (Optional but Recommended)
Install essential packages like a network manager (`networkmanager`), text editors, and potentially a desktop environment or window manager if desired. Enable the network manager service with `systemctl enable NetworkManager`.
11. Exit and Reboot
Exit the `arch-chroot` environment (`exit`), unmount all partitions (`umount -R /mnt`), and reboot your system (`reboot`). Remove the installation media before your computer boots up.
Post-Installation Steps
After rebooting, you'll be at a command-line prompt. You'll likely want to create a regular user account (`useradd -m -G wheel username`, `passwd username`), install a desktop environment (e.g., GNOME, KDE Plasma, XFCE) or window manager, and configure your display server (e.g., Xorg or Wayland). The Arch Wiki remains your best friend for these next steps.
More How To in Daily Life
Also in Daily Life
More "How To" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Installation guide - ArchWikiCC-BY-SA-4.0
- Installation - ArchWikiCC-BY-SA-4.0
- Arch Linux Official Websitefair-use
Missing an answer?
Suggest a question and we'll generate an answer for it.