Arch Linux is a Linux distro that is lightweight and always up to date. Installing Arch used to be known as hard, because every step was typed by hand. Now there is archinstall, a guided installer that already comes with the official Arch ISO. This tutorial uses archinstall.

The manual way (typing commands one by one) also exists. That way is covered in the official Installation Guide. This tutorial only covers archinstall.

Warning: back up first. Installing Arch will erase the disk you pick. Save your important files somewhere else first. Picking the wrong disk means your data is gone for good.

Arch Linux install flow: download the ISO, make a USB, boot from USB, run archinstall, reboot

What You Need

  • A 64-bit computer (x86_64).
  • At least 512 MB of RAM.
  • An empty flash drive.
  • An internet connection during the install. Packages are downloaded from the internet, so without internet the install fails.
  • About 30 minutes to 1 hour.

Step 1: Download the ISO

  1. Open https://archlinux.org/download/.
  2. Pick the nearest mirror, or download via torrent.
  3. Save the ISO file. The file name starts with archlinux- and ends with -x86_64.iso.
  4. Check the file is not broken. In the same folder, also download sha256sums.txt from the download page, then run:
sha256sum -c sha256sums.txt

The result must be OK. If it is not OK, download the ISO again.

Step 2: Make a Bootable USB

Follow the How to Make a Bootable Ventoy USB tutorial. Copy the Arch ISO file to the Ventoy flash drive. The Ventoy steps are not repeated here.

Step 3: Boot from USB

  1. Plug the flash drive into the computer you want to install on.
  2. Turn on the computer. Open the boot menu while it starts.
  3. Pick the flash drive from the boot list.
  4. Pick the Arch Linux install medium entry that matches (UEFI or BIOS).
  5. Wait until you see the root@archiso prompt. That means you are in the live system. A live system is a temporary system that runs from the USB.

Step 4: Check the Boot Mode (UEFI or BIOS)

UEFI and BIOS are two ways a computer starts the system. The bootloader choice later depends on this mode. Check the mode first:

ls /sys/firmware/efi/efivars
  • If it lists contents without an error, the computer booted in UEFI mode.
  • If it shows a No such file or directory error, the computer booted in BIOS mode.

Remember the result. You need it at the bootloader step.

Step 5: Check the Internet

A wired LAN cable usually connects by itself (automatic DHCP). DHCP is automatic network setup from the router. If you use Wi-Fi, connect first:

iwctl

Inside iwctl, type these commands one by one:

device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect WIFI-NAME
exit

Replace WIFI-NAME with your Wi-Fi name. Replace wlan0 if your Wi-Fi device has a different name (check device list).

Then check the connection:

ping archlinux.org

If you see replies, the internet works. Press Ctrl+C to stop. If there is no reply, fix the connection first. Without internet, the install cannot run.

Step 6: Run archinstall

Type this command:

archinstall

archinstall already comes with the official Arch ISO. A guided menu appears. Move with the arrow keys. Press Enter to select. Pick Back to go back to the main menu.

If archinstall is not found, install it first with these commands:

pacman-key --init
pacman -Sy archinstall

Steps inside the archinstall menu: mirrors, disk, bootloader, profile, user, timezone, install

Step 7: Fill In the archinstall Menu

Fill in this menu one item at a time:

  1. Archinstall Language — pick the menu language you want.
  2. Mirrors — pick your country (Indonesia). A mirror is a server where packages are downloaded from. A nearby mirror makes downloads faster.
  3. Locales — set the keyboard layout (us), system language (en_US), and encoding (UTF-8). Encoding is the rule for how the computer reads letters.
  4. Disk Configuration — pick the disk to install Arch on, then pick the automatic partition layout. A partition is a division of space inside a disk.

Warning: this is the most dangerous step. Make sure the disk you pick is the right one. Check its name and size. Example: an empty 256 GB SSD, not a 1 TB HDD full of photos and documents. A wrong pick erases all data on that disk.

Disk warning: the right disk means your data is safe, the wrong disk means your data is lost

  1. Disk encryption — optional, just skip it if you do not need it. Encryption locks the disk contents with a password.
  2. Bootloader — UEFI: pick Systemd-boot (default) or GRUB. BIOS: you must pick GRUB. A bootloader is a small program that starts the system when the computer turns on.
  3. Profile — pick Desktop if you want a graphical interface. Then pick a desktop environment, for example KDE or GNOME. A desktop environment is the desktop look: windows, menus, and icons. Pick Server if you want a system without a graphical interface.
  4. Kernel — leave it as linux (default). The kernel is the core of the operating system.
  5. Hostname — type a name for the computer, for example archbox.
  6. User — create a user account and its password. Also set the root password. Root is the admin account with full access. Use your user account for daily work, do not log in as root.
  7. Timezone — pick Asia/Jakarta.
  8. Network — leave the default choice.
  9. Audio — pick PipeWire if you want sound to work.

All done? Pick Install. archinstall shows a summary of the setup. Read it once more, especially the disk you picked. If it is correct, press Enter to start the install. Wait until it finishes. Do not turn off the computer halfway.

At the end, archinstall asks if you want to chroot or not. Pick No. Chroot means entering the new system to test it — not needed here.

Step 8: Reboot

Remove the flash drive from the computer first. If you leave it in, the computer boots into the installer again. Then type:

reboot

The computer restarts and boots into your new Arch Linux.

Step 9: First Update

Log in with the user account you just created. Then update all packages:

sudo pacman -Syu

pacman is the Arch package manager. A package manager is a tool to install, remove, and update apps. sudo means run as admin. Type your user password when asked. Wait until it finishes. If a question appears, press Enter for the default answer.

Done. Arch Linux is installed and up to date.

If Something Goes Wrong

  • The computer does not boot from USB. Check the boot order in the BIOS/UEFI. Make sure the flash drive is picked first. Try another USB port. Remake the USB if it still fails.
  • archinstall fails halfway. Check the internet with ping archlinux.org. Try again from the start. Write down the error message.
  • The computer boots into the old system, not Arch. The boot mode is probably wrong (UEFI vs BIOS). Boot from the USB again with the right mode, then repeat the install.
  • You are not sure which disk you picked. Do not guess. Cancel the install and check the size and name of the disk again in the Disk Configuration menu.

References

  1. Archinstall — Arch Wiki
  2. archinstall(1) — Arch manual pages
  3. archinstall documentation
  4. Download Arch Linux
  5. Getting Started with Arch Linux: A Beginner’s Installation Guide — Linux.org