Installing AUR Packages

From glasstty.com
Jump to: navigation, search

The following two examples install the TOR Browser and Dropbox, all other AUR packages can be installed in exactly the same way.

Before installing AUR packages ensure that the base-devel package has been installed, e.g.

  pacman -S base-devel

As a normal user (not root) create a builds directory and follow the examples below to install. The same process can be used to update the packages.

Install Tor browser from AUR

   cd ~/builds
   curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/tor-browser-en.tar.gz
   tar -xvf tor-browser-en.tar.gz
   cd tor-browser-en

Check files manually to check integrity

   vim PKGBUILD

Install with

   makepkg -srfci


Install Dropbox from AUR

   cd ~/builds
   curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/dropbox.tar.gz 
   tar -xvf dropbox.tar.gz 
   cd dropbox

Check files manually to check integrity

   vim PKGBUILD

Install with

  makepkg -srfci

Signature Errors

If a message appears similar to that shown below, this simply means that the public key to verify the signature is missing.

   tor-browser-linux64-7.0.6_en-US.tar.xz ... FAILED (unknown public key D1483FA6C3C07136)
   ==> ERROR: One or more PGP signatures could not be verified!

To fix this use gpg to import the missing public key from a keyserver e.g.

   gpg --recv-keys D1483FA6C3C07136


Using Yaourt

Yaourt is a command line utility similar to the pacman package manager, however, it includes support for AUR packages.

To install Yaourt the following commands can be used

   git clone https://aur.archlinux.org/package-query.git
   cd package-query
   makepkg -si
   cd ..
   
   git clone https://aur.archlinux.org/yaourt.git
   cd yaourt
   makepkg -si
   cd ..

To install Dropbox using Yaourt the following command could be used

   yaourt -S dropbox