How to Install Arch Linux: The Complete 2024 Guide (2024)

Are you someone who enjoys customizing your computer to the finest detail? Do you consider it to be a hobby? If yes, then Arch Linux might be just the right choice for you. Arch Linux is not just another Linux distribution; it’s a unique philosophy that focuses on learning and understanding the inner workings of your system. However, it’s not an easy choice for those who are faint-hearted. If you are up for a challenging experience, I can guide you through the process of installing Arch Linux.

Why Arch Linux?

Before we dive in, let’s talk about why you might choose Arch Linux. For starters, its rolling release model ensures you’re always up to date with the latest software. Then there’s the Arch User Repository (AUR), a treasure trove of software contributed by users. But my favorite part? The unparalleled level of customization. You start with a minimal base and build your system exactly how you want it. It’s like Lego for adults, but with software!

Install Arch Linux on your PC

In this tutorial, we will be installing a basic Arch Linux system using the full disk to a computer or virtual machine(VM).

Pre-installation checks

First things first, ensure your machine meets the minimum requirements for Arch Linux. You’ll need an x86_64 (64-bit) compatible machine. I’d recommend at least 2GB of RAM and 20GB of storage for a comfortable experience, though you can get by with less if you’re going minimalist.

Step 1: Download the Arch ISO

Head over to the Arch Linux download page and grab the latest ISO image. I usually go for the direct download, but the torrent option is great for faster downloads and helping reduce load on the servers.

Step 2: Create an Arch Linux bootable USB

Once the ISO is downloaded, you’ll need to flash it to a USB drive. There are multiple ways to create a bootable Arch Linux USB drive. One of the easiest methods is to use a utility such as Etcher, which is compatible with Windows, Linux, and Mac operating systems and offers a user-friendly graphical interface to create and verify the USB drive. However, if you prefer using the command line interface, I can guide you through that process as well.

GUI way using Balena Etcher:
Refer to our step-by-step guide: Creating Arch Linux Live USB on Windows, Linux, and Mac

Command-line way using dd:
I’m a big fan of dd for its simplicity, but feel free to use any tool you’re comfortable with. Here’s how I do it with dd:

sudo dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync

Replace /dev/sdx with your USB drive’s device identifier (be very careful with this; choosing the wrong device could overwrite your data). You can find this with the lsblk command.

Step 3: Boot into the Arch installer

Plug the USB drive into your target machine and boot it up. You might need to hit a key like F12, F2, or Del to choose the boot device. Select your USB drive, and you should be greeted by the Arch Linux boot menu.

Also Read

  • How to install Google Chrome in Antergos and Arch Linux
  • How to setup Wi-Fi profile and static IP on Arch Linux

Step 4: Start the installation process

Now we will boot into the installation USB drive. Once it loads, you should be greeted with a screen like the one below.

How to Install Arch Linux: The Complete 2024 Guide (1)

Arch Linux ISO menu

From here, press enter to boot Arch Linux.

Step 5: Set the keyboard layout

The default keyboard layout is US. If you need a different layout, list the available ones with:

ls /usr/share/kbd/keymaps/**/*.map.gz

Then load your preferred layout. For example, for UK, use:

loadkeys uk

Step 6: Check your internet connection

If you’re using Ethernet, you should be connected automatically. For Wi-Fi, use iwctl to connect:

iwctl[iwd]# device list[iwd]# station device scan[iwd]# station device get-networks[iwd]# station device connect SSID

Replace device with your Wi-Fi device name and SSID with your network’s SSID.

After you are done connecting, you can check your internet connection by using the ping command:

# ping -c 3 google.com

How to Install Arch Linux: The Complete 2024 Guide (2)

Output of ping

Step 7: Update the system clock (enable NTP)

We must enable Network Time Protocol (NTP) to allow the system to update the time via the network. To do this, run:

timedatectl set-ntp true

Step 8: Partition the hard drive

This is where things get personal. Some folks love separate partitions for everything; I prefer keeping it simple. For this guide, we’ll create two partitions: one for the root filesystem and one for swap.

To begin, use fdisk to list all available drives:

Also Read

  • How to install Google Chrome in Antergos and Arch Linux
  • How to setup Wi-Fi profile and static IP on Arch Linux
fdisk -l

NOTE: The output you get from fdisk may be different from that in the screenshot below.

How to Install Arch Linux: The Complete 2024 Guide (3)

Output of fdisk

Make a note of the name of the disk you wish to partition. Now, we will use cfdisk, a partition manager, to partition the drives:

NOTE: In cfdisk, use the arrow keys to navigate and the enter key to select.

cfdisk /dev/sdX

Where X refers to the letter of the drive, you wish to partition.

You should be greeted by a screen asking you to select the label type. In most cases, this will be “dos.”

How to Install Arch Linux: The Complete 2024 Guide (4)

cfdisk label types

Highlight the label type and press enter. A screen similar to the one below should be displayed.

How to Install Arch Linux: The Complete 2024 Guide (5)

List of partitions in cfdisk

Now we will create the partitions. To do this, select “New”. You will be prompted to enter the partition size. Be sure to leave enough room to create another partition for your swap space, which will be twice the amount of RAM.

How to Install Arch Linux: The Complete 2024 Guide (6)

Entering the partition size

Next, you will be asked if the partition should be primary or extended. Select “primary”.

How to Install Arch Linux: The Complete 2024 Guide (7)

Making the partition primary

Now make the partition bootable by selecting “Bootable”. Your screen should look similar to the one below.

How to Install Arch Linux: The Complete 2024 Guide (8)

Making the partition bootable

Now, using the same process as before, utilizing the remainder of the space on the drive, create another primary partition. Do not make this partition bootable.

Also Read

  • How to install Google Chrome in Antergos and Arch Linux
  • How to setup Wi-Fi profile and static IP on Arch Linux

The partition type needs to be changed from “83 Linux” to “82 Linux swap / Solaris”. To do this, select “Type” on the swap partition and select “82 Linux swap / Solaris”, as shown below.

How to Install Arch Linux: The Complete 2024 Guide (9)

Changing the partition type

Now, write the changes to the drive. To do so, select “Write” and type “yes”, as shown below.

How to Install Arch Linux: The Complete 2024 Guide (10)

Writing the changes

You may now exit `cfdisk` by selecting “Quit”.

Step 9: Create filesystem

Now that the drive has been partitioned, we can create the filesystem. There are several options for this, but for this tutorial, we will use the ext4 filesystem. To create the filesystem, use:

mkfs.ext4 /dev/sdX1

How to Install Arch Linux: The Complete 2024 Guide (11)

Using mkfs to create the filesystem

Step 10: Create swap space

Next, we will create a swap space. Swap space in Linux is a hard drive space that acts as extra RAM. To do this, run:

mkswap /dev/sdX2

How to Install Arch Linux: The Complete 2024 Guide (12)

Creating the swap space

Step 11. Mount the filesystem and swap space

Now that both the filesystem and swap space have been created, they must be mounted. To do this, we will use the following commands:

mount /dev/sdX1 /mnt
swapon /dev/sdX2

These commands will mount the filesystem and activate the swap space, respectively.

Step 12: Install the base system

Next, we will use the pacstrap utility to download and install all the necessary components of Arch Linux. To use pacstrap, run:

pacstrap /mnt base base-devel

NOTE: This step may take some time.

How to Install Arch Linux: The Complete 2024 Guide (13)

Using pacstrap to install the system

Alternatively, use the pacstrap script to install the base package group and a kernel (I usually go with the Linux kernel, but linux-lts is a great choice for older hardware):

Also Read

  • How to install Google Chrome in Antergos and Arch Linux
  • How to setup Wi-Fi profile and static IP on Arch Linux
pacstrap /mnt base linux linux-firmware

Step 13. Generate the fstab file

Generate an fstab file to define how disk partitions, block devices, or remote file systems are mounted into the filesystem:

genfstab -U /mnt >> /mnt/etc/fstab

Step 14: Chroot into Arch Linux

After pacstrap is done running, we will chroot into the newly installed Arch Linux system by using arch-chroot:

arch-chroot /mnt

How to Install Arch Linux: The Complete 2024 Guide (14)

Using arch-chroot to enter the new system

Step 15: Set the time zone

Set the time zone by creating a symbolic link from /usr/share/zoneinfo/Region/City to /etc/localtime. Replace Region/City with your time zone. For example:

ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

Run hwclock to generate /etc/adjtime:

hwclock --systohc

How to Install Arch Linux: The Complete 2024 Guide (15)

Setting the timezone

Update the hardware clock with:

hwclock --systohc

Step 16: Generate locale file

Edit /etc/locale.gen and uncomment the locales you need, then generate them:

locale-gen

How to Install Arch Linux: The Complete 2024 Guide (16)

Running locale-gen

Step 17: Create a locale configuration file

Next, we will create the locale configuration file:

echo "LANG=en_US.UTF-8" > /etc/locale.conf

Step 18: Create a hostname file and enable DHCP

Create a hostname file:

echo "myarch" > /etc/hostname

Add matching entries to /etc/hosts:

echo -e "127.0.0.1\tlocalhost\n::1\tlocalhost\n127.0.1.1\tmyarch.localdomain\tmyarch" >> /e

Now, enable DHCP:

systemctl enable dhcpcd

Step 19: CreateInitramfs

Creating a new initramfs is usually not required because mkinitcpio was run on installation of the kernel package with pacstrap. However, you can regenerate it at any time with:

mkinitcpio -P

Step 20: Set the root password

Now we must set the password for the root account using passwd:

passwd

How to Install Arch Linux: The Complete 2024 Guide (17)

Setting the root password

Step 21: Install a bootloader

We will install the bootloader. For this tutorial, we will be using the GRUB bootloader. To do this, we will be using Pacman, the package manager for Arch Linux:

pacman -S grubgrub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

Now we must install GRUB onto the system:

grub-install /dev/sdX

How to Install Arch Linux: The Complete 2024 Guide (18)

Installing GRUB

And configure it:

grub-mkconfig -o /boot/grub/grub.cfg

How to Install Arch Linux: The Complete 2024 Guide (19)

Creating the GRUB configuration file

Step 22: Reboot into your new system

Exit the chroot environment, unmount all partitions, and reboot:

exitumount -R /mntreboot

Remove your installation media, and if all went well, you should boot into your new Arch Linux system!

Step 23: Login to Arch Linux

Once the system has been rebooted, GRUB will load.

How to Install Arch Linux: The Complete 2024 Guide (20)

GRUB

From there, you can press enter to boot into Arch Linux and log in to your new Arch Linux system as root.

How to Install Arch Linux: The Complete 2024 Guide (21)

Arch Linux login

Post-installation

Now that you’re booted into your new Arch system, the real fun begins. This is where you truly make the system your own. Install a desktop environment, set up your favorite applications, and tweak settings to your heart’s content.

Setting up a user account

For day-to-day use, it’s best not to use the root account. Create a new user for yourself:

useradd -m -G wheel -s /bin/bash your_usernamepasswd your_username

To allow your user to perform administrative tasks, install sudo and edit the sudoers file with visudo:

pacman -S sudoEDITOR=nano visudo

Uncomment the line %wheel ALL=(ALL) ALL to allow members of the wheel group to execute any command.

Installing a graphical environment

Arch Linux doesn’t come with a graphical interface out of the box. If you want a GUI, you’ll need to install it yourself. For beginners, I recommend starting with a desktop environment like GNOME or KDE Plasma:

For GNOME:

pacman -S gnomesystemctl enable gdm

For KDE Plasma:

pacman -S plasma sddmsystemctl enable sddm

Reboot, and you should be greeted with a login screen for your new desktop environment!

Conclusion

Congratulations! You’ve just installed one of the most flexible Linux distributions available. From here, the possibilities are endless. Installing Arch Linux might seem daunting at first, but it’s an incredibly rewarding experience that offers unparalleled control and customization over your system. By following the steps laid out in this guide, from preparing your bootable USB to setting up a graphical environment, you’ll have a functional and personalized Arch Linux setup.

How to Install Arch Linux: The Complete 2024 Guide (2024)

FAQs

Why is Arch Linux considered hard? ›

Although using Arch Linux isn't all that difficult, installing it is another issue altogether. Unlike most Linux distributions, Arch Linux doesn't have a user-friendly GUI installer. It's all text-based and installation can be a challenge, even for people with plenty of experience using Linux.

Is there an Arch Linux installer? ›

archinstall is a helper library which automates the installation of Arch Linux. It is packaged with different pre-configured installers, such as a "guided" installer. This document does not discuss use of archinstall as a Python library; see the official documentation for that.

What to know before installing Arch Linux? ›

Pre-installation
  1. Acquire an installation image. ...
  2. Verify signature. ...
  3. Prepare an installation medium. ...
  4. Boot the live environment. ...
  5. Set the console keyboard layout and font. ...
  6. Verify the boot mode. ...
  7. Connect to the internet. ...
  8. Update the system clock.

How to install Arch Linux using GUI? ›

  1. Step 1 Acquiring the Installation Image. ...
  2. Step 2 Verify the Signature (Optional) ...
  3. Step 3 Downloading BalenaEtcher & Preparing your USB Drive. ...
  4. Step 4 Booting into the Arch Linux Live System. ...
  5. Step 5 Setting up Arch Linux. ...
  6. Step 6 Installing the Base System. ...
  7. Step 7 Configure the System. ...
  8. Step 8 Reboot your System.
Feb 21, 2024

What is the downside of Arch Linux? ›

Disadvantages. Installing Arch Linux is not simple, and it will take some time because you will be fine-tuning the operating system. You will need to learn a variety of terminal commands and the components you will be dealing with because you will be selecting the components yourself.

Why Ubuntu is better than Arch? ›

When comparing Arch Linux vs Ubuntu, check their unique strengths and make a choice depending on your priorities and needs. Arch Linux is better if you are after customization and the latest software. However, if you value ease of use and stability, go for Ubuntu.

Should I install Arch Linux as a beginner? ›

Is Arch Linux a good choice for a Linux newbie? Short answer: Definitely not. Having said that, I have to qualify my statement by saying that if you have an IQ up in the stratosphere, are an unbelievably fast learner, and you love, at least intellectually, to “go from zero to 60 in .

Is manjaro better than Arch? ›

Manjaro is an Arch-based distribution that has the benefits of being considerably more user-friendly than Arch. It is undoubtedly one of the best desktop distributions as it offers excellent functionality. Also, very little memory is used.

What is the best Arch-based Linux? ›

The best Arch-based Linux distros of 2024 in full:
  1. Manjaro. Best Arch-based Linux distro overall. Our expert review: ...
  2. EndeavourOS. Best Arch-based Linux distro that's terminal-centric. ...
  3. ArcoLinux. Best Arch-based Linux distro for beginners. ...
  4. Parabola GNU/Linux-libre. Best Arch-based Linux distro that's completely free.
Apr 16, 2024

How to install Arch Linux properly? ›

How to Install Arch Linux
  1. Step 1 — Download & Boot Arch Linux. ...
  2. Step 2 — Prepare the Installation. ...
  3. Step 3 — Partition the Disk (UEFI Systems Only) ...
  4. Step 4 — Partition the Disk (MBR Systems Only) ...
  5. Step 5 — Install the Base Packages (UEFI and MBR Systems) ...
  6. Step 6 — Start the Arch Linux Installation.
Aug 24, 2023

How many GB does Arch Linux need? ›

The requirements for installing Arch Linux

Your computer must be x86-64 compatible, have a secure and stable internet connection, and have a USB drive with a storage capacity of at least 2 GB. You will also need at least 512 MB of RAM and 1 GB of storage.

Why is Arch Linux so special? ›

Overall, we can say that Linux has many distributions, each having pre-installed software, whereas in Arch Linux users optimize and configure in accordance with their needs. So, we can say that Arch Linux is a specific distribution that is known for its customizability and lightweight.

What happened to the Arch Linux GUI? ›

ALG (formerly Arch Linux GUI), is a fast, offline, graphical installer for Arch Linux. It was discontinued in the month of July 2022, after a final release. We are working to update the repositories to the latest standards so that builders can build ISOs error free.

Is Arch Linux hard for beginners? ›

However, it's important to note that Arch Linux is known for its advanced and DIY (do-it-yourself) nature, making it more suitable for users with some prior experience in Linux or those willing to invest time in learning and troubleshooting.

What is the most difficult Linux to use? ›

Gentoo. Gentoo is known for being extremely difficult to install. When the topic of installing Gentoo comes up, the average time seems to be around three full days to just get the system installed. Once it's installed you still need to setup programs for your desktop, sound, wifi, the ability to watch videos, etc…

Is Arch Linux really unstable? ›

Arch linux does not have stable repos like a point release distro does. But the antonym of this use of the word stable would not be unstable but rather rolling. So inferring arch is "unstable" or has any "instability" from the fact that the repos are not "stable point releases" would be a fallacy of equivocation.

Top Articles
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 5814

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.