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. Picture 1 of How to Install Arch Linux
    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. Picture 2 of How to Install Arch Linux
    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. Picture 3 of How to Install Arch Linux
    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. Picture 4 of How to Install Arch Linux
    Restart your computer. Click Start
    Picture 5 of How to Install Arch Linux
    , click Power
    Picture 6 of How to Install Arch Linux
    , and click Restart in the menu.
    1. On a Mac, you'll instead click the Apple menu
      Picture 7 of How to Install Arch Linux
      , click System Preferences..., click Startup, click External Drive, and then restart by clicking Restart... in the Apple menu and clicking Restart when prompted.
  5. Picture 8 of How to Install Arch Linux
    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. Picture 9 of How to Install Arch Linux
    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. Picture 10 of How to Install Arch Linux
    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. Picture 11 of How to Install Arch Linux
    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. Picture 12 of How to Install Arch Linux
    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. Picture 13 of How to Install Arch Linux
    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. Picture 14 of How to Install Arch Linux
    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. Picture 15 of How to Install Arch Linux
    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. Picture 16 of How to Install Arch Linux
    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. Picture 17 of How to Install Arch Linux
    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. Picture 18 of How to Install Arch Linux
    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. Picture 19 of How to Install Arch Linux
    Exit the "cfdisk" utility. Select Quit and press Enter to do so.
  9. Picture 20 of How to Install Arch Linux
    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. Picture 21 of How to Install Arch Linux
    Mount the formatted partition. Type in mount /dev/[partition name] /mnt and press Enter. This will make the partition into a usable drive.
  11. Picture 22 of How to Install Arch Linux
    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. Picture 23 of How to Install Arch Linux
    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. Picture 24 of How to Install Arch Linux
    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. Picture 25 of How to Install Arch Linux
    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. Picture 26 of How to Install Arch Linux
    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. Picture 27 of How to Install Arch Linux
    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. Picture 28 of How to Install Arch Linux
    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. Picture 29 of How to Install Arch Linux
    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. Picture 30 of How to Install Arch Linux
    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. Picture 31 of How to Install Arch Linux
    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. Picture 32 of How to Install Arch Linux
    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. Picture 33 of How to Install Arch Linux
    Create a configuration file for GRUB. To do so, type in grub-mkconfig -o /boot/grub/grub.cfg and press Enter.
  12. Picture 34 of How to Install Arch Linux
    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. Picture 35 of How to Install Arch Linux
    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. Picture 36 of How to Install Arch Linux
    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.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile