ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

在Arch Linux上安装yay

2026/9/13 22:11:46 拓冰建站 浏览量
在Arch Linux上安装yay

  有点麻烦。

  • 准备
# pacman -Syu
# pacman -S --needed base-devel git
  • 变身为普通用户

不能使用root下载代码。所以要变身为普通用户:

# sueradd tsit
# su tsit
  • 下载代码
$ git clone https://aur.archlinux.org/yay.git
  • 编译安装
$ cd yay
$ makepkg -si
  • 如果遇到错误

Running makepkg as root is not allowed as it can cause permanent,catastrophic damage to your system-CSDN博客

报错:is not in the sudoers file.-CSDN博客