The Arch User Repository (AUR) is a community-driven repository for Arch users.

當官方倉庫找不到時,可在 https://aur.archlinux.org/ 搜索。將 git 下載解壓,運行如下命令安裝:

  1. $ makepkg -si

yay

Yet Another Yogurt - An AUR Helper Written in Go

https://github.com/Jguer/yay

  1. git clone https://aur.archlinux.org/yay.git
  2. cd yay
  3. makepkg -si

直接执行 yay相当于 yay -Syu
yay <package>列出安装选项。

移除不被使用的依赖

  1. yay -Yc

查看系统信息

  1. $ yay -Ps
  2. ==> Yay version v11.0.2
  3. ===========================================
  4. ==> Total installed packages: 894
  5. ==> Total foreign installed packages: 11
  6. ==> Explicitly installed packages: 147
  7. ==> Total Size occupied by packages: 7.4 GiB
  8. ===========================================
  9. ==> Ten biggest packages:
  10. linux-firmware: 731.2 MiB
  11. nvidia-utils: 436.9 MiB
  12. go: 432.3 MiB
  13. vtk: 335.4 MiB
  14. chromium: 253.0 MiB
  15. firefox: 224.5 MiB
  16. typora: 213.3 MiB
  17. clang: 207.5 MiB
  18. docker: 179.6 MiB
  19. boost: 168.4 MiB
  20. ===========================================
  21. :: Querying AUR...
  22. -> Missing AUR Packages: gnome-getting-started-docs libopenaptx

可以使用 https://mirrors.tuna.tsinghua.edu.cn/help/AUR/ 镜像

FAQ

Cannot find the fakeroot binary

base-devel 包缺失

  1. pacman -S base-devel