mobile wallpaper 1
mobile wallpaper 2
mobile wallpaper 3
mobile wallpaper 4
mobile wallpaper 5
mobile wallpaper 6
mobile wallpaper 7
mobile wallpaper 8
mobile wallpaper 9
mobile wallpaper 10
mobile wallpaper 11
mobile wallpaper 12
mobile wallpaper 13
4382 字
12 分钟
ArchLinux安装指南0x01篇
2026-08-31

写在前头#

这是我的博客的第一篇教程,我一直在想该写什么好。最后还是决定写一写Arch的安装,用来熟悉一些md语法。如果有任何错误请谅解。

目录#

正文#

TIP

我们不建议初学者使用 Arch Linux 作为使用的第一个发行版。

TIP

遇到任何问题可以去 Arch Wiki 上寻找答案。

我需要什么?#

  • 一台 x86_64 的电脑。
  • 一块至少 8G 的U盘。

什么是 Arch Linux#

Arch Linux 作为一种通用 Linux 发行版,它的初始安装仅提供命令行环境。由于 Arch 默认提供最小化安装,用户不需要删除大量不需要的软件包,而是可以从官方软件仓库成千上万的高质量软件包中进行选择,用于搭建自己的系统。目前仅支持 x86-64 架构。( 对 i686 架构的支持已经结束)
——摘自Arch Wiki

安装前准备#

获取安装镜像#

打开官方镜像链接 Arch Linux Downloads, 在其中的 BitTorrent Download (recommended) 下选择一个合适你的链接,可以使用 Free Download Manager 或迅雷下载磁力链接或BT种子。

完成后你应该会得到一个形如 archlinux-2026.08.01-x86_64.iso 的ISO文件。

有条件的可以使用如 7-ZIP 或 sha256sum 命令来校验。

制作安装介质#

我们考虑使用 Ventoy 制作安装介质。

打开上方链接按自己的系统类型下载。

NOTE

因为 Ventoy 安装包托管在 Github 上,中国大陆用户可能无法访问,你可以使用网页下方的其他链接,如 蓝奏云

你应该得到一个形如 ventoy-1.1.17-windows.zip 的压缩包,解压它。

找到其中的 Ventoy2Disk.exe 文件运行它。

CAUTION

此操作会清除U盘中的一切数据。
数据无价请做好备份!

把你的U盘插进去。在上方选择框中选择你的U盘。然后按左下角的 安装 键。二次确认后开始安装。

安装完成后你的U盘的卷标应变为 Ventoy。把你先前下载的 Arch Linux 安装镜像复制到U盘中。

至此制作安装介质完成!

启动到 LiveCD#

WARNING

Arch Linux 安装映像不支持 UEFI 安全启动(Secure Boot)功能。如果要引导安装介质,需要禁用安全启动。

  1. 把U盘插入待装电脑。开机,在主板自检时快速按下 快捷启动键(参考下表),进入快捷启动界面。
NOTE

不同型号可能不同,请参考屏幕提示

主板品牌 快捷按键信息
名称 数值
华硕 (ASUS) 快捷启动键 F8
进入BIOS键 Del 或 F2
技嘉 (Gigabyte) 快捷启动键 F12
进入BIOS键 Del
微星 (MSI) 快捷启动键 F11
进入BIOS键 Del
华擎 (ASRock) 快捷启动键 F11
进入BIOS键 Del 或 F2
联想 (Lenovo) 快捷启动键 F12
进入BIOS键 F2 或 Fn+F2
惠普 (HP) 快捷启动键 F9
进入BIOS键 F10 或 ESC
戴尔 (Dell) 快捷启动键 F12
进入BIOS键 F2
映泰 (BIOSTAR) 快捷启动键 F9
进入BIOS键 Del
七彩虹 (Colorful) 快捷启动键 ESC 或 F11
进入BIOS键 Del 或 F2
Intel (原厂主板) 快捷启动键 F12
进入BIOS键 F2 或 Del
  1. 选择你的U盘,回车进入 Ventoy 界面(如下图)。
Ventoy示例图
  1. 选择其中的 archlinux-2026.08.01-x86_64.iso(具体名字参考你的 ISO 镜像文件)文件。两次回车进入 LiveCD。
LiveCD启动示意图

4.按回车或等待 15 秒,等一段跑码,就会进入到一个类似下面的界面:

TTY示意图

至此启动到 LiveCD 就完成了!

正式安装#

NOTE

你可以通过命令前的 # 或 $ 符号判断当前命令是用 root 用户执行还是普通用户。

网络连接#

NOTE

使用 Tab 键补全命令和路径。 使用 clear 命令清屏。 使用快捷键 Ctrl + A 将光标移动到最前。

TIP

若有条件,我们建议直接使用以太网线连接电脑。

分两种情况,请按照选择自己的情况选择。

有线网络#

若你直接将电脑用一根以太网线连到路由器或光猫上,那么你的网络大概率已经连接成功了。

使用如下命令测试

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:d2:28:a3 brd ff:ff:ff:ff:ff:ff
altname enx080027d228a3
inet 192.168.0.105/24 metric 100 brd 192.168.0.255 scope global dynamic enp0s3
valid_lft 6509sec preferred_lft 6509sec
inet6 fd00:3c6a:4854:2dd3::1005/128 scope global dynamic noprefixroute
valid_lft 85710sec preferred_lft 85710sec
inet6 fd00:3c6a:4854:2dd3:ec00:2ce9:e815:8ed1/64 scope global temporary dynamic
valid_lft 86370sec preferred_lft 14370sec
inet6 fd00:3c6a:4854:2dd3:a00:27ff:fed2:28a3/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 86370sec preferred_lft 14370sec
inet6 fe80::a00:27ff:fed2:28a3/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
NOTE

网卡名称可能不同(如 enp2s0、eno1),有 inet 地址即为成功。

若除了 127.0.0.1 以外还有 ip 地址则连接成功。

现在我们测试互联网连接,使用以下命令,若 ping 通则按 Ctrl+C 键打断。

NOTE

Linux 命令 ping 需要 Ctrl+C 键手动打断。

$ ping www.bilibili.com
PING a.w.bilicdn1.com (117.21.179.20) 56(84) bytes of data.
64 bytes from 117.21.179.20: icmp_seq=1 ttl=54 time=16.8 ms
64 bytes from 117.21.179.20: icmp_seq=2 ttl=54 time=13.4 ms
64 bytes from 117.21.179.20: icmp_seq=3 ttl=54 time=12.4 ms
64 bytes from 117.21.179.20: icmp_seq=4 ttl=54 time=11.5 ms
^C
--- a.w.bilicdn1.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7384ms
rtt min/avg/max/mdev = 11.454/13.512/16.806/2.020 ms

像这样代表你与 B站 的网络是通畅的(当然你也可以把上面的 www.bilibili.com 换成别的网址(注意不要加 http:// 或 https://),如 www.baidu.com)。

无线网络#

为了连接无线网络,我们要使用命令 iwctl。

NOTE

命令 iwctl 详见:iwd - Arch Wiki

# iwctl

这时提示符会变成 [iwd]#。

使用 help 命令

[iwd]# help
iwctl version 3.12
--------------------------------------------------------------------------------
Usage
--------------------------------------------------------------------------------
iwctl [--options] [commands]
Available options
--------------------------------------------------------------------------------
Options Description
--------------------------------------------------------------------------------
--username Provide username
--password Provide password
--passphrase Provide passphrase
--dont-ask Don't ask for missing
credentials
--help Display help
Available commands
--------------------------------------------------------------------------------
Commands Description
--------------------------------------------------------------------------------
Adapters:
adapter list List adapters
adapter <phy> show Show adapter info
adapter <phy> set-property <name> <value> Set property
Ad-Hoc:
ad-hoc list List devices in Ad-hoc mode
ad-hoc <wlan> start <"network name"> <passphrase> Start or join an existing
Ad-Hoc network called "network
name" with a passphrase
ad-hoc <wlan> start_open <"network name"> Start or join an existing open
Ad-Hoc network called "network
name"
ad-hoc <wlan> stop Leave an Ad-Hoc network
Access Point:
ap list List devices in AP mode
ap <wlan> start <"network name"> <passphrase> Start an access point called
"network name" with a
passphrase
ap <wlan> start-profile <"network name"> Start an access point based on
a disk profile
ap <wlan> stop Stop a started access point
ap <wlan> show Show AP info
ap <wlan> scan Start an AP scan
ap <wlan> get-networks Get network list after
scanning
Devices:
device list List devices
device <wlan> show Show device info
device <wlan> set-property <name> <value> Set property
Known Networks:
known-networks list List known networks
known-networks <"network name"> forget Forget known network
known-networks <"network name"> show Show known network
known-networks <"network name"> set-property Set property
<name> <value>
WiFi Simple Configuration:
wsc list List WSC-capable devices
wsc <wlan> push-button PushButton mode
wsc <wlan> start-user-pin <PIN> PIN mode
wsc <wlan> start-pin PIN mode with generated 8
digit PIN
wsc <wlan> cancel Aborts WSC operations
Station:
station list List devices in Station mode
station <wlan> connect <"network name"> [security] Connect to network
station <wlan> connect-hidden <"network name"> Connect to hidden network
station <wlan> disconnect Disconnect
station <wlan> get-networks [rssi-dbms/rssi-bars] Get networks
station <wlan> get-hidden-access-points Get hidden APs
[rssi-dbms]
station <wlan> scan Scan for networks
station <wlan> show Show station info
station <wlan> get-bsses [network] [security] Get BSS's for a network
Device Provisioning:
dpp list List DPP-capable devices
dpp <wlan> start-enrollee Starts a DPP Enrollee
dpp <wlan> start-configurator Starts a DPP Configurator
dpp <wlan> stop Aborts DPP operations
dpp <wlan> show Shows the DPP state
Shared Code Device Provisioning (PKEX):
pkex list List shared code capable
devices
pkex <wlan> stop Aborts shared code operations
pkex <wlan> show Shows the shared code state
pkex <wlan> enroll key [identifier] Start a shared code enrollee
pkex <wlan> configure key [identifier] Start a shared code
configurator
Station Debug:
debug <wlan> connect <bssid> Connect to a specific BSS
debug <wlan> roam <bssid> Roam to a BSS
debug <wlan> get-networks Get networks
debug <wlan> autoconnect on|off Set AutoConnect property
Miscellaneous:
version Display version
quit Quit program

接下来我们演示如何连接 Wi-Fi(请将 wlan0 替换为你的无线网卡设备名,将 MyWiFi 替换为你的 Wi-Fi 名称)。

  1. 列出所有无线设备,确认你的网卡名称:
[iwd]# device list
Devices
--------------------------------------------------------------------------------
Name Address Powered Adapter Mode
--------------------------------------------------------------------------------
wlan0 **:**:**:**:**:** on phy0 station

若输出如上图,那么设备名为:wlan0,若 Powered 列是 off。

那么使用以下命令打开设备:

[iwd]# device wlan0 set-property Powered on # 把“wlan0”换成你的设备名。

扫描附近 Wi-Fi (若无输出则成功)。

[iwd]# station wlan0 scan

列出扫描到的网络(找到你要连接的 SSID)。

WARNING

你处于 TTY 环境,由于 Linux 内核特性,TTY 中的中文会被显示为方块”□”。
所以不建议你使用中文 Wi-Fi 名。

[iwd]# station wlan0 get-networks
Available networks *
--------------------------------------------------------------------------------
Network name Security Signal
--------------------------------------------------------------------------------
Wi-Fi 1 psk ****
Wi-Fi 2 psk ****
Wi-Fi 3 psk ****
Wi-Fi 4 psk ****
Wi-Fi 5 psk ****
Wi-Fi 6 psk ****
Wi-Fi 7 psk ****
Wi-Fi 8 psk ****
Wi-Fi 9 psk ****
Wi-Fi 10 psk ****

连接网络:

[iwd]# station wlan0 connect "Wi-Fi 1" # 把“Wi-Fi 1”换成你上面看到的你的Wi-Fi名。

系统会提示 Passphrase:,输入密码后回车。

连接成功后,可以输入 exit 退出交互界面。

使用如下命令测试

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:d2:28:a3 brd ff:ff:ff:ff:ff:ff
altname enx080027d228a3
inet 192.168.0.105/24 metric 100 brd 192.168.0.255 scope global dynamic enp0s3
valid_lft 6509sec preferred_lft 6509sec
inet6 fd00:3c6a:4854:2dd3::1005/128 scope global dynamic noprefixroute
valid_lft 85710sec preferred_lft 85710sec
inet6 fd00:3c6a:4854:2dd3:ec00:2ce9:e815:8ed1/64 scope global temporary dynamic
valid_lft 86370sec preferred_lft 14370sec
inet6 fd00:3c6a:4854:2dd3:a00:27ff:fed2:28a3/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 86370sec preferred_lft 14370sec
inet6 fe80::a00:27ff:fed2:28a3/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever

若除了 127.0.0.1 以外还有 ip 地址则连接成功。

现在我们测试互联网连接,使用以下命令,若 ping 通则按 Ctrl+C 键打断。

NOTE

Linux 命令 ping 需要 Ctrl+C 键手动打断。

$ ping www.bilibili.com
PING a.w.bilicdn1.com (117.21.179.20) 56(84) bytes of data.
64 bytes from 117.21.179.20: icmp_seq=1 ttl=54 time=16.8 ms
64 bytes from 117.21.179.20: icmp_seq=2 ttl=54 time=13.4 ms
64 bytes from 117.21.179.20: icmp_seq=3 ttl=54 time=12.4 ms
64 bytes from 117.21.179.20: icmp_seq=4 ttl=54 time=11.5 ms
^C
--- a.w.bilicdn1.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7384ms
rtt min/avg/max/mdev = 11.454/13.512/16.806/2.020 ms

像这样代表你与 B站 的网络是通畅的(当然你也可以把上面的 www.bilibili.com 换成别的网址(注意不要加 http:// 或 https://),如 www.baidu.com)。

至此,网络连接完成!

NOTE

你可以把另一台电脑连接到同一路由器/光猫下,记下当前电脑(待装电脑)的 ip 地址,在另一台电脑上使用 ssh root@ip(将 “ip” 换为你的 ip),详见:OpenSSH - Arch Wiki

更换软件源#

我们可以通过更换国内软件仓库镜像源加快下载速度

使用 vim 编辑 /etc/pacman.d/mirrorlist 文件:

vim /etc/pacman.d/mirrorlist
NOTE

关于 vim,详见 Vim - Arch Wiki

NOTE

/etc/pacman.d/mirrorlist 文件会在后续安装过程中被复制到新系统。

在最上面添加如下镜像源(任选其一)

Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch # 中国科学技术大学开源镜像站
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch # 清华大学开源软件镜像站
Server = https://repo.huaweicloud.com/archlinux/$repo/os/$arch # 华为开源镜像站
Server = http://mirror.lzu.edu.cn/archlinux/$repo/os/$arch # 兰州大学开源镜像站

分区与格式化#

CAUTION

注意有些命令具有危险性,不确定请不要随便输入,可能丢失数据!!!

NOTE

请确定你的电脑使用(U)EFI启动,使用以下命令:cat /sys/firmware/efi/fw_platform_size。

  • 如果命令结果为 64,则系统是以 UEFI 模式引导且使用 64 位 x64 UEFI。
  • 如果命令结果为 32,则系统是以 UEFI 模式引导且使用 32 位 IA32 UEFI。
  • 如果命令结果为 No such file or directory,则系统可能是以 BIOS 模式。(等我以后的教程)
Linux 分区介绍#
  • / 根目录;
  • /boot 引导分区;
  • swap 分区,当然你也可以使用 Swap 文件;
  • /home 可不单独建立分区,合并在 /。
分区方式选择#
  1. Btrfs
  2. Ext4
使用 Btrfs+Swap 文件#
NOTE

由于我们使用 Btrfs,所以实际上 /、/home 在一个分区中。

  1. 执行 lsblk 命令,找到需要安装 Arch Linux 的磁盘。
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 1012.6M 1 loop /run/archiso/airootfs
sda 8:0 0 20G 0 disk
sr0 11:0 1 1.5G 1 rom /run/archiso/bootmnt

如上图,安装磁盘就是 sda。

NOTE

如果你的硬盘是 NVME 协议的固态硬盘,那么将不是 sdx 而是 nvmexn1。

  1. 使用 cfdisk 命令对磁盘分区。
NOTE

在 cfdisk 中只要你没有将更改写入磁盘,你的更改就只存在于内存中。

SATA:

# cfdisk /dev/sda

NVME:

# cfdisk /dev/nvmexn1 # 对安装 archlinux 的磁盘分区

若为新磁盘,会提示选择分区表,建议选择 gpt 分区表。

cfdisk示意图1

进入 cfdisk 分区工具之后,你会看到如图所示的界面。通过方向键 ↑ 和 ↓ 可以在要操作磁盘分区或空余空间中移动;通过方向键 ← 和 → 在对当前高亮的磁盘分区或空余空间要执行的操作中移动。

cfdisk示意图2
  1. 首先创建 EFI 分区。(建议 1GiB,最小 400MiB)

方向键 ↑ 和 ↓ 选择 Free space,方向键 ← 和 → 选择 New,回车,输入分区大小,方向键 ← 和 → 选择 Type 回车,选择。

cfdisk示意图3
cfdisk示意图3
cfdisk示意图4
cfdisk示意图4
  1. 创建主分区

与 1. 相同但大小至少 23–32 GiB,Type 中选择 Linux filesystem(默认选项)。

cfdisk示意图5
  1. 写入分区表,选择 Write 选项,回车,输入 yes,回车。
WARNING

请确认你正确更改了分区表,否则可能丢失数据!

cfdisk示意图6
  1. 退出 cfdisk

选择 Quit 退出 cfdisk。

  1. 检查

运行lsblk命令,你应该看到如下输出:

# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 1012.6M 1 loop /run/archiso/airootfs
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 1G 0 part
└─sda2 8:2 0 19G 0 part
sr0 11:0 1 1.5G 1 rom /run/archiso/bootmnt

记住上方你的设备文件,如这里就是 sda1、sda2。

NOTE

NVMe 固态硬盘 (SSD):命名格式为 /dev/nvme0n1p1

  1. 格式化分区
CAUTION

注意!以下命令会对分区格式化!一定要确定分区的设备文件,不要照抄指令!!!

首先我们格式化 EFI 分区,双系统用户可跳过此步。

# mkfs.fat -F 32 /dev/sda1 # 将 sda1 换成你的设备文件名
mkfs.fat 4.2 (2021-01-31)

其次格式化主目录分区。

# mkfs.btrfs /dev/sda2 # 将 sda2 换成你的设备文件名
btrfs-progs v7.1
See https://btrfs.readthedocs.io for more information.
NOTE: default settings have changed in version 6.19 (supported since linux 6.1):
- enable block-group-tree (-O bgt)
Label: (null)
UUID: 1b31dcec-14bf-4b41-b3a4-52dec9cbd700
Node size: 16384
Sector size: 4096 (CPU page size: 4096)
Filesystem size: 19.00GiB
Block group profiles:
Data: single 8.00MiB
Metadata: DUP 256.00MiB
System: DUP 8.00MiB
SSD detected: no
Zoned device: no
Features: extref, skinny-metadata, no-holes, free-space-tree, block-group-tree
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 19.00GiB /dev/sda2
NOTE

若失败,可加上 -F 参数,即 mkfs.btrfs -F /dev/sda2

NOTE

可加上 -L 参数设置标签。 如:mkfs.btrfs -L "Arch_Linux" /dev/sda2

  1. 创建 Btrfs 子卷

把 btrfs 分区挂载在 /mnt 下

# mount -t btrfs /dev/sda2 /mnt # 将 sda2 换成你的设备文件。
NOTE

-t 参数指定了分区类型 关于 mount 详见:文件系统 - Arch Wiki

NOTE

可以使用 df -h 命令复查挂载。

创建子卷

# btrfs subvolume create /mnt/@ # 根目录
# btrfs subvolume create /mnt/@home # 家目录
# btrfs subvolume create /mnt/@swap # swap目录用于存放Swap文件

卸载 btrfs

# umount /mnt
  1. 正式挂载
# mount -t btrfs -o compress=zstd,subvol=/@ /dev/sda2 /mnt
# mount --mkdir -t btrfs -o compress=zstd,subvol=/@home /dev/sda2 /mnt/home
# mount --mkdir -t btrfs -o compress=zstd,subvol=/@swap /dev/sda2 /mnt/swap
# mount --mkdir /dev/sda1 /mnt/boot
NOTE
  • -t 指定分区类型
  • -o 指定参数: compress=zstd 代表启用透明压缩 subvol=/@ 代表挂载子卷 ”@“,/ 是路径分隔符
  • --mkdir 代表如果目标挂载点不存在,则自动创建它。
NOTE

先挂载 @ 子卷也就是根目录。

使用 df -h 命令复查挂载。

# df -h
Filesystem Size Used Avail Use% Mounted on
dev 1.8G 0 1.8G 0% /dev
run 1.9G 9.0M 1.9G 1% /run
efivarfs 256K 33K 219K 13% /sys/firmware/efi/efivars
/dev/sr0 1.5G 1.5G 0 100% /run/archiso/bootmnt
cowspace 256M 504K 256M 1% /run/archiso/cowspace
/dev/loop0 1013M 1013M 0 100% /run/archiso/airootfs
airootfs 256M 504K 256M 1% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
none 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 1.9G 0 1.9G 0% /tmp
none 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
tmpfs 1.9G 2.7M 1.9G 1% /etc/pacman.d/gnupg
none 1.0M 0 1.0M 0% /run/credentials/systemd-networkd.service
none 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service
tmpfs 389M 8.0K 389M 1% /run/user/0
/dev/sda2 19G 6.2M 19G 1% /mnt
/dev/sda2 19G 6.2M 19G 1% /mnt/home
/dev/sda2 19G 6.2M 19G 1% /mnt/swap
/dev/sda1 1022M 4.0K 1022M 1% /mnt/boot

可以看到 /dev/sda1、/dev/sda2 成功挂载。

  1. 创建并启用 swap 文件
# btrfs filesystem mkswapfile --size 4G --uuid clear /mnt/swap/swapfile
NOTE
  • btrfs:调用 Btrfs 文件系统的管理工具集。
  • filesystem:指明要对文件系统本身执行操作。
  • mkswapfile:在 Btrfs 上创建交换文件的专用命令,自动处理 NOCOW 与预分配。
  • --size 4G:指定创建的交换文件大小为 4GiB。
  • -U clear:清空交换文件的 UUID,避免潜在的标识冲突。
  • /mnt/swap/swapfile:指定交换文件的创建路径与文件名。
# swapon /mnt/swap/swapfile
NOTE

swapon:启用交换设备或交换文件的命令,让系统立即开始使用指定的交换空间。 /mnt/swap/swapfile:指定要激活的交换文件路径。

  • 此命令会在当前 Live 环境中临时激活交换文件,而系统重启后的自动激活依赖于 /etc/fstab。
Ext4+swap分区#
NOTE

下次再说吧~

安装必要软件包#

先更新一下密钥:

# pacman -Sy archlinux-keyring
NOTE
  • pacman 是 Arch Linux 的默认包管理器。
  • -Sy 是 pacman 的两个选项组合:
    • -S (—sync):表示要从远程仓库同步或安装软件包。
    • -y (—refresh):表示刷新本地软件包数据库,使其与远程仓库信息同步。
  • archlinux-keyring:包含官方开发者 PGP 公钥的软件包,用于验证软件包签名;安装系统时会将其复制到新系统中,要保证其最新。

好了,正式安装:

# pacstrap -K /mnt base base-devel linux linux-headers linux-firmware intel-ucode vim grub efibootmgr os-prober networkmanager btrfs-progs
==> Creating install root at /mnt
gpg: /mnt//etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/mnt//etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/mnt//etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/mnt//etc/pacman.d/gnupg/openpgp-revocs.d/487D47031496470362EB334E88B78B3CE3C99102.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Installing packages to /mnt
:: Synchronizing package databases...
core 127.0 KiB 90.7 KiB/s 00:01 [########################################] 100%
extra 8.5 MiB 3.92 MiB/s 00:02 [########################################] 100%
resolving dependencies...
:: There are 2 providers available for libxtables.so=12-64:
:: Repository core
1) iptables 2) iptables-legacy
Enter a number (default=1):
:: There are 3 providers available for initramfs:
:: Repository core
1) mkinitcpio
:: Repository extra
2) booster 3) dracut
Enter a number (default=1):
looking for conflicting packages...
Packages (216) acl-2.4.0-1 archlinux-keyring-20260727-1 attr-2.6.0-1 audit-4.2.1-1 autoconf-2.73-1
automake-1.18.1-1 bash-5.3.15-1 binutils-2.47-4 bison-3.8.2-8 boost-libs-1.92.0-1 brotli-1.2.0-1
bzip2-1.0.8-6 ca-certificates-20240618-1 ca-certificates-mozilla-3.128-1
ca-certificates-utils-20240618-1 coreutils-9.11-2 cpio-2.15-3 cryptsetup-2.8.7-1 curl-8.21.0-1
db5.3-5.3.28-7 dbus-1.16.2-1 dbus-broker-37-3 dbus-broker-units-37-3 dbus-units-37-3
debugedit-5.3-2 device-mapper-2.03.42-1 diffutils-3.12-2 duktape-2.7.0-7 e2fsprogs-1.47.4-1
efivar-39-2 elfutils-0.196-1 expat-2.8.3-1 fakeroot-1:1.37.2-3 file-5.48-1 filesystem-2025.10.12-1
findutils-4.11.0-1 flex-2.6.4-6 gawk-5.4.1-1 gc-8.2.12-1 gcc-16.2.1+r23+gd564253eb6c8-1
gcc-libs-16.2.1+r23+gd564253eb6c8-1 gdb-17.2-1 gdb-common-17.2-1 gdbm-1.26-2 gettext-1.0-2
glib2-2.88.3-1 glibc-2.44+r24+g16be1518495f-1 gmp-6.3.0-3 gnulib-l10n-20241231-1 gnupg-2.4.9-3
gnutls-3.8.13-2 gpgme-2.1.2-1 gpm-1.20.7.r38.ge82d1a6-6 grep-3.12-2 groff-1.24.1-1 guile-3.0.11-1
gzip-1.14-2 hwdata-0.410-1 iana-etc-20260617-1 icu-78.3-1 iproute2-7.2.0-1 iptables-1:1.8.13-1
iputils-20250605-1 jansson-2.15.1-1 json-c-0.19-1 kbd-2.10.0-1 keyutils-1.6.3-4 kmod-34.2-1
krb5-1.22.2-1 leancrypto-1.8.0-1 libarchive-3.8.9-1 libasan-16.2.1+r23+gd564253eb6c8-1
libassuan-3.0.0-1 libatomic-16.2.1+r23+gd564253eb6c8-1 libbpf-1.7.0-1 libcap-2.78-1
libcap-ng-0.9.5-1 libdaemon-0.14-6 libelf-0.196-1 libevent-2.1.13-2 libffi-3.8.0-1
libgcc-16.2.1+r23+gd564253eb6c8-1 libgcrypt-1.12.3-1 libgfortran-16.2.1+r23+gd564253eb6c8-1
libgomp-16.2.1+r23+gd564253eb6c8-1 libgpg-error-1.61-1 libhwasan-16.2.1+r23+gd564253eb6c8-1
libidn2-2.3.8-1 libisl-0.28-1 libksba-1.8.1-1 libldap-2.6.13-1 liblsan-16.2.1+r23+gd564253eb6c8-1
libmakepkg-dropins-20-2 libmm-glib-1.24.2-1 libmnl-1.0.5-2 libmpc-1.4.1-1 libndp-1.9-1
libnetfilter_conntrack-1.1.1-1 libnewt-0.52.25-2 libnfnetlink-1.0.2-2 libnftnl-1.3.1-1
libnghttp2-1.70.0-1 libnghttp3-1.18.0-1 libngtcp2-1.25.0-1 libnl-3.12.0-1 libnm-1.58.1-1
libnsl-2.0.1-2 libobjc-16.2.1+r23+gd564253eb6c8-1 libp11-kit-0.26.5-1 libpcap-1.10.6-1
libpgm-5.3.128-4 libpsl-0.21.5-2 libquadmath-16.2.1+r23+gd564253eb6c8-1 libsasl-2.1.28-5
libseccomp-2.6.0-1 libsecret-0.21.7-1 libsodium-1.0.22-1 libssh2-1.11.1-7
libstdc++-16.2.1+r23+gd564253eb6c8-1 libsysprof-capture-50.0-6 libtasn1-4.21.0-1 libteam-1.32-3
libtirpc-1.3.7-1 libtool-2.6.2-5 libtsan-16.2.1+r23+gd564253eb6c8-1
libubsan-16.2.1+r23+gd564253eb6c8-1 libunistring-1.4.2-1 libusb-1.0.30-1 libverto-0.3.2-6
libxcrypt-4.5.2-1 libxml2-2.15.3-1 licenses-20240728-1 linux-api-headers-7.2-1
linux-firmware-amdgpu-20260810-2 linux-firmware-atheros-20260810-2 linux-firmware-broadcom-20260810-2
linux-firmware-cirrus-20260810-2 linux-firmware-intel-20260810-2 linux-firmware-mediatek-20260810-2
linux-firmware-nvidia-20260810-2 linux-firmware-other-20260810-2 linux-firmware-radeon-20260810-2
linux-firmware-realtek-20260810-2 linux-firmware-whence-20260810-2 lmdb-0.9.35-1 lz4-1:1.10.0-2
lzo-2.10-5 m4-1.4.21-2 make-4.4.1-3 mkinitcpio-41.1-1 mkinitcpio-busybox-1.36.1-1
mobile-broadband-provider-info-20251101-1 mpdecimal-4.0.1-3 mpfr-4.2.2-1 ncurses-6.6-2 nettle-4.0-1
nftables-1:1.1.6-3 npth-1.8-1 nspr-4.40-1 nss-3.128-1 openssl-3.6.4-1 p11-kit-0.26.5-1
pacman-7.1.0.r9.g54d9411-2 pacman-mirrorlist-20260610-1 pahole-1:1.31-2 pam-1.7.2-2
pambase-20260616-1 patch-2.8-1 pciutils-3.15.0-1 pcre-8.45-5 pcre2-10.47-1 pcsclite-2.5.1-1
perl-5.42.2-2 pinentry-1.3.3-1 pkgconf-3.0.6-1 polkit-127-3 popt-1.19-2 procps-ng-4.0.7-1
psmisc-23.7-2 python-3.14.7-1 readline-8.3.003-1 sed-4.10-2 shadow-4.20.0.arch1-1 slang-2.3.3-4
source-highlight-3.1.9-19 sqlite-3.53.4-1 sudo-1.9.17.p2-6 systemd-261.2-1 systemd-libs-261.2-1
systemd-sysvcompat-261.2-1 tar-1.35-5 texinfo-7.3-1 tpm2-tss-4.2.0-2 tzdata-2026c-1
util-linux-2.42.2-1 util-linux-libs-2.42.2-1 vim-runtime-9.2.1011-1 which-2.25-1
wpa_supplicant-2:2.12-1 xxhash-0.8.3-1 xz-5.8.3-1 zeromq-4.3.5-3 zlib-1:1.3.2-3 zstd-1.5.7-3
base-3-3 base-devel-1-2 btrfs-progs-7.1-1 efibootmgr-18-4 grub-2:2.14-1 intel-ucode-20260812-1
linux-7.1.11.arch1-1 linux-firmware-20260810-2 linux-headers-7.1.11.arch1-1 networkmanager-1.58.1-1
os-prober-1.84-1 vim-9.2.1011-1
Total Download Size: 900.24 MiB
Total Installed Size: 2108.11 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
linux-7.1.11.arch1-1-x86_64 147.5 MiB 14.5 MiB/s 00:10 [#######################################################] 100%
linux-firmware-intel-20260810-2-any 127.9 MiB 7.45 MiB/s 00:17 [#######################################################] 100%
linux-firmware-atheros-20260810-2-any 51.2 MiB 5.25 MiB/s 00:10 [#######################################################] 100%
linux-firmware-mediatek-20260810-2-any 35.8 MiB 7.40 MiB/s 00:05 [#######################################################] 100%
linux-firmware-other-20260810-2-any 29.7 MiB 7.60 MiB/s 00:04 [#######################################################] 100%
linux-firmware-amdgpu-20260810-2-any 26.3 MiB 8.37 MiB/s 00:03 [#######################################################] 100%
perl-5.42.2-2-x86_64 20.5 MiB 6.85 MiB/s 00:03 [#######################################################] 100%
python-3.14.7-1-x86_64 13.5 MiB 6.32 MiB/s 00:02 [#######################################################] 100%
linux-firmware-broadcom-20260810-2-any 12.9 MiB 7.76 MiB/s 00:02 [#######################################################] 100%
intel-ucode-20260812-1-any 12.2 MiB 7.59 MiB/s 00:02 [#######################################################] 100%
icu-78.3-1-x86_64 11.7 MiB 8.34 MiB/s 00:01 [#######################################################] 100%
systemd-261.2-1-x86_64 10.4 MiB 9.09 MiB/s 00:01 [#######################################################] 100%
glibc-2.44+r24+g16be1518495f-1-x86_64 10.4 MiB 9.26 MiB/s 00:01 [#######################################################] 100%
guile-3.0.11-1-x86_64 8.4 MiB 8.44 MiB/s 00:01 [#######################################################] 100%
binutils-2.47-4-x86_64 8.2 MiB 8.96 MiB/s 00:01 [#######################################################] 100%
linux-firmware-nvidia-20260810-2-any 98.8 MiB 2.59 MiB/s 00:38 [#######################################################] 100%
vim-runtime-9.2.1011-1-x86_64 7.6 MiB 1507 KiB/s 00:05 [#######################################################] 100%
gdb-17.2-1-x86_64 8.2 MiB 1398 KiB/s 00:06 [#######################################################] 100%
linux-headers-7.1.11.arch1-1-x86_64 61.6 MiB 1503 KiB/s 00:42 [#######################################################] 100%
util-linux-2.42.2-1-x86_64 6.2 MiB 1792 KiB/s 00:04 [#######################################################] 100%
linux-firmware-realtek-20260810-2-any 7.1 MiB 1795 KiB/s 00:04 [#######################################################] 100%
boost-libs-1.92.0-1-x86_64 6.2 MiB 3.25 MiB/s 00:02 [#######################################################] 100%
openssl-3.6.4-1-x86_64 5.5 MiB 2.56 MiB/s 00:02 [#######################################################] 100%
glib2-2.88.3-1-x86_64 5.0 MiB 5.64 MiB/s 00:01 [#######################################################] 100%
networkmanager-1.58.1-1-x86_64 4.0 MiB 6.15 MiB/s 00:01 [#######################################################] 100%
grub-2:2.14-1-x86_64 7.6 MiB 1106 KiB/s 00:07 [#######################################################] 100%
coreutils-9.11-2-x86_64 2.9 MiB 4.54 MiB/s 00:01 [#######################################################] 100%
gettext-1.0-2-x86_64 3.2 MiB 3.81 MiB/s 00:01 [#######################################################] 100%
gnupg-2.4.9-3-x86_64 2.9 MiB 3.74 MiB/s 00:01 [#######################################################] 100%
linux-firmware-cirrus-20260810-2-any 2.9 MiB 6.69 MiB/s 00:00 [#######################################################] 100%
vim-9.2.1011-1-x86_64 2.5 MiB 5.27 MiB/s 00:00 [#######################################################] 100%
gcc-16.2.1+r23+gd564253eb6c8-1-x86_64 57.9 MiB 1214 KiB/s 00:49 [#######################################################] 100%
wpa_supplicant-2:2.12-1-x86_64 2.2 MiB 939 KiB/s 00:02 [#######################################################] 100%
groff-1.24.1-1-x86_64 2.4 MiB 912 KiB/s 00:03 [#######################################################] 100%
linux-firmware-radeon-20260810-2-any 2.3 MiB 852 KiB/s 00:03 [#######################################################] 100%
sqlite-3.53.4-1-x86_64 2.4 MiB 780 KiB/s 00:03 [#######################################################] 100%
texinfo-7.3-1-x86_64 2.1 MiB 6.80 MiB/s 00:00 [#######################################################] 100%
bash-5.3.15-1-x86_64 1955.1 KiB 4.73 MiB/s 00:00 [#######################################################] 100%
sudo-1.9.17.p2-6-x86_64 1900.5 KiB 3.01 MiB/s 00:01 [#######################################################] 100%
gnutls-3.8.13-2-x86_64 1827.7 KiB 2.72 MiB/s 00:01 [#######################################################] 100%
nss-3.128-1-x86_64 1769.5 KiB 3.38 MiB/s 00:01 [#######################################################] 100%
hwdata-0.410-1-any 1735.0 KiB 2.91 MiB/s 00:01 [#######################################################] 100%
pcre2-10.47-1-x86_64 1658.6 KiB 3.87 MiB/s 00:00 [#######################################################] 100%
linux-api-headers-7.2-1-x86_64 1548.2 KiB 6.46 MiB/s 00:00 [#######################################################] 100%
gawk-5.4.1-1-x86_64 1516.7 KiB 2.79 MiB/s 00:01 [#######################################################] 100%
leancrypto-1.8.0-1-x86_64 1453.0 KiB 2.52 MiB/s 00:01 [#######################################################] 100%
systemd-libs-261.2-1-x86_64 1447.9 KiB 2.56 MiB/s 00:01 [#######################################################] 100%
krb5-1.22.2-1-x86_64 1374.1 KiB 6.92 MiB/s 00:00 [#######################################################] 100%
btrfs-progs-7.1-1-x86_64 1310.8 KiB 5.38 MiB/s 00:00 [#######################################################] 100%
kbd-2.10.0-1-x86_64 1309.7 KiB 3.95 MiB/s 00:00 [#######################################################] 100%
curl-8.21.0-1-x86_64 1309.6 KiB 4.10 MiB/s 00:00 [#######################################################] 100%
db5.3-5.3.28-7-x86_64 1289.6 KiB 4.60 MiB/s 00:00 [#######################################################] 100%
e2fsprogs-1.47.4-1-x86_64 1266.4 KiB 6.51 MiB/s 00:00 [#######################################################] 100%
archlinux-keyring-20260727-1-any 1242.4 KiB 4.44 MiB/s 00:00 [#######################################################] 100%
iproute2-7.2.0-1-x86_64 1214.7 KiB 5.05 MiB/s 00:00 [#######################################################] 100%
shadow-4.20.0.arch1-1-x86_64 1203.4 KiB 3.88 MiB/s 00:00 [#######################################################] 100%
ncurses-6.6-2-x86_64 1197.9 KiB 3.23 MiB/s 00:00 [#######################################################] 100%
pcre-8.45-5-x86_64 1020.5 KiB 3.79 MiB/s 00:00 [#######################################################] 100%
tpm2-tss-4.2.0-2-x86_64 1018.2 KiB 2.47 MiB/s 00:00 [#######################################################] 100%
procps-ng-4.0.7-1-x86_64 1000.0 KiB 5.34 MiB/s 00:00 [#######################################################] 100%
pacman-7.1.0.r9.g54d9411-2-x86_64 968.5 KiB 2.73 MiB/s 00:00 [#######################################################] 100%
libisl-0.28-1-x86_64 957.9 KiB 4.35 MiB/s 00:00 [#######################################################] 100%
libnm-1.58.1-1-x86_64 931.0 KiB 2.95 MiB/s 00:00 [#######################################################] 100%
libgfortran-16.2.1+r23+gd564253eb6c8-1-x86_64 926.5 KiB 3.88 MiB/s 00:00 [#######################################################] 100%
xz-5.8.3-1-x86_64 875.3 KiB 2.25 MiB/s 00:00 [#######################################################] 100%
libstdc++-16.2.1+r23+gd564253eb6c8-1-x86_64 862.4 KiB 2.48 MiB/s 00:00 [#######################################################] 100%
cryptsetup-2.8.7-1-x86_64 848.5 KiB 2.51 MiB/s 00:00 [#######################################################] 100%
libcap-2.78-1-x86_64 834.2 KiB 4.76 MiB/s 00:00 [#######################################################] 100%
slang-2.3.3-4-x86_64 826.4 KiB 7.21 MiB/s 00:00 [#######################################################] 100%
libxml2-2.15.3-1-x86_64 771.4 KiB 2.77 MiB/s 00:00 [#######################################################] 100%
bison-3.8.2-8-x86_64 766.3 KiB 2.09 MiB/s 00:00 [#######################################################] 100%
tar-1.35-5-x86_64 765.3 KiB 4.17 MiB/s 00:00 [#######################################################] 100%
libgcrypt-1.12.3-1-x86_64 751.9 KiB 4.27 MiB/s 00:00 [#######################################################] 100%
libunistring-1.4.2-1-x86_64 728.8 KiB 2.45 MiB/s 00:00 [#######################################################] 100%
libelf-0.196-1-x86_64 716.0 KiB 1956 KiB/s 00:00 [#######################################################] 100%
source-highlight-3.1.9-19-x86_64 706.7 KiB 3.79 MiB/s 00:00 [#######################################################] 100%
elfutils-0.196-1-x86_64 694.4 KiB 1902 KiB/s 00:00 [#######################################################] 100%
autoconf-2.73-1-any 653.0 KiB 1789 KiB/s 00:00 [#######################################################] 100%
automake-1.18.1-1-any 634.5 KiB 1644 KiB/s 00:00 [#######################################################] 100%
pam-1.7.2-2-x86_64 597.0 KiB 2.87 MiB/s 00:00 [#######################################################] 100%
libarchive-3.8.9-1-x86_64 584.6 KiB 1291 KiB/s 00:00 [#######################################################] 100%
libmm-glib-1.24.2-1-x86_64 568.0 KiB 1479 KiB/s 00:00 [#######################################################] 100%
zeromq-4.3.5-3-x86_64 563.2 KiB 1467 KiB/s 00:00 [#######################################################] 100%
util-linux-libs-2.42.2-1-x86_64 526.9 KiB 1334 KiB/s 00:00 [#######################################################] 100%
findutils-4.11.0-1-x86_64 526.5 KiB 1454 KiB/s 00:00 [#######################################################] 100%
libasan-16.2.1+r23+gd564253eb6c8-1-x86_64 521.0 KiB 1165 KiB/s 00:00 [#######################################################] 100%
libp11-kit-0.26.5-1-x86_64 521.0 KiB 1725 KiB/s 00:00 [#######################################################] 100%
make-4.4.1-3-x86_64 517.2 KiB 1326 KiB/s 00:00 [#######################################################] 100%
zstd-1.5.7-3-x86_64 515.0 KiB 1689 KiB/s 00:00 [#######################################################] 100%
libtsan-16.2.1+r23+gd564253eb6c8-1-x86_64 461.1 KiB 1337 KiB/s 00:00 [#######################################################] 100%
nettle-4.0-1-x86_64 457.9 KiB 2.20 MiB/s 00:00 [#######################################################] 100%
file-5.48-1-x86_64 453.1 KiB 2.18 MiB/s 00:00 [#######################################################] 100%
gmp-6.3.0-3-x86_64 442.7 KiB 2012 KiB/s 00:00 [#######################################################] 100%
mpfr-4.2.2-1-x86_64 436.8 KiB 1636 KiB/s 00:00 [#######################################################] 100%
nftables-1:1.1.6-3-x86_64 434.2 KiB 1220 KiB/s 00:00 [#######################################################] 100%
libtool-2.6.2-5-x86_64 429.1 KiB 1380 KiB/s 00:00 [#######################################################] 100%
libnl-3.12.0-1-x86_64 424.5 KiB 1878 KiB/s 00:00 [#######################################################] 100%
iptables-1:1.8.13-1-x86_64 421.1 KiB 1320 KiB/s 00:00 [#######################################################] 100%
polkit-127-3-x86_64 413.8 KiB 1339 KiB/s 00:00 [#######################################################] 100%
readline-8.3.003-1-x86_64 409.7 KiB 2.17 MiB/s 00:00 [#######################################################] 100%
audit-4.2.1-1-x86_64 405.0 KiB 1171 KiB/s 00:00 [#######################################################] 100%
iana-etc-20260617-1-any 401.8 KiB 1376 KiB/s 00:00 [#######################################################] 100%
brotli-1.2.0-1-x86_64 397.6 KiB 1066 KiB/s 00:00 [#######################################################] 100%
ca-certificates-mozilla-3.128-1-x86_64 382.4 KiB 1202 KiB/s 00:00 [#######################################################] 100%
dbus-1.16.2-1-x86_64 346.1 KiB 1467 KiB/s 00:00 [#######################################################] 100%
diffutils-3.12-2-x86_64 341.9 KiB 1092 KiB/s 00:00 [#######################################################] 100%
gpgme-2.1.2-1-x86_64 331.4 KiB 2.07 MiB/s 00:00 [#######################################################] 100%
pahole-1:1.31-2-x86_64 330.7 KiB 1050 KiB/s 00:00 [#######################################################] 100%
device-mapper-2.03.42-1-x86_64 314.5 KiB 1021 KiB/s 00:00 [#######################################################] 100%
tzdata-2026c-1-x86_64 304.9 KiB 1509 KiB/s 00:00 [#######################################################] 100%
flex-2.6.4-6-x86_64 294.8 KiB 1072 KiB/s 00:00 [#######################################################] 100%
libpcap-1.10.6-1-x86_64 293.1 KiB 1480 KiB/s 00:00 [#######################################################] 100%
libevent-2.1.13-2-x86_64 291.4 KiB 1075 KiB/s 00:00 [#######################################################] 100%
libldap-2.6.13-1-x86_64 282.4 KiB 1947 KiB/s 00:00 [#######################################################] 100%
mkinitcpio-busybox-1.36.1-1-x86_64 277.5 KiB 1217 KiB/s 00:00 [#######################################################] 100%
libgpg-error-1.61-1-x86_64 276.0 KiB 1221 KiB/s 00:00 [#######################################################] 100%
libhwasan-16.2.1+r23+gd564253eb6c8-1-x86_64 275.1 KiB 1292 KiB/s 00:00 [#######################################################] 100%
m4-1.4.21-2-x86_64 274.5 KiB 1946 KiB/s 00:00 [#######################################################] 100%
libbpf-1.7.0-1-x86_64 267.5 KiB 1262 KiB/s 00:00 [#######################################################] 100%
libssh2-1.11.1-7-x86_64 259.6 KiB 1766 KiB/s 00:00 [#######################################################] 100%
psmisc-23.7-2-x86_64 257.8 KiB 1632 KiB/s 00:00 [#######################################################] 100%
p11-kit-0.26.5-1-x86_64 255.5 KiB 1156 KiB/s 00:00 [#######################################################] 100%
gdbm-1.26-2-x86_64 254.3 KiB 997 KiB/s 00:00 [#######################################################] 100%
grep-3.12-2-x86_64 235.6 KiB 970 KiB/s 00:00 [#######################################################] 100%
gc-8.2.12-1-x86_64 235.6 KiB 1346 KiB/s 00:00 [#######################################################] 100%
libgomp-16.2.1+r23+gd564253eb6c8-1-x86_64 230.9 KiB 1160 KiB/s 00:00 [#######################################################] 100%
cpio-2.15-3-x86_64 229.5 KiB 717 KiB/s 00:00 [#######################################################] 100%
liblsan-16.2.1+r23+gd564253eb6c8-1-x86_64 228.3 KiB 1283 KiB/s 00:00 [#######################################################] 100%
libngtcp2-1.25.0-1-x86_64 222.5 KiB 1250 KiB/s 00:00 [#######################################################] 100%
libsodium-1.0.22-1-x86_64 217.0 KiB 1219 KiB/s 00:00 [#######################################################] 100%
sed-4.10-2-x86_64 215.6 KiB 1022 KiB/s 00:00 [#######################################################] 100%
libubsan-16.2.1+r23+gd564253eb6c8-1-x86_64 206.5 KiB 1395 KiB/s 00:00 [#######################################################] 100%
nspr-4.40-1-x86_64 201.7 KiB 1102 KiB/s 00:00 [#######################################################] 100%
libsecret-0.21.7-1-x86_64 188.2 KiB 713 KiB/s 00:00 [#######################################################] 100%
libpgm-5.3.128-4-x86_64 177.6 KiB 884 KiB/s 00:00 [#######################################################] 100%
duktape-2.7.0-7-x86_64 176.2 KiB 943 KiB/s 00:00 [#######################################################] 100%
libtirpc-1.3.7-1-x86_64 172.3 KiB 611 KiB/s 00:00 [#######################################################] 100%
pinentry-1.3.3-1-x86_64 168.2 KiB 924 KiB/s 00:00 [#######################################################] 100%
libquadmath-16.2.1+r23+gd564253eb6c8-1-x86_64 166.5 KiB 599 KiB/s 00:00 [#######################################################] 100%
lz4-1:1.10.0-2-x86_64 156.3 KiB 925 KiB/s 00:00 [#######################################################] 100%
libksba-1.8.1-1-x86_64 151.3 KiB 728 KiB/s 00:00 [#######################################################] 100%
pciutils-3.15.0-1-x86_64 150.1 KiB 944 KiB/s 00:00 [#######################################################] 100%
acl-2.4.0-1-x86_64 147.3 KiB 691 KiB/s 00:00 [#######################################################] 100%
dbus-broker-37-3-x86_64 146.6 KiB 1025 KiB/s 00:00 [#######################################################] 100%
libsasl-2.1.28-5-x86_64 146.6 KiB 733 KiB/s 00:00 [#######################################################] 100%
efivar-39-2-x86_64 145.5 KiB 827 KiB/s 00:00 [#######################################################] 100%
iputils-20250605-1-x86_64 139.7 KiB 751 KiB/s 00:00 [#######################################################] 100%
gpm-1.20.7.r38.ge82d1a6-6-x86_64 135.7 KiB 696 KiB/s 00:00 [#######################################################] 100%
libtasn1-4.21.0-1-x86_64 133.0 KiB 751 KiB/s 00:00 [#######################################################] 100%
libidn2-2.3.8-1-x86_64 132.2 KiB 681 KiB/s 00:00 [#######################################################] 100%
kmod-34.2-1-x86_64 130.3 KiB 766 KiB/s 00:00 [#######################################################] 100%
expat-2.8.3-1-x86_64 129.7 KiB 697 KiB/s 00:00 [#######################################################] 100%
gnulib-l10n-20241231-1-any 124.0 KiB 674 KiB/s 00:00 [#######################################################] 100%
pkgconf-3.0.6-1-x86_64 121.6 KiB 475 KiB/s 00:00 [#######################################################] 100%
gdb-common-17.2-1-x86_64 120.4 KiB 495 KiB/s 00:00 [#######################################################] 100%
lmdb-0.9.35-1-x86_64 112.9 KiB 627 KiB/s 00:00 [#######################################################] 100%
libassuan-3.0.0-1-x86_64 112.2 KiB 362 KiB/s 00:00 [#######################################################] 100%
libteam-1.32-3-x86_64 109.8 KiB 242 KiB/s 00:00 [#######################################################] 100%
licenses-20240728-1-any 105.7 KiB 312 KiB/s 00:00 [#######################################################] 100%
pcsclite-2.5.1-1-x86_64 104.1 KiB 370 KiB/s 00:00 [#######################################################] 100%
mpdecimal-4.0.1-3-x86_64 103.2 KiB 1002 KiB/s 00:00 [#######################################################] 100%
keyutils-1.6.3-4-x86_64 102.3 KiB 578 KiB/s 00:00 [#######################################################] 100%
libnghttp2-1.70.0-1-x86_64 99.2 KiB 418 KiB/s 00:00 [#######################################################] 100%
xxhash-0.8.3-1-x86_64 98.0 KiB 414 KiB/s 00:00 [#######################################################] 100%
libseccomp-2.6.0-1-x86_64 95.3 KiB 330 KiB/s 00:00 [#######################################################] 100%
libnewt-0.52.25-2-x86_64 93.7 KiB 674 KiB/s 00:00 [#######################################################] 100%
jansson-2.15.1-1-x86_64 92.3 KiB 383 KiB/s 00:00 [#######################################################] 100%
libxcrypt-4.5.2-1-x86_64 92.0 KiB 598 KiB/s 00:00 [#######################################################] 100%
libmpc-1.4.1-1-x86_64 91.9 KiB 433 KiB/s 00:00 [#######################################################] 100%
lzo-2.10-5-x86_64 87.8 KiB 593 KiB/s 00:00 [#######################################################] 100%
libpsl-0.21.5-2-x86_64 86.8 KiB 447 KiB/s 00:00 [#######################################################] 100%
gzip-1.14-2-x86_64 86.7 KiB 586 KiB/s 00:00 [#######################################################] 100%
patch-2.8-1-x86_64 85.2 KiB 613 KiB/s 00:00 [#######################################################] 100%
libnghttp3-1.18.0-1-x86_64 83.0 KiB 585 KiB/s 00:00 [#######################################################] 100%
zlib-1:1.3.2-3-x86_64 82.7 KiB 684 KiB/s 00:00 [#######################################################] 100%
libusb-1.0.30-1-x86_64 80.5 KiB 544 KiB/s 00:00 [#######################################################] 100%
libgcc-16.2.1+r23+gd564253eb6c8-1-x86_64 80.0 KiB 597 KiB/s 00:00 [#######################################################] 100%
fakeroot-1:1.37.2-3-x86_64 77.4 KiB 569 KiB/s 00:00 [#######################################################] 100%
popt-1.19-2-x86_64 76.3 KiB 631 KiB/s 00:00 [#######################################################] 100%
libnftnl-1.3.1-1-x86_64 73.2 KiB 543 KiB/s 00:00 [#######################################################] 100%
attr-2.6.0-1-x86_64 72.5 KiB 566 KiB/s 00:00 [#######################################################] 100%
libcap-ng-0.9.5-1-x86_64 71.0 KiB 358 KiB/s 00:00 [#######################################################] 100%
mkinitcpio-41.1-1-any 68.2 KiB 491 KiB/s 00:00 [#######################################################] 100%
json-c-0.19-1-x86_64 63.5 KiB 525 KiB/s 00:00 [#######################################################] 100%
mobile-broadband-provider-info-20251101-1-any 63.2 KiB 316 KiB/s 00:00 [#######################################################] 100%
bzip2-1.0.8-6-x86_64 58.4 KiB 304 KiB/s 00:00 [#######################################################] 100%
libffi-3.8.0-1-x86_64 55.5 KiB 475 KiB/s 00:00 [#######################################################] 100%
libsysprof-capture-50.0-6-x86_64 51.9 KiB 279 KiB/s 00:00 [#######################################################] 100%
debugedit-5.3-2-x86_64 51.6 KiB 369 KiB/s 00:00 [#######################################################] 100%
libnetfilter_conntrack-1.1.1-1-x86_64 50.8 KiB 413 KiB/s 00:00 [#######################################################] 100%
linux-firmware-whence-20260810-2-any 44.3 KiB 310 KiB/s 00:00 [#######################################################] 100%
libobjc-16.2.1+r23+gd564253eb6c8-1-x86_64 37.6 KiB 287 KiB/s 00:00 [#######################################################] 100%
efibootmgr-18-4-x86_64 30.7 KiB 216 KiB/s 00:00 [#######################################################] 100%
npth-1.8-1-x86_64 28.2 KiB 142 KiB/s 00:00 [#######################################################] 100%
libnsl-2.0.1-2-x86_64 22.1 KiB 165 KiB/s 00:00 [#######################################################] 100%
libndp-1.9-1-x86_64 19.5 KiB 102 KiB/s 00:00 [#######################################################] 100%
libdaemon-0.14-6-x86_64 19.2 KiB 173 KiB/s 00:00 [#######################################################] 100%
libverto-0.3.2-6-x86_64 18.7 KiB 110 KiB/s 00:00 [#######################################################] 100%
os-prober-1.84-1-x86_64 17.3 KiB 101 KiB/s 00:00 [#######################################################] 100%
libnfnetlink-1.0.2-2-x86_64 17.0 KiB 100 KiB/s 00:00 [#######################################################] 100%
which-2.25-1-x86_64 16.4 KiB 93.7 KiB/s 00:00 [#######################################################] 100%
filesystem-2025.10.12-1-any 15.1 KiB 102 KiB/s 00:00 [#######################################################] 100%
libatomic-16.2.1+r23+gd564253eb6c8-1-x86_64 14.0 KiB 87.7 KiB/s 00:00 [#######################################################] 100%
libmnl-1.0.5-2-x86_64 11.2 KiB 106 KiB/s 00:00 [#######################################################] 100%
ca-certificates-utils-20240618-1-any 10.8 KiB 73.1 KiB/s 00:00 [#######################################################] 100%
systemd-sysvcompat-261.2-1-x86_64 6.6 KiB 55.1 KiB/s 00:00 [#######################################################] 100%
pacman-mirrorlist-20260610-1-any 6.5 KiB 54.4 KiB/s 00:00 [#######################################################] 100%
libmakepkg-dropins-20-2-any 6.2 KiB 41.2 KiB/s 00:00 [#######################################################] 100%
pambase-20260616-1-any 3.3 KiB 18.9 KiB/s 00:00 [#######################################################] 100%
gcc-libs-16.2.1+r23+gd564253eb6c8-1-x86_64 2.7 KiB 22.0 KiB/s 00:00 [#######################################################] 100%
linux-firmware-20260810-2-any 2.5 KiB 13.8 KiB/s 00:00 [#######################################################] 100%
dbus-broker-units-37-3-x86_64 2.5 KiB 12.8 KiB/s 00:00 [#######################################################] 100%
base-3-3-any 2.3 KiB 18.1 KiB/s 00:00 [#######################################################] 100%
dbus-units-37-3-x86_64 2.2 KiB 13.6 KiB/s 00:00 [#######################################################] 100%
ca-certificates-20240618-1-any 2.1 KiB 9.79 KiB/s 00:00 [#######################################################] 100%
base-devel-1-2-any 2.1 KiB 12.6 KiB/s 00:00 [#######################################################] 100%
Total (216/216) 900.2 MiB 13.9 MiB/s 01:05 [#######################################################] 100%
(216/216) checking keys in keyring [#######################################################] 100%
(216/216) checking package integrity [#######################################################] 100%
(216/216) loading package files [#######################################################] 100%
(216/216) checking for file conflicts [#######################################################] 100%
(216/216) checking available disk space [#######################################################] 100%
:: Processing package changes...
( 1/216) installing iana-etc [#######################################################] 100%
( 2/216) installing filesystem [#######################################################] 100%
( 3/216) installing linux-api-headers [#######################################################] 100%
( 4/216) installing tzdata [#######################################################] 100%
Optional dependencies for tzdata
bash: for tzselect [pending]
glibc: for zdump, zic [pending]
( 5/216) installing glibc [#######################################################] 100%
Optional dependencies for glibc
gd: for memusagestat
perl: for mtrace [pending]
( 6/216) installing libgcc [#######################################################] 100%
( 7/216) installing libstdc++ [#######################################################] 100%
( 8/216) installing libasan [#######################################################] 100%
( 9/216) installing libatomic [#######################################################] 100%
( 10/216) installing libgfortran [#######################################################] 100%
( 11/216) installing libgomp [#######################################################] 100%
( 12/216) installing libhwasan [#######################################################] 100%
( 13/216) installing liblsan [#######################################################] 100%
( 14/216) installing libobjc [#######################################################] 100%
( 15/216) installing libquadmath [#######################################################] 100%
( 16/216) installing libtsan [#######################################################] 100%
( 17/216) installing libubsan [#######################################################] 100%
( 18/216) installing gcc-libs [#######################################################] 100%
( 19/216) installing ncurses [#######################################################] 100%
Optional dependencies for ncurses
bash: for ncursesw6-config [pending]
( 20/216) installing readline [#######################################################] 100%
( 21/216) installing bash [#######################################################] 100%
Optional dependencies for bash
bash-completion: for tab completion
( 22/216) installing acl [#######################################################] 100%
( 23/216) installing attr [#######################################################] 100%
( 24/216) installing gmp [#######################################################] 100%
( 25/216) installing zlib [#######################################################] 100%
( 26/216) installing sqlite [#######################################################] 100%
( 27/216) installing util-linux-libs [#######################################################] 100%
Optional dependencies for util-linux-libs
python: python bindings to libmount [pending]
( 28/216) installing e2fsprogs [#######################################################] 100%
Optional dependencies for e2fsprogs
lvm2: for e2scrub
util-linux: for e2scrub [pending]
smtp-forwarder: for e2scrub_fail script
( 29/216) installing keyutils [#######################################################] 100%
( 30/216) installing gdbm [#######################################################] 100%
( 31/216) installing brotli [#######################################################] 100%
( 32/216) installing xz [#######################################################] 100%
( 33/216) installing lz4 [#######################################################] 100%
( 34/216) installing zstd [#######################################################] 100%
( 35/216) installing openssl [#######################################################] 100%
Optional dependencies for openssl
ca-certificates [pending]
perl [pending]
( 36/216) installing libsasl [#######################################################] 100%
( 37/216) installing libldap [#######################################################] 100%
( 38/216) installing libevent [#######################################################] 100%
Optional dependencies for libevent
python: event_rpcgen.py [pending]
( 39/216) installing libverto [#######################################################] 100%
( 40/216) installing lmdb [#######################################################] 100%
( 41/216) installing krb5 [#######################################################] 100%
( 42/216) installing libcap-ng [#######################################################] 100%
( 43/216) installing audit [#######################################################] 100%
Optional dependencies for audit
audispd-plugins: for audit event dispatcher plugins
audispd-plugins-zos: for z/OS audit event dispatcher plugin
( 44/216) installing libxcrypt [#######################################################] 100%
( 45/216) installing libtirpc [#######################################################] 100%
( 46/216) installing libnsl [#######################################################] 100%
( 47/216) installing pambase [#######################################################] 100%
( 48/216) installing libgpg-error [#######################################################] 100%
( 49/216) installing libgcrypt [#######################################################] 100%
( 50/216) installing systemd-libs [#######################################################] 100%
( 51/216) installing pam [#######################################################] 100%
( 52/216) installing libcap [#######################################################] 100%
( 53/216) installing coreutils [#######################################################] 100%
( 54/216) installing bzip2 [#######################################################] 100%
( 55/216) installing libseccomp [#######################################################] 100%
( 56/216) installing file [#######################################################] 100%
( 57/216) installing findutils [#######################################################] 100%
( 58/216) installing mpfr [#######################################################] 100%
( 59/216) installing gawk [#######################################################] 100%
( 60/216) installing pcre2 [#######################################################] 100%
Optional dependencies for pcre2
sh: for pcre2-config [installed]
( 61/216) installing grep [#######################################################] 100%
( 62/216) installing procps-ng [#######################################################] 100%
( 63/216) installing sed [#######################################################] 100%
( 64/216) installing tar [#######################################################] 100%
( 65/216) installing libtasn1 [#######################################################] 100%
( 66/216) installing libffi [#######################################################] 100%
( 67/216) installing libp11-kit [#######################################################] 100%
( 68/216) installing p11-kit [#######################################################] 100%
( 69/216) installing ca-certificates-utils [#######################################################] 100%
( 70/216) installing ca-certificates-mozilla [#######################################################] 100%
( 71/216) installing ca-certificates [#######################################################] 100%
( 72/216) installing libunistring [#######################################################] 100%
( 73/216) installing libidn2 [#######################################################] 100%
( 74/216) installing libnghttp2 [#######################################################] 100%
( 75/216) installing libnghttp3 [#######################################################] 100%
( 76/216) installing nettle [#######################################################] 100%
( 77/216) installing leancrypto [#######################################################] 100%
( 78/216) installing gnutls [#######################################################] 100%
Optional dependencies for gnutls
tpm2-tss: support for TPM2 wrapped keys [pending]
( 79/216) installing libngtcp2 [#######################################################] 100%
( 80/216) installing libpsl [#######################################################] 100%
( 81/216) installing libssh2 [#######################################################] 100%
( 82/216) installing curl [#######################################################] 100%
( 83/216) installing json-c [#######################################################] 100%
( 84/216) installing gnulib-l10n [#######################################################] 100%
( 85/216) installing icu [#######################################################] 100%
( 86/216) installing libxml2 [#######################################################] 100%
Optional dependencies for libxml2
python: Python bindings [pending]
( 87/216) installing gettext [#######################################################] 100%
Optional dependencies for gettext
git: for autopoint infrastructure updates
appstream: for appstream support
( 88/216) installing hwdata [#######################################################] 100%
( 89/216) installing kmod [#######################################################] 100%
( 90/216) installing pciutils [#######################################################] 100%
Optional dependencies for pciutils
which: for update-pciids [pending]
grep: for update-pciids [installed]
curl: for update-pciids [installed]
( 91/216) installing psmisc [#######################################################] 100%
( 92/216) installing shadow [#######################################################] 100%
( 93/216) installing util-linux [#######################################################] 100%
Optional dependencies for util-linux
words: default dictionary for look
( 94/216) installing gzip [#######################################################] 100%
Optional dependencies for gzip
less: zless support
util-linux: zmore support [installed]
diffutils: zdiff/zcmp support [pending]
( 95/216) installing licenses [#######################################################] 100%
( 96/216) installing libksba [#######################################################] 100%
( 97/216) installing libusb [#######################################################] 100%
( 98/216) installing libassuan [#######################################################] 100%
( 99/216) installing libsysprof-capture [#######################################################] 100%
(100/216) installing glib2 [#######################################################] 100%
Optional dependencies for glib2
dconf: GSettings storage backend
glib2-devel: development tools
gvfs: most gio functionality
(101/216) installing tpm2-tss [#######################################################] 100%
(102/216) installing libsecret [#######################################################] 100%
Optional dependencies for libsecret
org.freedesktop.secrets: secret storage backend
(103/216) installing pinentry [#######################################################] 100%
Optional dependencies for pinentry
gcr: GNOME backend
gtk3: GTK backend
kguiaddons: Qt6 backend
kwindowsystem: Qt6 backend
(104/216) installing npth [#######################################################] 100%
(105/216) installing gnupg [#######################################################] 100%
Optional dependencies for gnupg
pcsclite: for using scdaemon not with the gnupg internal card driver [pending]
(106/216) installing gpgme [#######################################################] 100%
(107/216) installing libarchive [#######################################################] 100%
(108/216) installing pacman-mirrorlist [#######################################################] 100%
(109/216) installing device-mapper [#######################################################] 100%
(110/216) installing popt [#######################################################] 100%
(111/216) installing cryptsetup [#######################################################] 100%
(112/216) installing expat [#######################################################] 100%
(113/216) installing dbus [#######################################################] 100%
(114/216) installing dbus-broker [#######################################################] 100%
(115/216) installing dbus-broker-units [#######################################################] 100%
(116/216) installing dbus-units [#######################################################] 100%
(117/216) installing kbd [#######################################################] 100%
(118/216) installing libelf [#######################################################] 100%
(119/216) installing systemd [#######################################################] 100%
Initializing machine ID from random generator.
Creating group 'sys' with GID 3.
Creating group 'mem' with GID 8.
Creating group 'ftp' with GID 11.
Creating group 'mail' with GID 12.
Creating group 'log' with GID 19.
Creating group 'smmsp' with GID 25.
Creating group 'proc' with GID 26.
Creating group 'games' with GID 50.
Creating group 'lock' with GID 54.
Creating group 'network' with GID 90.
Creating group 'floppy' with GID 94.
Creating group 'scanner' with GID 96.
Creating group 'power' with GID 98.
Creating group 'nobody' with GID 65534.
Creating group 'adm' with GID 999.
Creating group 'wheel' with GID 998.
Creating group 'empower' with GID 997.
Creating group 'utmp' with GID 996.
Creating group 'audio' with GID 995.
Creating group 'clock' with GID 994.
Creating group 'disk' with GID 993.
Creating group 'input' with GID 992.
Creating group 'kmem' with GID 991.
Creating group 'kvm' with GID 990.
Creating group 'lp' with GID 989.
Creating group 'optical' with GID 988.
Creating group 'render' with GID 987.
Creating group 'sgx' with GID 986.
Creating group 'storage' with GID 985.
Creating group 'tty' with GID 5.
Creating group 'uucp' with GID 984.
Creating group 'video' with GID 983.
Creating group 'users' with GID 982.
Creating group 'systemd-journal' with GID 981.
Creating group 'rfkill' with GID 980.
Creating group 'bin' with GID 1.
Creating user 'bin' (n/a) with UID 1 and GID 1.
Creating group 'daemon' with GID 2.
Creating user 'daemon' (n/a) with UID 2 and GID 2.
Creating user 'mail' (n/a) with UID 8 and GID 12.
Creating user 'ftp' (n/a) with UID 14 and GID 11.
Creating group 'http' with GID 33.
Creating user 'http' (n/a) with UID 33 and GID 33.
Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534.
Creating group 'dbus' with GID 81.
Creating user 'dbus' (System Message Bus) with UID 81 and GID 81.
Creating group 'systemd-coredump' with GID 979.
Creating user 'systemd-coredump' (systemd Core Dumper) with UID 979 and GID 979.
Creating group 'systemd-imds' with GID 978.
Creating user 'systemd-imds' (systemd Instance Metadata) with UID 978 and GID 978.
Creating group 'systemd-network' with GID 977.
Creating user 'systemd-network' (systemd Network Management) with UID 977 and GID 977.
Creating group 'systemd-oom' with GID 976.
Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 976 and GID 976.
Creating group 'systemd-journal-remote' with GID 975.
Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 975 and GID 975.
Creating group 'systemd-resolve' with GID 974.
Creating user 'systemd-resolve' (systemd Resolver) with UID 974 and GID 974.
Creating group 'systemd-timesync' with GID 973.
Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 973 and GID 973.
Creating group 'tss' with GID 972.
Creating user 'tss' (tss user for tpm2) with UID 972 and GID 972.
Creating group 'uuidd' with GID 971.
Creating user 'uuidd' (UUID generator helper daemon) with UID 971 and GID 971.
Created symlink '/etc/systemd/system/autovt@.service' → '/usr/lib/systemd/system/getty@.service'.
Created symlink '/etc/systemd/system/getty.target.wants/getty@tty1.service' → '/usr/lib/systemd/system/getty@.service'.
Created symlink '/etc/systemd/system/multi-user.target.wants/remote-fs.target' → '/usr/lib/systemd/system/remote-fs.target'.
Created symlink '/etc/systemd/system/sockets.target.wants/systemd-userdbd.socket' → '/usr/lib/systemd/system/systemd-userdbd.socket'.
Optional dependencies for systemd
apparmor: additional security features
curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed]
gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed]
iptables: firewall features [pending]
libarchive: convert DDIs to tarballs [installed]
libbpf: support BPF programs [pending]
libfido2: unlocking LUKS2 volumes with FIDO2 token
libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote
libp11-kit: support PKCS#11 [installed]
libpwquality: check password quality
polkit: allow administration as unprivileged user [pending]
qemu-base: systemd-vmspawn
qrencode: show QR codes
quota-tools: kernel-level quota management
systemd-sysvcompat: symlink package to provide sysvinit binaries [pending]
systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image
tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed]
(120/216) installing jansson [#######################################################] 100%
(121/216) installing binutils [#######################################################] 100%
Optional dependencies for binutils
debuginfod: for debuginfod server/client functionality
perl: for gprofng-display-html [pending]
(122/216) installing libmakepkg-dropins [#######################################################] 100%
(123/216) installing pacman [#######################################################] 100%
Optional dependencies for pacman
base-devel: required to use makepkg [pending]
perl-locale-gettext: translation support in makepkg-template
(124/216) installing archlinux-keyring [#######################################################] 100%
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
-> Locally signed 5 keys.
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
-> Disabled 38 keys.
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 5 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 5 signed: 88 trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2 valid: 77 signed: 18 trust: 77-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2026-10-21
(125/216) installing systemd-sysvcompat [#######################################################] 100%
(126/216) installing iputils [#######################################################] 100%
(127/216) installing libmnl [#######################################################] 100%
(128/216) installing libnfnetlink [#######################################################] 100%
(129/216) installing libnetfilter_conntrack [#######################################################] 100%
(130/216) installing libnftnl [#######################################################] 100%
(131/216) installing libnl [#######################################################] 100%
(132/216) installing libpcap [#######################################################] 100%
(133/216) installing nftables [#######################################################] 100%
Optional dependencies for nftables
python: Python bindings [pending]
python-jsonschema: Python bindings
(134/216) installing iptables [#######################################################] 100%
(135/216) installing libbpf [#######################################################] 100%
(136/216) installing iproute2 [#######################################################] 100%
Optional dependencies for iproute2
db: userspace arp daemon
linux-atm: ATM support
python: for routel [pending]
(137/216) installing base [#######################################################] 100%
Optional dependencies for base
linux: bare metal support [pending]
(138/216) installing m4 [#######################################################] 100%
(139/216) installing diffutils [#######################################################] 100%
(140/216) installing db5.3 [#######################################################] 100%
(141/216) installing perl [#######################################################] 100%
(142/216) installing autoconf [#######################################################] 100%
(143/216) installing automake [#######################################################] 100%
(144/216) installing bison [#######################################################] 100%
(145/216) installing xxhash [#######################################################] 100%
(146/216) installing cpio [#######################################################] 100%
(147/216) installing elfutils [#######################################################] 100%
(148/216) installing boost-libs [#######################################################] 100%
Optional dependencies for boost-libs
openmpi: for mpi support
(149/216) installing mpdecimal [#######################################################] 100%
(150/216) installing python [#######################################################] 100%
Optional dependencies for python
python-setuptools: for building Python packages using tooling that is usually bundled with Python
python-pip: for installing Python packages using tooling that is usually bundled with Python
python-pipx: for installing Python software not packaged on Arch Linux
sqlite: for a default database integration [installed]
xz: for lzma [installed]
tk: for tkinter
(151/216) installing gc [#######################################################] 100%
(152/216) installing guile [#######################################################] 100%
(153/216) installing gdb-common [#######################################################] 100%
(154/216) installing source-highlight [#######################################################] 100%
Optional dependencies for source-highlight
lesspipe: src-hilite-lesspipe.sh
(155/216) installing gdb [#######################################################] 100%
(156/216) installing debugedit [#######################################################] 100%
(157/216) installing fakeroot [#######################################################] 100%
(158/216) installing flex [#######################################################] 100%
(159/216) installing libisl [#######################################################] 100%
(160/216) installing libmpc [#######################################################] 100%
(161/216) installing gcc [#######################################################] 100%
Optional dependencies for gcc
lib32-gcc-libs: for generating code for 32-bit ABI
(162/216) installing groff [#######################################################] 100%
Optional dependencies for groff
netpbm: for use together with man -H command interaction in browsers
psutils: for use together with man -H command interaction in browsers
libxaw: for gxditview
perl-file-homedir: for use with glilypond
(163/216) installing libtool [#######################################################] 100%
(164/216) installing make [#######################################################] 100%
(165/216) installing patch [#######################################################] 100%
Optional dependencies for patch
ed: for patch -e functionality
(166/216) installing pkgconf [#######################################################] 100%
(167/216) installing sudo [#######################################################] 100%
(168/216) installing texinfo [#######################################################] 100%
Optional dependencies for texinfo
perl-archive-zip: EPUB file output via texi2any
(169/216) installing which [#######################################################] 100%
(170/216) installing base-devel [#######################################################] 100%
(171/216) installing mkinitcpio-busybox [#######################################################] 100%
(172/216) installing mkinitcpio [#######################################################] 100%
Optional dependencies for mkinitcpio
xz: Use lzma or xz compression for the initramfs image [installed]
bzip2: Use bzip2 compression for the initramfs image [installed]
lzop: Use lzo compression for the initramfs image
lz4: Use lz4 compression for the initramfs image [installed]
mkinitcpio-nfs-utils: Support for root filesystem on NFS
systemd-ukify: alternative UKI generator
(173/216) installing linux [#######################################################] 100%
Optional dependencies for linux
linux-headers: headers and scripts for building modules [pending]
linux-firmware: firmware images needed for some devices [pending]
scx-scheds: to use sched-ext schedulers
wireless-regdb: to set the correct wireless channels of your country
(174/216) installing pahole [#######################################################] 100%
Optional dependencies for pahole
ostra-cg: Generate call graphs from encoded traces
(175/216) installing linux-headers [#######################################################] 100%
(176/216) installing linux-firmware-whence [#######################################################] 100%
(177/216) installing linux-firmware-amdgpu [#######################################################] 100%
(178/216) installing linux-firmware-atheros [#######################################################] 100%
(179/216) installing linux-firmware-broadcom [#######################################################] 100%
(180/216) installing linux-firmware-cirrus [#######################################################] 100%
(181/216) installing linux-firmware-intel [#######################################################] 100%
(182/216) installing linux-firmware-mediatek [#######################################################] 100%
(183/216) installing linux-firmware-nvidia [#######################################################] 100%
(184/216) installing linux-firmware-other [#######################################################] 100%
(185/216) installing linux-firmware-radeon [#######################################################] 100%
(186/216) installing linux-firmware-realtek [#######################################################] 100%
(187/216) installing linux-firmware [#######################################################] 100%
Optional dependencies for linux-firmware
linux-firmware-liquidio: Firmware for Cavium LiquidIO server adapters
linux-firmware-marvell: Firmware for Marvell devices
linux-firmware-mellanox: Firmware for Mellanox Spectrum switches
linux-firmware-nfp: Firmware for Netronome Flow Processors
linux-firmware-qcom: Firmware for Qualcomm SoCs
linux-firmware-qlogic: Firmware for QLogic devices
(188/216) installing intel-ucode [#######################################################] 100%
(189/216) installing vim-runtime [#######################################################] 100%
Optional dependencies for vim-runtime
sh: support for some tools and macros [installed]
python: demoserver example tool [installed]
gawk: mve tools support [installed]
(190/216) installing gpm [#######################################################] 100%
(191/216) installing vim [#######################################################] 100%
Optional dependencies for vim
python: Python language support [installed]
ruby: Ruby language support
lua: Lua language support
perl: Perl language support [installed]
tcl: Tcl language support
(192/216) installing grub [#######################################################] 100%
:: Install your bootloader and generate configuration with:
# grub-install ...
# grub-mkconfig -o /boot/grub/grub.cfg
Optional dependencies for grub
dosfstools: For grub-mkrescue FAT FS and EFI support
efibootmgr: For grub-install EFI support [pending]
freetype2: For grub-mkfont usage
fuse3: For grub-mount usage
libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue
libusb: For grub-emu USB support [installed]
lzop: For grub-mkrescue LZO support
mtools: For grub-mkrescue FAT FS support
os-prober: To detect other OSes when generating grub.cfg in BIOS systems [pending]
sdl: For grub-emu SDL support
(193/216) installing efivar [#######################################################] 100%
(194/216) installing efibootmgr [#######################################################] 100%
(195/216) installing os-prober [#######################################################] 100%
(196/216) installing libmm-glib [#######################################################] 100%
(197/216) installing libndp [#######################################################] 100%
(198/216) installing pcre [#######################################################] 100%
(199/216) installing slang [#######################################################] 100%
(200/216) installing libnewt [#######################################################] 100%
Optional dependencies for libnewt
python: libnewt support with the _snack module [installed]
tcl: whiptcl support
(201/216) installing nspr [#######################################################] 100%
(202/216) installing nss [#######################################################] 100%
(203/216) installing libnm [#######################################################] 100%
(204/216) installing libdaemon [#######################################################] 100%
(205/216) installing libsodium [#######################################################] 100%
(206/216) installing libpgm [#######################################################] 100%
(207/216) installing zeromq [#######################################################] 100%
Optional dependencies for zeromq
cppzmq: C++ binding for libzmq
(208/216) installing libteam [#######################################################] 100%
(209/216) installing mobile-broadband-provider-info [#######################################################] 100%
(210/216) installing duktape [#######################################################] 100%
(211/216) installing polkit [#######################################################] 100%
(212/216) installing pcsclite [#######################################################] 100%
Optional dependencies for pcsclite
python: API call trace logging with the pcsc-spy [installed]
ccid: USB Chip/Smart Card Interface Devices driver
(213/216) installing wpa_supplicant [#######################################################] 100%
(214/216) installing networkmanager [#######################################################] 100%
Optional dependencies for networkmanager
bluez: Bluetooth support
dhcpcd: alternative DHCP client
dnsmasq: connection sharing
firewalld: firewall support
iptables: connection sharing [installed]
iwd: wpa_supplicant alternative
libnvme: NBFT support
modemmanager: cellular network support
nftables: connection sharing [installed]
openresolv: alternative resolv.conf manager
pacrunner: PAC proxy support
polkit: let non-root users control networking [installed]
ppp: dialup connection support
(215/216) installing lzo [#######################################################] 100%
(216/216) installing btrfs-progs [#######################################################] 100%
Optional dependencies for btrfs-progs
python: libbtrfsutil python bindings [installed]
e2fsprogs: btrfs-convert [installed]
:: Running post-transaction hooks...
( 1/18) Generating the configured locale...
Generating locales...
Generation complete.
( 2/18) Configuring dynamic linker run-time bindings...
( 3/18) Creating iconv module configuration cache...
( 4/18) Creating system user accounts...
Creating group 'polkitd' with GID 102.
Creating group 'alpm' with GID 970.
Creating user 'alpm' (Arch Linux Package Management) with UID 970 and GID 970.
Creating group 'pcscd' with GID 969.
Creating user 'pcscd' (PC/SC Smart Card Daemon) with UID 969 and GID 969.
Creating user 'polkitd' (User for polkitd) with UID 102 and GID 102.
( 5/18) Creating temporary files...
( 6/18) Updating journal message catalog...
( 7/18) Updating udev hardware database...
( 8/18) Applying kernel sysctl settings...
Skipped: Running in chroot.
( 9/18) Reloading system manager configuration...
Skipped: Running in chroot.
(10/18) Reloading user manager configuration...
Skipped: Running in chroot.
(11/18) Reloading device manager configuration...
Skipped: Running in chroot.
(12/18) Arming ConditionNeedsUpdate...
(13/18) Rebuilding certificate stores...
(14/18) Updating module dependencies...
(15/18) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '7.1.11-arch1-1'
-> Running build hook: [base]
-> Running build hook: [systemd]
-> Running build hook: [autodetect]
-> Running build hook: [microcode]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [sd-vconsole]
==> WARNING: sd-vconsole: "/etc/vconsole.conf" not found, will use default values
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
-> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(16/18) Reloading system bus configuration...
Skipped: Running in chroot.
(17/18) Checking for old perl modules...
(18/18) Updating the info directory file...
NOTE
  • pacstrap -K /mnt:将基础系统安装到 /mnt 目录,-K 参数会在新系统内初始化一个全新的、干净的密钥环,而非从 Live 环境复制。
  • base:Arch Linux 的核心基础软件包组,包含启动和运行系统的最小集合。
  • base-devel:开发工具包组,包含 gcc、make 等编译器和构建工具。
  • linux:Linux 内核。
  • linux-headers:内核头文件,编译某些驱动程序或内核模块时需要。
  • linux-firmware:各类硬件设备的固件文件(无线网卡、显卡等)。
  • intel-ucode:Intel CPU 的微码更新文件,用于修复 CPU 硬件级 Bug 和安全漏洞。(对于AMD用户,可以换成amd-ucode)
  • vim:终端文本编辑器,用于编辑配置文件。
  • grub:GRUB 引导加载器,用于启动系统。
  • efibootmgr:管理 UEFI 固件启动项的命令行工具,配置 GRUB 时需要。
  • os-prober:在 GRUB 中自动探测并添加其他操作系统(如 Windows)的引导项。
  • networkmanager:功能全面的网络管理套件,支持有线、无线、VPN 等连接。
  • btrfs-progs:Btrfs 文件系统的管理工具集,用于创建、挂载、调整子卷和快照等操作。

生成 fstab#

NOTE

什么是 fstab?详见:Fstab - Arch Wiki

# genfstab -U /mnt > /mnt/etc/fstab
NOTE
  • genfstab:从当前系统已挂载的文件系统中自动生成 fstab 条目。
  • -U:选项参数,告诉 genfstab 使用分区的 UUID(通用唯一标识符) 来标识设备。更加稳定可靠。
  • /mnt:路径参数,指定 genfstab 从哪个挂载点根目录开始扫描。
  • >:输出重定向符,将 genfstab 命令本应在终端显示的内容(标准输出)写入到后面的文件中。
  • /mnt/etc/fstab:目标文件路径,即在新系统根目录下的 /etc/fstab 配置文件。

新系统设置#

现在,我们 arch-chroot 进入新系统。

# arch-chroot -S /mnt
[root@archiso /]#
设置 hostname#

这是在设置电脑的名字,打开 /etc/hostname,填入你取的名字。

# vim /etc/hostname
NOTE

你可在这里填入:

  • 小写字母 (a-z)
  • 大写字母 (A-Z)
  • 数字 (0-9)
  • 连字符 (-)
  • 点号 (.)
设置世界和时区#
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
NOTE

以上命令把时区设置为北京时间。

运行hwclock生成/etc/adjtime:

# hwclock --systohc
设置 locale#
  1. 编辑 /etc/locale.gen,去掉 en_US.UTF-8 UTF-8 和 zh_CN.UTF-8 UTF-8 前的注释(#)。
# vim /etc/locale.gen
  1. 生成 locale
# locale-gen
  1. 编辑 /etc/locale.conf
# vim /etc/locale.conf

在其中输入 LANG=en_US.UTF-8。

TIP

不推荐在此设置任何中文 locale,会导致 tty 乱码。

设置 root 密码#
# passwd root
NOTE

输入密码不会显示,这是 Linux 的保护机制,以后使用 sudo、su 和 ssh 也不会显示密码。

启动 NetworkManager 服务#

# systemctl enable NetworkManager
NOTE

NetworkManager 是 Arch Linux 中功能全面的网络管理服务,支持有线、Wi-Fi、移动宽带和 VPN 等多种连接方式,并提供 nmcli 命令行和 nmtui 文本界面等管理工具。启用后系统重启时会自动加载网络管理功能。 详见:NetworkManager - Arch Wiki

NOTE

systemd 是 Arch Linux 的默认系统和服务管理器,作为 PID 1 负责管理系统启动后的所有进程。systemctl 是与 systemd 交互的命令行工具,用于控制服务的启动、停止、状态查询及开机自启。 在安装过程中,我们主要用到:

  • systemctl start 服务名 - 启动服务。
  • systemctl enable 服务名 — 设置开机自启。
  • systemctl status 服务名 — 查看服务运行状态。
  • systemctl enable --now 服务名 — 启用并立即启动。 详见:systemd - Arch Wiki

安装引导程序#

我们需要以下包:grub、efibootmgr 和 os-prober。

  1. 安装软件包
# pacman -S grub efibootmgr os-prober
  1. 安装 grub 到 EFI
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH
NOTE
  • grub-install:将 GRUB 引导程序安装到指定位置。
  • --target=x86_64-efi:指定安装 UEFI 版本的 GRUB。
  • --efi-directory=/boot:指定 EFI 分区挂载点为 /boot。
  • --bootloader-id=ARCH:将 UEFI 启动项命名为 ARCH。
  • 整体作用:在 UEFI 系统上安装 GRUB,并创建一个名为 ARCH 的启动项。
  1. 编辑 /etc/default/grub 文件:
# vim /etc/default/grub

进行如下修改:

  • 去掉 GRUB_CMDLINE_LINUX_DEFAULT 一行中最后的 quiet 参数
  • 把 loglevel 的数值从 3 改成 5。
    • 上两项会让系统启动时显示详细日志,方便排查问题。
  • 加入 nowatchdog 参数。
    • 禁用可能引起意外重启的看门狗。
TIP

要禁用英特尔的看门狗硬件,在 GRUB_CMDLINE_LINUX_DEFAULT 后添加:modprobe.blacklist=iTCO_wdt。

NOTE

若为双系统用户:
请将 GRUB_DISABLE_OS_PROBER 设为 false。

NOTE
  • 去掉 quiet 参数:关闭启动时的日志静默,显示更多内核启动信息。
  • 将 loglevel 从 3 改为 5:提高内核日志输出级别,显示 KERN_NOTICE 及以上等级的信息。
  • 加入 nowatchdog 参数:禁用看门狗(watchdog)定时器,避免因超时导致意外重启。
  • 双系统用户:将 GRUB_DISABLE_OS_PROBER=false 取消注释或设为 false,让 GRUB 能自动探测其他操作系统。
  1. 生成配置文件:
# grub-mkconfig -o /boot/grub/grub.cfg
NOTE
  • grub-mkconfig:GRUB 引导器的配置生成脚本,会扫描系统中的内核、initramfs 镜像以及(如果启用)其他操作系统,并自动生成引导菜单。
  • -o:指定输出文件路径。
  • /boot/grub/grub.cfg:输出文件路径,即 GRUB 实际读取的配置文件。

完成安装#

  1. 退出 chroot 回到 LiveCD 环境。
# exit
NOTE

退出当前 shell 环境。常用于退出登录。

  1. 卸载分区与 swap 文件
# swapoff /mnt/swap/swapfile
# umount -R /mnt
NOTE
  • swapoff:停用交换文件,释放其占用的系统内存资源。
  • umount:卸载已挂载的文件系统,将内存中的数据同步到磁盘并解除挂载关系。
  • -R:递归卸载参数,会卸载 /mnt 下的所有子挂载点(如 /mnt/boot、/mnt/home 等),确保全部卸载干净。
NOTE

关机/重启 时会自动卸载,所以此步也可省略。

最后一步——重启#

# reboot
NOTE

reboot:重启命令

尾记#

NOTE

至此,Arch Linux 已成功安装!重启后进入新系统,接下来可以继续配置桌面环境、安装软件等。

预告#

NOTE

详见下篇教程将介绍 archinstall 自动化安装工具。

NOTE

下下篇教程将教授如何配置桌面环境、安装软件等。

分享

如果这篇文章对你有帮助,欢迎分享给更多人!

ArchLinux安装指南0x01篇
https://blog.smopnim.de5.net/posts/arch_linux_insrall_guide_0x01/
作者
SMOPNIM
发布于
2026-08-31
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

目录