Installing AUR Helper Tool
The AUR is a community-driven repository for Arch Linux users. AUR helpers automate usage of the Arch User Repository. In particular, they may automate the following tasks:
- searching for packages published on the AUR;
- resolving of dependencies between AUR packages;
- retrieve and build AUR packages;
- retrieve web content, such as user comments;
- submission of AUR packages.
We are going to install Yay, which is a common AUR helper. We first install the required dependencies:
sudo pacman -S --needed git base-devel
Then, we clone and enter the Yay repository:
git clone https://aur.archlinux.org/yay.git
cd yay
Finally, we build it:
makepkg -si
Enter your sudo password when prompted and install any missing dependencies. We can now remove the cloned repository since it is no longer needed:
cd ..
rm -rf yay/
Common Operations
Command | Description |
---|---|
yay | Alias to yay -Syu — perform system upgrade. |
yay -Rns <Package> | Remove package, dependencies, and system config files. |
yay <Search Term> | Present package-installation selection menu. |
yay -Bi <dir> | Install dependencies and build a local PKGBUILD. |
yay -Yc | Clean unneeded dependencies. |