(仅记录过程未添加中文说明)

1
2
3
4
5
6
cd ~
sudo pacman -S base-devel git
git clone https://aur.archlinux.org/yay.git
cd yay
git config --global http.sslverify false
nano PKGBUILD

在以下位置添加如下内容
ac3

1
2
3
4
5
6
7
8
...
build() {
export ...
...
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
}
...

Ctrl+X
y
Enter

1
makepkg -si

ac4

Enter password(not root password)

1
2
3
yay -S paru
cd ..
rm -rf yay