Arch User Repository

From Wiki - Manjaro-Arm
Jump to: navigation, search

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.
Warning: Since AUR is an unofficial repository, support will not be provided by the Manjaro-ARM team for any problems related to an AUR package, therefore, use it at your own risk!

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:

Tip: It is recommended to use Trizen over Yaourt since the latter is considered inactive.
sudo pacman -S trizen

Or

sudo pacman -S yaourt
Tip: The AUR can also be accessed with the GUI tools, like Pamac and Octopi (via yaourt). This is the easiest way for beginners.

Installing Packages

You can install an AUR package manually or using an AUR Helper. Here we will approach 3 methods:

  1. Manually
  2. Trizen AUR Helper
  3. Yaourt AUR Helper
Tip: It is highly recommended to visit the AUR website and check all relevant pages for all softwares intended to be installed, these pages may contain valuable information.

Manually

  1. First download the tarball from the software AUR page
  2. Go to the path where you downloaded the tarball
    • cd [/path/to/tarball]
  3. Untar the tarball
    • tar -xvf [package name].tar.gz
  4. Move into the new sub-directory
    • cd [package name]
  5. Build the package
    • makepkg -s
    • Note: The "-s" parameter will pull in any dependency needed that exist in Manjaro-ARM repositories.
    • Caution: It won't pull a dependency from the AUR, if needed, you have to install the AUR dependency(ies) before installing the final software.
  6. Many files will be created. The one you want is the one finished with .pkg.tar.xz, to find it use:
    • ls
  7. 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

See also