Arch User Repository
Contents
Overview
The Arch User Repository (AUR) is a community-driven repository for Arch users. The AUR was created to organize and share new packages from the community and to help expedite popular packages' inclusion into the community repository.
Using the AUR may present potential risks and problems, like:
- Broken or only partially working packages;
- Improperly configured packages which download unnecessary dependencies, or do not download necessary dependencies, or both;
- Malicious packages (although extremely rare);
- Multiple versions of the same packages;
- Out of date packages.
Accessing the AUR
To be able to build the AUR package you need the base-devel package installed:
sudo pacman -S base-devel
To use a AUR Helper to access the AUR, you have to install one first:
sudo pacman -S trizen
Or
sudo pacman -S yaourt
Installing Packages
You can install an AUR package manually or using an AUR Helper. Here we will approach 3 methods:
- Manually
- Trizen AUR Helper
- Yaourt AUR Helper
Manually
- First download the tarball from the software AUR page
- Go to the path where you downloaded the tarball
-
cd [/path/to/tarball]
-
- Untar the tarball
-
tar -xvf [package name].tar.gz
-
- Move into the new sub-directory
-
cd [package name]
-
- Build the package
-
makepkg -s
-
- Many files will be created. The one you want is the one finished with .pkg.tar.xz, to find it use:
-
ls
-
- Now, to install use:
-
sudo pacman -U [name].pkg.tar.xz
- You also can use instead
makepkg -i
-
Trizen
To install using Trizen AUR Helper, use:
trizen -S [package name]
Yaourt
To install a package using Yaourt, use:
yaourt -S [package name]
Searching Packages
Manually
You can search the package at the AUR website
Trizen
To search a AUR package using Trizen, use:
trizen -Ssa [package name]
Yaourt
To search a AUR package using Yaourt, use:
yaourt -Ssa [package name]
Updating Packages
Manually
Download the software new version tarball and follow the manual installation instructions
Trizen
To sync and update all AUR packages, use this command:
trizen -Syua
Yaourt
To sync and update all AUR packages, use this command:
yaourt -Syua