1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
[[Category:Getting and installing Arch]]
[[ar:Installation Guide]]
[[bg:Official Installation Guide]]
[[cs:Installation Guide]]
[[da:Installation Guide]]
[[de:Arch Install Scripts]]
[[el:Installation Guide]]
[[es:Installation Guide]]
[[fr:Arch_install_scripts]]
[[hu:Installation Guide]]
[[it:Installation Guide]]
[[ja:Installation Guide]]
[[ko:Installation Guide]]
[[lt:Quick Arch Linux Install]]
[[nl:Official Installation Guide]]
[[pl:Installation Guide]]
[[pt:Installation Guide]]
[[ro:Ghid de instalare]]
[[ru:Installation guide]]
[[sk:Quick Arch Linux Install]]
[[sr:Official Installation Guide]]
[[th:Quick Arch Linux Install]]
[[uk:Installation Guide]]
[[zh-CN:Installation guide]]
[[zh-TW:Installation Guide]]
This document is a guide for installing [[Arch Linux]] from the live system booted with the official installation image. Before installing, it would be advised to view the [[FAQ]]. If looking for a detailed, highly-explanatory, installation guide see the [[Beginners' guide]], or [[:Category:Getting and installing Arch]] for specific installation cases.
Most help can be found on the wiki or through the various programs' [[man page]]s; see [https://projects.archlinux.org/svntogit/packages.git/tree/filesystem/trunk/archlinux.7.txt archlinux(7)] for an overview of the configuration. For interactive help, the [[IRC channel]] and the [https://bbs.archlinux.org/ forums] are also available.
== Download ==
Download the most recent Arch Linux installation ISO image from the [https://www.archlinux.org/download/ Arch Linux download page]: this is a hybrid image that allows booting into an x86_64 or i686 live system, depending on the system's architecture and the user's choice.
Note that no packages are included in the image: the installation process needs to retrieve them from a remote repository, therefore a working internet connection is required.
Once downloaded, verify the integrity of the image against the PGP signature (e.g. {{ic|pacman-key -v ''inst-image.iso''.sig}}) or the checksums (e.g. {{ic|md5sum ''inst-image.iso''}}) which are provided on the download page.
Finally, the image can be burned to a CD, mounted as an ISO file, or [[USB Installation Media|written to a USB stick]].
== Pre-installation ==
After booting the installation image, the following steps are required to initialize the installation process.
=== Set the keyboard layout ===
The default keyboard layout is US. Alternative keyboard layouts can be loaded with {{ic|loadkeys ''keymap_file''}}: keymap files can be found in {{ic|/usr/share/kbd/keymaps/}} (path and file extension can be ommitted).
=== Partition the disks ===
See [[Partitioning]] for details; some special partitions may be needed, see [[UEFI#EFI System Partition|EFI System Partition]] and [[GRUB#GUID Partition Table (GPT) specific instructions|GRUB BIOS boot partition]]. If wanting to create any stacked block devices for [[LVM]], [[disk encryption]] or [[RAID]], do it now.
=== Format the partitions ===
See [[File systems#Create a filesystem|File systems]] and optionally [[Swap]] for details.
=== Mount the partitions ===
Mount the root partition on {{ic|/mnt}}. After that, create directories for and mount any other partitions ({{ic|/mnt/boot}}, {{ic|/mnt/home}}, ...) and activate your ''swap'' partition if you want them to be detected later by ''genfstab''.
=== Connect to the Internet ===
Internet service via DHCP discovery is enabled on boot for supported wired devices; read more at [[Network configuration]]. For supported wireless devices run {{ic|wifi-menu}} to set up the network; read more with [[Wireless network configuration]]. If needing a static IP or network management tools, stop the DHCP discovery service with {{ic|systemctl stop dhcpcd.service}}, and read [[Netctl]].
== Installation ==
=== Select the mirrors ===
Edit {{ic|/etc/pacman.d/mirrorlist}} and select a download mirror(s). Regional mirrors usually work best; however, other criteria may be necessary to discern, read more on [[Mirrors]]. This copy of the {{ic|mirrorlist}} file will later be copied on the new system by ''pacstrap'', so it is worth getting it right.
=== Install the base packages ===
Use the [https://projects.archlinux.org/arch-install-scripts.git/tree/pacstrap.in pacstrap] script to install the {{Grp|base}} group:
# pacstrap /mnt base
Other packages or groups can be installed by appending their names to the above command (space seperated), possibly including the boot loader.
=== Configure the system ===
Generate an [[fstab]] file (use {{ic|-U}} or {{ic|-L}} to define by UUID or labels):
# genfstab -p /mnt >> /mnt/etc/fstab
[[Change root]] into the new system:
# arch-chroot /mnt
Set the [[hostname]]:
# echo ''computer_name'' > /etc/hostname
Set the [[time zone]]:
# ln -sf /usr/share/zoneinfo/''zone''/''subzone'' /etc/localtime
Uncomment the needed [[locale]]s in {{ic|/etc/locale.gen}}, then generate them with:
# locale-gen
Set locale preferences in {{ic|/etc/locale.conf}} and possibly {{ic|$HOME/.config/locale.conf}}:
# echo LANG=''your_locale'' > /etc/locale.conf
Add console [[keymap]] and [[Fonts#Console_fonts|font]] preferences in {{ic|/etc/vconsole.conf}}.
Configure the network for the newly installed environment: see [[Network configuration]] and [[Wireless network configuration]].
Configure [[mkinitcpio|/etc/mkinitcpio.conf]] if additional features are needed. Create a new initial RAM disk with:
# mkinitcpio -p linux
Set the root password:
# passwd
=== Install a bootloader ===
See [[Boot loaders]] for the available choices and configuration.
=== Reboot ===
Exit the chroot environment by typing {{ic|exit}} or pressing {{ic|Ctrl+D}}.
Optionally manually unmount all the partitions with {{ic|umount -R /mnt}}: this allows noticing any "busy" partitions, and finding the cause with [[Wikipedia:fuser_(Unix)|fuser]].
Finally, restart the machine by typing {{ic|reboot}}: any partitions still mounted will be automatically unmounted by ''systemd''. Remember to remove the installation media and then login into the new system with the root account.
== Post-installation ==
See [[General recommendations]] for system management directions and post-installation tutorials (Ilike setting up a graphical user interface, sound or a touchpad).
For a list of applications that may be of interest, see [[List of applications]].
|