How to Install Arch Linux: Beginner's Step-by-Step Guide (2024)

Arch is easy to install. This guide shows you how to install Arch Linux with GNOME Desktop, paving the way for a successful setup.

Many Linux users want to try Arch Linux, but the general notion that Arch is difficult to install and learn stops them. When people say, it is “hard,” they mean it takes effort. And they’re right – you have to put a little more effort into installing your system, setting everything up, and reading about how to do what you want.

However, as a reward for your efforts, you’ll end up with a system you understand well and set up just how you want it. Once installed, Arch Linux is as easy to run as any other distro, if not easier.

You can install Arch Linux directly to your computer by following thisguide, but you can also install it on a virtual machine by using VirtualBox or other virtualization software.

Table of Contents

[Open][Close]

  • Preinstallation Notes to Virtualbox and KVM Users
  • 1. Download the Arch Linux Installation Image
  • 2. Prepare Live Bootable USB
  • 3. Boot Arch Linux from the Live USB
  • 4. Verify Connectivity to the Internet
  • 5. Partition the Disk
    • 5.1 Create EFI System Partition
    • 5.2 Create Swap Partition
    • 5.3 Create Root Partition
    • 5.3 Write Changes to Disk
  • 6. Create File System
  • 7. Install Arch Linux
  • 8. Configure the Installed Arch System
  • 9. Install GRUB Bootloader on Arch Linux
  • 10. Install a Desktop Environment on Arch Linux
  • 11. Create a Regular User Account
  • 12. Arch Linux Installation is Done
  • Conclusion

Preinstallation Notes to Virtualbox and KVM Users

IMPORTANT!Before starting the installation, VirtualBox and KVM users must enable EFI in the virtual machine settings. Otherwise, an error will occur when attempting to install the GRUB bootloader.

How to Install Arch Linux: Beginner's Step-by-Step Guide (1)

However, if you have decided to install Arch on KVM using Virtual Machine Manager to enable UEFI support, the steps are as follows.

In the last step, do not rush to press the “Finish” button when creating the virtual machine. Ensure you have checked the “Customize configuration before install” option, then press “Finish.”

A new window will open. In it, select “UEFI” from the “Firmware” drop-down menu, then confirm with “Apply” and finally hit “Begin Installation.”

How to Install Arch Linux: Beginner's Step-by-Step Guide (2)

This Arch Linux how-to installation guide shows the whole process in easy-to-follow steps. So, without further ado, let’s get started.

1. Download the Arch Linux Installation Image

The first thing that we need to do is to obtain an image of Arch Linux. To do so, visit the Arch Linuxdownload pageto download the ISO image file. Then, grab the latest CD image. Both direct download and torrent links are available.

How to Install Arch Linux: Beginner's Step-by-Step Guide (3)

2. Prepare Live Bootable USB

Once your Arch Linux ISO file finishes downloading, you must create a live USB from it. There are many ways to prepare a live USB; one is byusing the dd command.

Alternatively, you can use applications such asEtcherorVentoy, which are good options for creating a bootable USB drive.

3. Boot Arch Linux from the Live USB

Once you have created a live USB for Arch Linux, shut down your computer, plug the USB into it, and boot your system.

Please remember that you can sometimes not boot from a live USB with secure boot enabled. If that’s the case with you, access the BIOS and turn off the secure boot first.

Arch provides you with two installation options – Legacy and UEFI mode. The UEFI (Unified Extensible Firmware Interface) mode is more up-to-date, and most modern hardware only supports the UEFI installation. Therefore, this Arch Linux how-to installation guide will use the UEFI mode.

Once properly booted into the Arch’s ISO, you should see something similar to the image below.

How to Install Arch Linux: Beginner's Step-by-Step Guide (4)

Choose the “Arch Linux install medium (x86_64, UEFI)” option and hit “Enter.”

After the installer decompresses and loads theLinux kernel,you will be automatically thrown to aterminal with root privileges.

How to Install Arch Linux: Beginner's Step-by-Step Guide (5)

4. Verify Connectivity to the Internet

First of all, check the internet connection. To check it, ping a website, as shown in the example below.

ping -c 3 archlinux.orgCode language: CSS (css)
PING archlinux.org (95.217.163.246) 56(84) bytes of data.64 bytes from archlinux.org (95.217.163.246): icmp_seq=1 ttl=52 time=57.4 ms64 bytes from archlinux.org (95.217.163.246): icmp_seq=2 ttl=52 time=57.4 ms64 bytes from archlinux.org (95.217.163.246): icmp_seq=3 ttl=52 time=58.4 ms--- archlinux.org ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 2003msrtt min/avg/max/mdev = 57.394/57.739/58.376/0.450 msCode language: JavaScript (javascript)

If you use a wired connection, it is usually picked up automatically. However, if you receive an error message, please check your internet connection or router.

Related: How To Set Static IP Address And Modifying Routing Table On Linux

After completing connectivity checks, we can move ahead to our Arch Linux installation.

5. Partition the Disk

The next step in our Arch Linux installation guide is partitioning the hard drive. Here is where you will likely find the most trouble if you are unfamiliar with partitioning tools such as fdisk or cfdisk. But don’t worry, it is easy, as you’ll see.

First, list your disks:

fdisk -l
Disk /dev/sda: 20GiB, 21474836480 bytes, 41943040 sectorsDisk model: QEMU HARDDISKUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes<meta http-equiv="content-type" content="text/html; charset=utf-8">Disk /dev/loop0: 662.69 MiB, 694882304 bytes, 1357192 sectors<meta http-equiv="content-type" content="text/html; charset=utf-8">Units: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesCode language: HTML, XML (xml)

For this guide, a virtual machine has been created with a blank 20 GB hard disk identified by“/dev/sda.” Change “/dev/sda” with your device name.

For a basic partition, we need to create the following partition layout:

  • /dev/sda1: EFI System partition with 512 MB size, FAT32 formatted. This provides space for storing bootloaders and other files required for booting.
  • /dev/sda2: Swap partition, 4GB size. Swap space is used to extend the virtual memory beyond the installed physical memory (RAM) or forsuspend-to-disksupport.
  • /dev/sda3: Linux partition, with the remainingfree disk spacesize, EXT4 formatted. This is the root (/) partition on which our Arch Linux operating system, files, and other information will be stored.

5.1 Create EFI System Partition

Now let’s start creating a disk layout partition table by running the cfdisk command against the machine’s hard drive.

cfdisk /dev/sda
How to Install Arch Linux: Beginner's Step-by-Step Guide (6)

Select the“GPT”label type and hit “Enter.”

Then select “Free Space” and hit “New” from the bottom menu. You can navigate the menu options using the “Tab” or arrow keys.

How to Install Arch Linux: Beginner's Step-by-Step Guide (7)

Type the partition size in MB (“512M“) and press the “Enter” key.

How to Install Arch Linux: Beginner's Step-by-Step Guide (8)

With the “/dev/sda1” partition still selected, select “Type” from the bottom menu and choose “EFI System” partition type.

How to Install Arch Linux: Beginner's Step-by-Step Guide (9)
How to Install Arch Linux: Beginner's Step-by-Step Guide (10)

You’ve finished configuring the EFI System partition.

How to Install Arch Linux: Beginner's Step-by-Step Guide (11)

5.2 Create Swap Partition

Now let’s create the Swap partition using the same procedure. Select “Free space” again and hit “New.”

How to Install Arch Linux: Beginner's Step-by-Step Guide (12)

Type the partition size in GB (“4G“) and press the “Enter” key.

How to Install Arch Linux: Beginner's Step-by-Step Guide (13)

With the “/dev/sda2” partition still selected, select “Type” from the bottom menu and choose “Linux swap” partition type.

How to Install Arch Linux: Beginner's Step-by-Step Guide (14)
How to Install Arch Linux: Beginner's Step-by-Step Guide (15)

You’ve finished configuring the Swap partition.

How to Install Arch Linux: Beginner's Step-by-Step Guide (16)

5.3 Create Root Partition

Finally, you must create the root (/) partition. Once again, select the remaining “Free space” and hit on “New.”

How to Install Arch Linux: Beginner's Step-by-Step Guide (17)

For size, leave the default size value. This means all the remaining free space. Next, press the “Enter” key.

How to Install Arch Linux: Beginner's Step-by-Step Guide (18)

With the “/dev/sda3” partition still selected, select “Type” from the bottom menu and choose “Linux filesystem” partition type.

How to Install Arch Linux: Beginner's Step-by-Step Guide (19)
How to Install Arch Linux: Beginner's Step-by-Step Guide (20)

You’ve finished configuring the root partition.

How to Install Arch Linux: Beginner's Step-by-Step Guide (21)

5.3 Write Changes to Disk

Next, you need to save the changes made. Choose “Write” from the bottom menu and hit “Enter.”

How to Install Arch Linux: Beginner's Step-by-Step Guide (22)

Type “yes” and press the “Enter” key.

How to Install Arch Linux: Beginner's Step-by-Step Guide (23)

We’re done here. Select “Quit” and press “Enter” to do so.

How to Install Arch Linux: Beginner's Step-by-Step Guide (24)

6. Create File System

Now that your disk partitions are ready, it’s time to create thefile system. But let’s first review the partition table summary by running the following:

fdisk -l
Disk /dev/sda: 20GiB, 21474836480 bytes, 41943040 sectorsDisk model: QEMU HARDDISKUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: gptDisk identifier: 8F633EFF-376D-3C46-8540-4C1BB8EBD4B1Device Start End Sectors Size Type/dev/sda1 2048 1050623 1048576 512M EFI System/dev/sda2 1050624 9439231 8388608 4G Linux swap/dev/sda3 9439232 41943006 32503775 15.5G Linux filesystemDisk /dev/loop0: 662.69 MiB, 694882304 bytes, 1357192 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes

The “/dev/sda” disk should have three partitions (“/dev/sda1,” “dev/sda2,” and “/dev/sda3“) similar to those shown above.

The creation of the partitions in the previous steps drew boundaries on the storage space offered by the hard drive and specified the type of space between each boundary line.

It is time to format the partitions with the required file systems. We must create three file systems here, so let’s begin.

For the EFI partition type, create a FAT32 file system.

mkfs.fat -F32 /dev/sda1

Prepare the swap partition:

mkswap /dev/sda2swapon /dev/sda2

For the root partition, create an EXT4 file system:

mkfs.ext4 /dev/sda3

7. Install Arch Linux

First, sync the Pacman repository so that you can download and install any software:

pacman -Syy

We must mount the root partition (“/dev/sda3“) to the“/mnt” directory before we can perform any installation.

mount /dev/sda3 /mnt

With root mounted, it’s time to install all the necessary packages. Use thepacstrapcommand to install Arch Linux required packages.

pacstrap -K /mnt base linux linux-firmware sudo nano

It will take some time to download and install these packages. But now we can start configuring our system.

8. Configure the Installed Arch System

After the installation completes, generate a “/etc/fstab” file for your new Arch Linux system by issuing the following command:

genfstab -U /mnt >> /mnt/etc/fstabCode language: JavaScript (javascript)

Now that we have installed Arch Linux, we need to switch to the physically installed root partition using the arch-chroot command.

arch-chroot /mnt

Next, let’s configure the timezone. To find your timezone, you can list (ls -l) the contents of the“/usr/share/zoneinfo/”directory.

Find your preferred timezone (“/usr/share/zoneinfo/Zone/SubZone“) where“Zone/SubZone”is your selection, such as “America/New_York,” “Europe/Paris,” “Asia/Bangkok,” and so on. You got the idea.

Create a symbolic link to set the timezone (replace “America/New_York” with your timezone).

ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

Now we need to set up the locale. The file “/etc/locale.gen” contains locale settings and system languages and is commented on by default. We must open this file using a text editor and uncomment the line which contains the desired locale.

nano /etc/locale.gen

Uncomnent “en_US.UTF-8 UTF-8” and “en_US ISO-8859-1” (by removing the “#” sign), and any other needed locales in “/etc/locale.gen.” Then, press “Ctrl+O” followed by “Enter” to save, and finally, “Ctrl+X” to exit the editor.

How to Install Arch Linux: Beginner's Step-by-Step Guide (25)

Now generate the locale config file using the below commands one by one:

locale-gen

Run the command below to synchronize the hardware clock, automatically creating a “/etc/adjtime” file containing descriptive information about the hardware mode clock setting and clock drift factor.

hwclock --systohc

Create and set the“LANG”variable.

echo LANG=en_US.UTF-8 > /etc/locale.confexport LANG=en_US.UTF-8Code language: JavaScript (javascript)

Now we will move ahead and set the hostname. A hostname is the computer’s name. So let’s name it, for example,“arch-pc.” Use the following command:

echo arch-pc > /etc/hostnameCode language: JavaScript (javascript)

Add this name to the “/etc/hosts” file also. Edit the file with Nano editor and add the following lines (replace “arch-pc” with the hostname you chose earlier).

nano /etc/hosts
127.0.0.1 localhost::1 localhost127.0.1.1 arch-pcCode language: CSS (css)

Remember to set the password for the root account using the passwd command:

passwd

Type your password twice. Be attentive, as you will see nothing while typing.

9. Install GRUB Bootloader on Arch Linux

Now we install theboot loaderforArchto boot up after restart. The default boot loader for Linux distributions and Arch Linux also is represented bythe GRUBpackage.

Install the GRUB bootloader and EFI boot manager packages:

pacman -S grub efibootmgr os-prober mtools

Then create the mount point for“/dev/sda1” and mount it.

mkdir /boot/efimount /dev/sda1 /boot/efi

Now let’s install our boot loader.

grub-install --target=x86_64-efi --bootloader-id=grub_uefi
Installing for x86_64-efi platform.Installation finished. No error reported.

Finally, generate the“/boot/grub/grub.cfg”file.

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

10. Install a Desktop Environment on Arch Linux

Our Arch Linux currently contains only the essential software packages needed to manage the system from the command line, with no GUI (Graphical User Interface).

Arch Linux supports a wide range of desktop environments. I will install GNOME as a desktop environment example.

The first step is to install the X environment. Type the below command to install theXorg as a display server.

pacman -S xorg-server xorg-apps

Then install an appropriate video driver.

Nvidia users:

pacman -S nvidia nvidia-utils

AMD / ATI users:

pacman -S xf86-video-ati

Intel users:

pacman -S xf86-video-intel

Now, you can install the GNOME desktop environment on Arch Linux using:

pacman -S gnome gnome-extra networkmanager

GNOME offers a choice of providers for the download. Select the appropriate provider for each prompt and press “Enter” to proceed. If you are unsure, press “Enter” to accept defaults.

Finally, enable the GDM display manager and Network Manager.

systemctl enable gdmsystemctl enable NetworkManager

11. Create a Regular User Account

The creation method for theuser accountwill also automatically create the home directory for the user. In addition, we can give this account sudo privileges. Write your name instead of “linuxiac.”

useradd -m -G wheel linuxiac

Be sure to set a password for the new user:

passwd linuxiac

Next, enable sudo privileges for a newly created user:

EDITOR=nano visudo

Scroll down the screen and find the line:

# %wheel ALL=(ALL) ALLCode language: PHP (php)

Uncomment it by removing the # sign.

12. Arch Linux Installation is Done

Congratulations! We are done with our Arch Linux installation, so we will exit from the terminal, unmount the root partition mounted under “/mnt,” and reboot to our newly installed Arch Linux system.

exitumount -R /mntrebootCode language: PHP (php)

The GRUB boot manager will greet you. Wait a few seconds or press “Enter” to start booting the operating system.

How to Install Arch Linux: Beginner's Step-by-Step Guide (26)

Then, you will be welcomed by GNOME’s GDM login manager. Click on the user you created earlier and enter its password to log in and enjoy your newly installed Arch Linux system.

How to Install Arch Linux: Beginner's Step-by-Step Guide (27)
How to Install Arch Linux: Beginner's Step-by-Step Guide (28)

From this point, you can install what you want and configure your Arch Linux according to your needs and preferences. However, if you don’t feel confident about how to do it, don’t worry.

Our comprehensive “The Beginner’s Guide to Using Pacman on Arch Linux” guide will teach you everything you need to know.

Do not feel confident on the command line and prefer graphical applications? No problem – we’ve got you covered. Check out our “3 Best GUI Pacman Frontends for Arch Linux-Based Distributions” article.

Conclusion

So, this step-by-step Arch Linux how-to installation guide is over. I know it was long, but I have tried to cover all steps in brief and other additional things from scratch. You can accomplish it patiently and tell the world, “BTW, I use Arch.”

So, is Arch Linux hard to install? Not at all. It just looks lengthy for a new Linux user to install.

At the same time, it provides a great deal of learning. As you probably know, Arch Linux is arolling-release distribution. This means you shouldn’t have to install it more than once for any system.

In addition, as an Arch user, theArch Wikiwill be a precious resource to you. It is so well-composed and maintained that even non-Arch users glean knowledge and solutions daily.

If you want to share your experience with the Arch installation process, please leave your comment below.

I have tried to make this tutorial as simple as possible. Thanks for using it!

How to Install Arch Linux: Beginner's Step-by-Step Guide (2024)

FAQs

How to Install Arch Linux: Beginner's Step-by-Step Guide? ›

Arch comes with a splendid documentation and installing actually teaches you about some fundamental things about Linux if don't already know them. So even if you don't end up using arch as your daily driver it's worthwhile to go through the install guide on the wiki.

Can I use Arch Linux as a beginner? ›

Arch comes with a splendid documentation and installing actually teaches you about some fundamental things about Linux if don't already know them. So even if you don't end up using arch as your daily driver it's worthwhile to go through the install guide on the wiki.

What to know before installing Arch Linux? ›

Pre-installation
  • Acquire an installation image. ...
  • Verify signature. ...
  • Prepare an installation medium. ...
  • Boot the live environment. ...
  • Set the console keyboard layout and font. ...
  • Verify the boot mode. ...
  • Connect to the internet. ...
  • Update the system clock.
May 24, 2024

Does Arch Linux have an installer? ›

archinstall is a helper library which automates the installation of Arch Linux.

How long does an arch installation take? ›

Install the base system.

This process will usually take around 15-30 minutes depending on your Internet connection speed.

How to install Arch Linux for dummies? ›

How to Install Arch Linux [Step by Step Guide]
  1. Step 1: Download the Arch Linux ISO.
  2. Step 2: Create a live USB of Arch Linux.
  3. Step 3: Boot from the live USB. Not using US keyboard? ...
  4. Step 4: Partition the disks. ...
  5. Step 4: Create filesystem. ...
  6. Step 5: Connect to WiFi.
  7. Step 6: Select an appropriate mirror.
  8. Step 7: Install Arch Linux.

Is Arch Linux hard for beginners? ›

As an intentionally uncomplicated system, the burden is on the user to customize Arch, troubleshoot problems, and carefully manage upgrades. This is a lot to take on as a beginner.

How to install Arch from scratch? ›

How to Install Arch Linux from Scratch
  1. Step 1: Download the Arch Linux ISO. ...
  2. Step 2: Create a Live USB or DVD. ...
  3. Step 3: Boot up Arch Linux. ...
  4. Step 4: Set the Keyboard Layout. ...
  5. Step 5: Check Your Internet Connection. ...
  6. Step 6: Enable Network Time Protocols (NTP) ...
  7. Step 7: Partition the Disks. ...
  8. Step 8: Create Filesystem.
Jun 11, 2024

Is Arch Linux hard to set up? ›

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.

Why not to use Arch Linux? ›

You may not want to use Arch, if: you do not have the ability/time/desire for a 'do-it-yourself' GNU/Linux distribution. you require support for an architecture other than x86_64. you take a strong stance on using a distribution which only provides free software as defined by GNU.

What is the first step after installing Arch Linux? ›

The first thing to do after installing arch linux is to update the system by running a command in the terminal, which fetches the latest package information and upgrades all packages. Next, it is recommended to install core package tools like nano, git, and other necessary packages for a smooth experience.

What code does Arch Linux use? ›

Package Management

It was written in the C programming language by Judd Vinet. The package manager handles all the packages on the system, and does installation, removal, upgrades, and more. As a rolling release system, Arch Linux's repositories are being constantly updated.

What is Arch Linux best used for? ›

Arch Linux is most widely used by advanced users who always want to have more control over their system. In this user are allowed to easily install and manage software packages by using a package manager called Pacman.

What is the default root password for Arch install? ›

#Set your root password

The arch installer doesn't have a root password, and is set to auto-login. The resulting arch install also doesn't have a root password by default, but won't automatically log you in, for obvious reasons. Before rebooting, set a root password, just in case!

How do you set up an arch? ›

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

What are the hardware requirements for Arch Linux? ›

Arch Linux requires a x86_64 (i.e. 64 bit) compatible machine with a minimum of 512 MB RAM and 800 MB disk space for a minimal installation. However, it is recommended to have 2 GB of RAM and at least 20 GB of storage for a GUI to work without hassle.

Can I use Arch Linux for daily use? ›

I use Arch as a daily driver as well. I started using Linux in general a year or so ago, and started using Arch as a daily driver three months ago. Arch in school is awesome, I can do everything I did with Windows, just... faster and better, even the screenreader is snappier!

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Dan Stracke

Last Updated:

Views: 5311

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.