Install Yaourt on Arch Linux
Yaourt or Yet AnOther User Repository Tool is a package helper similar to packer that allows user to easily install packages from Arch User Repository. Yaourt is not in the official repository so it needs to be installed manually like any other AUR package without a package helper.
Install required dependencies.
sudo pacman -S --needed wget
Create a temporary installation directory and change current directory to it.
mkdir yaourt && cd yaourt
Install Package Query
Download the package build script from AUR.
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=package-query
Rename the downloaded file.
mv PKGBUILD?h=package-query PKGBUILD
Compile and build the package.
makepkg -s
Install the newly created package.
sudo pacman -U package-query-1.8-1-x86_64.pkg.tar.xz
The -U
option specifies a package that is not from the Pacman repositories. Check the exact name of the created package with the ls
command and replace the name of the package if different
Empty the temporary installation directory.
rm -rf *
Install Yaourt
Download the package build script from AUR.
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yaourt
Rename the downloaded file.
mv PKGBUILD?h=yaourt PKGBUILD
Compile and build the package.
makepkg
Install the newly created package.
sudo pacman -U yaourt-1.7-1-any.pkg.tar.xz
The -U
option specifies a package that is not from the Pacman repositories. Check the exact name of the created package with the ls
command and replace the name of the package if different
Remove the temporary installation directory.
cd .. && rm -Rd yaourt