A simplified tutorial for setting up
AUR (and installing Yaourt) on an Arch Linux machine.
One of the best things about Arch Linux
is the extensive amount of software available to personalize a
system. While the official repositories contain most of the software
that a typical user will need there is often a need for software that
is NOT in the official repositories.
This is where the AUR comes in handy.
AUR
is “a community-driven repository for Arch users. It contains
package descriptions (PKGBUILDs)
that allow you to compile a package from source with makepkg
and then install it via pacman.
The AUR was created to organize and share new packages from the
community and to help expedite popular packages' inclusion into the
[community]
repository.”
Installing a package from the AUR is
fairly straight forward and well described in the wiki.
This tutorial is simplified set of
commands to expedite the process. It is intended for someone who has
previously followed the instructions in the wiki and just wants a
bare bones explanation of how to install packages.
## How to install yaourt via the AUR in
Arch Linux.
## Create a builds directory
$ mkdir builds
## Make sure that you have base-devel
installed via pacman.
sudo pacman -S base-devel
## Install package-query from AUR
$ curl -O
https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
## Build the pakage
$ cd ~/builds
$ tar -xvzf package-query.tar.gz
$ cd package-query
$ makepkg -s
## Install the package
## A tarball should have been created
named:
## <application name>-<application
version number>-<package revision
number>-<architecture>.pkg.tar.xz
## This package can be installed using
pacman's "upgrade" command:
$ sudo pacman -U
package-query-1.2-2-i686.pkg.tar.xz
## Obtain yaourt from AUR
$ curl -O
https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
## Build the pakage
$ cd ~/builds
$ tar -xvzf yaourt.tar.gz
$ cd yaourt
$ makepkg -s
$ sudo pacman -U
yaourt-1.3-1-any.pkg.tar.xz
## You are done!