Installing packages from AUR - Archlinux
I wanted to install yaourt in my system which has archlinux installed. Yaourt is a nice tool when you want to search through the packages that are not present in the official repository. It is not available in the official repository, so it cannot be installed using pacman. Also the documentation of AUR provides a nice step by step instructions on how to install packages from AUR. To search for package, visit this link
Here are the list of steps that should be followed while installing packages from AUR.
- Download the tarball of the PKGBUILD. Extract the tarball when downloading by running
$ tar zxvf package_name
. The storage location of the download will be folder: package_name - Download the actual package, The download link of the same will be given on the same page as above. Extract the tarball of the downloaded package. The storage location of the download will be folder: package_namev1
- Now copy the PKGBUILD file downloaded in the first page to the folder the contains the source package.
cp package_name/PKGBUILD package_namev1/
- Now go the source package folder and run the commands:
$ makepkg
(This will create a file named package_namev1.tar.gz, which can directly be installed with pacman)$ sudo pacman -U package_namev1.tar.gz
The reason I have listed the above steps even though the AUR page has provided the step by step instructions, is because some of the steps like copying the PKGBUILD to the package source location and then running makepkg
is not specified clearly.