How to Install Arch Linux

This wikiHow teaches you how to replace your computer's current operating system with Arch Linux, which is an advanced version of Linux. You can install Arch Linux on both Windows and Mac computers. Back up your computer to an external...
Part 1 of 3:

Booting into the Installer

  1. How to Install Arch Linux Picture 1How to Install Arch Linux Picture 1
    Back up your computer to an external hard drive. You'll be erasing your current operating system, so make sure that you have a backup of anything that you want to keep before continuing.
  2. How to Install Arch Linux Picture 2How to Install Arch Linux Picture 2
    Download the Arch installation image. Arch Linux can be downloaded in ISO format, from which point you can burn it onto a blank DVD in order to run the image on your computer. To download this image:
    1. Make sure that you have either BitTorrent or uTorrent installed.
    2. Go to https://www.archlinux.org/download/ in your browser.
    3. Click the Torrent link below the "BitTorrent" heading.
    4. Open the downloaded torrent in BitTorrent or uTorrent.
    5. Wait for the Arch Linux torrent file to finish downloading.
  3. How to Install Arch Linux Picture 3How to Install Arch Linux Picture 3
    Burn the image onto a blank DVD. Once your Arch Linux ISO file finishes downloading via your torrent client, you'll burn it onto a blank DVD using your computer's DVD drive. Once the burning is complete, leave the DVD in your computer.
    1. If your computer doesn't have a DVD drive, you'll need to buy an external DVD drive and attach it to your computer via USB cable.
  4. How to Install Arch Linux Picture 4How to Install Arch Linux Picture 4
    Restart your computer. Click Start
    How to Install Arch Linux Picture 5How to Install Arch Linux Picture 5
    , click Power
    How to Install Arch Linux Picture 6How to Install Arch Linux Picture 6
    , and click Restart in the menu.
    1. On a Mac, you'll instead click the Apple menu
      How to Install Arch Linux Picture 7How to Install Arch Linux Picture 7
      , click System Preferences..., click Startup, click External Drive, and then restart by clicking Restart... in the Apple menu and clicking Restart when prompted.
  5. How to Install Arch Linux Picture 8How to Install Arch Linux Picture 8
    Press the key that allows you to change the boot order. On most newer computers, this is F12, though the exact key should be displayed on the screen during boot up. If there is no key to change boot order, press the BIOS Setup key (usually F1, F2, F10, or Del).
    1. Skip this step on a Mac.
  6. How to Install Arch Linux Picture 9How to Install Arch Linux Picture 9
    Select your installation drive as the primary boot drive. Set the drive (e.g., "DVD Drive" or "Disk Drive") that contains your Arch Linux DVD as the primary drive by selecting it and pressing the + key until it's at the top of the menu.
    1. Skip this step on a Mac.
    2. On some PCs, you may first have to open an "Advanced" tab or select a "Boot Options" section.
  7. How to Install Arch Linux Picture 10How to Install Arch Linux Picture 10
    Save and exit the "Boot Options" screen. You should see a key at the bottom or in the bottom-right corner of the screen that you can press to save and exit. After doing so, your computer will resume restarting.
    1. Skip this step on a Mac.
  8. How to Install Arch Linux Picture 11How to Install Arch Linux Picture 11
    Select Boot Arch Linux and press Enter. This will launch the Arch Linux installer, at which point you can proceed with partitioning your hard drive.
Part 2 of 3:

Creating Partitions

  1. How to Install Arch Linux Picture 12How to Install Arch Linux Picture 12
    Check your existing drives. You'll have at least two drives available: your computer's hard drive, and the Arch Linux installation media. To check your current drives:
    1. Type in fdisk -l and press Enter.
    2. Find the name of the largest hard drive on the results screen. The name will be something like "/dev/sda" and can be found to the right of the "Disk" heading.
  2. How to Install Arch Linux Picture 13How to Install Arch Linux Picture 13
    Bring up the partition page. Type in cfdisk [drive name], making sure to replace [drive name] with your hard drive's name, and press Enter, then select DOS and press Enter again.
    1. For example: if the drive is named "/dev/sda", you would type cfdisk /dev/sda into the terminal.
  3. How to Install Arch Linux Picture 14How to Install Arch Linux Picture 14
    Delete the hard drive's contents. Select a partition in the middle of the screen, select Delete at the bottom of the screen, press Enter, and repeat for any other partitions in the middle of the screen. You should ultimately be left with a line entitled Pri/Log Free Space.
  4. How to Install Arch Linux Picture 15How to Install Arch Linux Picture 15
    Create a "swap" partition. This partition will function as your system's backup memory if and when you are consuming all of your RAM. To do so:
    1. Select New and press Enter.
    2. Select Primary and press Enter.
    3. Type in a number of megabytes (e.g., 1024 for one gigabyte) and press Enter. As a rule of thumb, you should make the swap partition 2 or 3 times your RAM (e.g., if you have 4 gigabytes of RAM, you should make the swap partition 8192 or 12288 megabytes).
    4. Select End and press Enter.
  5. How to Install Arch Linux Picture 16How to Install Arch Linux Picture 16
    Create your main hard drive partition. This is the partition on which your Arch Linux operating system, files, and other information will be stored. To do this:
    1. Make sure that the Pri/Log Free Space partition is selected.
    2. Select New and press Enter.
    3. Select Primary and press Enter.
    4. Make sure that the number next to the "Size (in MB)" heading is correct.
    5. Press Enter.
    6. Select the primary partition again.
    7. Select Bootable and press Enter.
  6. How to Install Arch Linux Picture 17How to Install Arch Linux Picture 17
    Label the "swap" partition. This will set it as your system's RAM:
    1. Select the "swap" partition.
    2. Select Type and press Enter.
    3. Type in 82 and press Enter.
    4. With the "swap" partition still selected, select Write and press Enter.
    5. Type in yes and press Enter.
  7. How to Install Arch Linux Picture 18How to Install Arch Linux Picture 18
    Note the names of your partitions. In the "Name" column on the far-left side of the screen, you should see a name (e.g., "sda1") next to your "swap" partition, and a similar name (e.g., "sda2") next to the primary partition. You'll need both of these names in order to format your partitions.
  8. How to Install Arch Linux Picture 19How to Install Arch Linux Picture 19
    Exit the "cfdisk" utility. Select Quit and press Enter to do so.
  9. How to Install Arch Linux Picture 20How to Install Arch Linux Picture 20
    Format your primary partition. This will make it usable with your operating system. To do this, type in mkfs.ext4 /dev/[primary partition name] and press Enter.
    1. For a partition named "sda2", you'd enter mkfs.ext4 /dev/sda2 here.
  10. How to Install Arch Linux Picture 21How to Install Arch Linux Picture 21
    Mount the formatted partition. Type in mount /dev/[partition name] /mnt and press Enter. This will make the partition into a usable drive.
  11. How to Install Arch Linux Picture 22How to Install Arch Linux Picture 22
    Add a swap file to the "swap" partition. Type in mkswap /dev/[partition name] and press Enter, then type in swapon /dev/sda1 and press Enter again. After completing this step, you can proceed with installing Arch Linux.
    1. For a "swap" partition named "sda1", for example, you'd enter mkswap /dev/sda1 and then swapon /dev/sda1 here.
Part 3 of 3:

Installing

  1. How to Install Arch Linux Picture 23How to Install Arch Linux Picture 23
    Set up a Wi-Fi connection. If your computer is plugged into your router via ethernet, you can skip this step. Using ethernet is preferable to using Wi-Fi.[1]
    1. Type ip link and press Enter to determine the interface name of your network adapter.
    2. Type pacman -S iw wpa_supplicant and press Enter to install the necessary software.
    3. Type pacman -S dialog and press Enter to install the Wi-Fi menu.
    4. Type pacman -S wpa_actiond and press Enter to install the software that allows you to automatically connect to known networks.
    5. Type systemctl enable netctl-auto@interfacename.service to turn on the auto-connection service for your wireless adapter.
    6. Next time you reboot, type wifi-menu interfacename to access the wireless menu for your adapter. After you connect to the network for the first time, you will be automatically connected for subsequent boots. Do not enter this now, or you will lose access to your network.
  2. How to Install Arch Linux Picture 24How to Install Arch Linux Picture 24
    Install the base system. Type in pacstrap /mnt base base-devel and press Enter. The system will begin installing onto your computer.
    1. This process will usually take around 15-30 minutes depending on your Internet connection speed.
  3. How to Install Arch Linux Picture 25How to Install Arch Linux Picture 25
    Open "chroot" access. Type in arch-chroot /mnt and press Enter. This will allow you to change aspects of the root directory, including the password.
  4. How to Install Arch Linux Picture 26How to Install Arch Linux Picture 26
    Set a password. This is the password that you'll use to log into the root account. To do so:
    1. Type in passwd and press Enter.
    2. Type in a password and press Enter.
    3. Retype your password and press Enter.
  5. How to Install Arch Linux Picture 27How to Install Arch Linux Picture 27
    Set a language. To do so:
    1. Type in nano /etc/locale.gen and press Enter.
    2. Scroll down to select your preferred language.
    3. Select the letter directly in front of the "#" symbol behind your language and press Del.
    4. Delete the "#" symbol from any other versions of your language (e.g., all versions of "en_US").
    5. Press Ctrl+O (or Command+O on a Mac), then press Enter.
    6. Exit by pressing Ctrl+X or Command+X.
    7. Type in locale-gen and press Enter to finish setting up your language.
  6. How to Install Arch Linux Picture 28How to Install Arch Linux Picture 28
    Select a time zone. To do so:
    1. Type in cd usr/share/zoneinfo and press Enter.
    2. Type in ls and press Enter.
    3. Find your country or region, then type in cd usr/share/zoneinfo/country (e.g., America) and press Enter.
    4. Type in ls again and press Enter.
    5. Find your preferred time zone, then type in ln -s /usr/share/zoneinfo/country/timezone /etc/localtime and press Enter.
  7. How to Install Arch Linux Picture 29How to Install Arch Linux Picture 29
    Set a host name for your computer. To do so, type in echo name > /etc/hostname and press Enter.
    1. To name your computer "Panda", for example, you'd enter echo Panda > /etc/hostname here.
  8. How to Install Arch Linux Picture 30How to Install Arch Linux Picture 30
    Download the GRUB bootloader. This is the program that will install your Arch Linux for you. To do so:
    1. Type in pacman -S grub-bios and press Enter.
    2. Type in y and press Enter.
    3. Wait for GRUB to finish downloading.
  9. How to Install Arch Linux Picture 31How to Install Arch Linux Picture 31
    Install GRUB. Make sure that when you do this, you install it on your actual hard drive (e.g., "sda"), not the partition (e.g., "sda1"). To install GRUB:
    1. Type in grub-install /dev/drive name (e.g., grub-install /dev/sda and press Enter.
  10. How to Install Arch Linux Picture 32How to Install Arch Linux Picture 32
    Create an "init" file. This file stores information about your computer's hardware, making it available for utilization by Linux. To do so, type in mkinitcpio -p linux and press Enter.
  11. How to Install Arch Linux Picture 33How to Install Arch Linux Picture 33
    Create a configuration file for GRUB. To do so, type in grub-mkconfig -o /boot/grub/grub.cfg and press Enter.
  12. How to Install Arch Linux Picture 34How to Install Arch Linux Picture 34
    Create an "fstab" file. Type in genfstab /mnt >> /mnt/etc/fstab and press Enter. Doing so allows Arch Linux to identify your partition's file systems.
  13. How to Install Arch Linux Picture 35How to Install Arch Linux Picture 35
    Reboot your computer. To do so, type in umount /mnt and press Enter, type in reboot, press Enter, remove your installation media, and wait for your system to finish rebooting.
  14. How to Install Arch Linux Picture 36How to Install Arch Linux Picture 36
    Log into your account. Type root into the "login" field and press Enter, then type your password in and press Enter. You have successfully installed and opened Arch Linux on your computer.
    1. If you want to install a graphical user interface (GUI) that allows you to use the mouse, try installing GNOME on your computer.
5 ★ | 1 Vote