Aur
Updated: September 28, 2024
“A"rch Linux “U"ser “R"epository. Community driven that used PKGBUILDs to compile packages from source.
Table of Contents
SETUP
Need to install two tools.
sudo pacman -S --needed base-devel git
Enable parallel compiling on your system edit:
/etc/makepkg.conf
search for term “makeflags”
change:
MAKEFLAGS="-j2"
to MAKEFLAGS="-j$(nproc)"
save & exit
MANUAL INSTALL OF A PACKAGE
Make a directory to store your installations. (programs)
mkdir programs
Search for package at AUR copy the packages git clone URL run it in the new directory we made (programs).
git clone <packeages clone url>
cd <package>
less PKGBUILD # check urls of package to look for shadiness.
makepkg -si # follow prompts
Sometimes a package will error out and say GPG signature can’t be verified. Just add the key.
gpg --recv-keys 234234IE323D34E34 # or whatever the key was shown in the error
YAY INSTALL OF A PACKAGE
Install yay
Be sure to have/run sudo pacman -S base-devel --needed
beforehand.
Inside programs folder clone:
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
Install a package with yay
yay -Ss <package> # search for package in both yay and sync repository.
yay <package> # search for package and use number to select package for install.
yay -S <package> # install a package if you know the name of it.
yay # update all packages in yay and sync repositories.
yay -Yc # remove dependencies no longer needed by the system.
yay -Rns # remove a package and its dependencies from the system.
AURMAN INSTALL OF A PACKAGE
Use manual install procedure to install aurman.
aurman -Ss <package> # search for a package
aurman -S <package> # install a package
aurman -Su # update aurman and packages