Archlinux tools: AUR

[ Sunday, 4 November 2007, mikrobart ]

You already know Pacman, the Archlinux software manager. Now it’s time to meet AUR and yaourt, the extra tools that can bring a fistful of apps on your desktop within just a few console commands. This article is part of the “Arch tools” series on

1. What is AUR?

AUR stands for Archlinux User-Community Repository. It is a set of PKGbuilds written by the users of Archlinux. I’ll explain what should we understand under the term PKGbuild later in this article.

Simply speaking AUR is a set of those packages, which are not attached to the official community repository (but are candidates to be attached). AUR users just simply vote on those packages. If a package gain a positive community opinion it is attached to the official set of packages. You can vote on packages visiting the web site

2. How to start using AUR?

To start using AUR you should get a proper managing program. Here you can choose from quite a number of possibilities:

  • aur-sync – quite simple program (written in Perl); it enables PKGbuilds downloading
  • aurbuild – very popular program written in Python; it has many functions but it is not supported any more
  • aur-get – extremely simple polish program; it enables only download of PKGbuilds
  • yaourt – probably the most sophisticated and popular program with a lot of functions; it works great as a Pacman frontend; yaourt is available on french Arch community repository.

3. How to use yaourt?

Using yaourt is quite easy and very similar to the commands of Pacman (it is quite understandable, since yaourt is a Pacman frontend). And now few commands:

yaourt -S package_name – package installation from AUR
yaourt -Ss password – package search
yaourt -Syu --aur – packages and system update using AUR
yaourt -Si package_name – display packages’ information
yaourt -Sc – remove old packages from cache
yaourt -Su – update all AUR packages
yaourt -Sy – get the newest AUR packages database
yaourt -Cd – clean AUR packages database
yaourt -R package_name – remove package

You’ll get more information about yaourt using the command yaourt --help.

4. ABS and AUR — differences

ABS contains only the packages created by Arch developers. AUR on the contrary uses PKGbuilds made by users (community members). There’s nothing to be afraid of, however. Every package, even if it gains a lot of users’ voices, is always checked by so called Trusted User before releasing to public.

5. What is PKGbuild?

On the beginning of this article I made a promise of explaining PKGbuild term, because we talk a lot about it and the same time we don’t know what is this. PKGbuild is just simply a text file which contains a description how to build a package and some meta data of the package (information about the software).

Here is an example of PKGbuild file:

# $Id: PKGBUILD,v 1.12 2003/11/06 08:26:13 dorphell Exp $
# Maintainer: judd
# Contributor: Judd Vinet
pkgver=0.99 # note: if the program version is '0.99-10' you should \\
write '0.99_10'
pkgdesc="short description  foo"
arch=(i686 x86_64)
depends=('qt' 'python')

build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install

Tags meaning:

  • text – comments
  • Maintainer – package maintainer in the repository
  • Contributor – a person who prepared the first version of the package
  • pkgname – package name
  • pkgver – package version
  • pkgdesc – package description
  • arch – architecture for which the package is designed for
  • url – home page of the package
  • md5sums – md5 sum, it is necessary for the package integrity checking

We have already covered Pacman and AUR in our short Archlinux tools series. If you would like to write about another arch tool or perhaps about the Arch64 edition, feel free to send us your text at

Subscribe to RSS feed for this article!


fold this thread furester  Monday, 5 November 2007 o godz. 4:53 pm #  Add karma Subtract karma  +1

I’m not sure that what you write about PKGBUILD is correct, PKGBUILDs are (first of all) the description of how to build packages .. where you find these informations?

(Comments wont nest below this level)
fold this thread michuk  Wednesday, 7 November 2007 o godz. 1:19 am #  Add karma Subtract karma  +0

I edited the article to make it more clear. Thanks for your input.

fold this thread Taco Buitenhuis  Wednesday, 7 November 2007 o godz. 7:50 pm #  Add karma Subtract karma  +0

aur-sync – quite simple program (written in Pearl)

You probably mean Perl.

(Comments wont nest below this level)
fold this thread michuk  Wednesday, 7 November 2007 o godz. 9:59 pm #  Add karma Subtract karma  +0


fold this thread Codemac  Saturday, 10 November 2007 o godz. 8:33 pm #  Add karma Subtract karma  +0

Just to be a stickler here:

Trusted Users do not check packages before they are released to the public. Once they have been release to the public, a trusted user will usually go through all the files and mark it as “safe” or leave it as “unsafe.” If a package is labelled “unsafe”, that doesn’t mean the pkgbuild will hurt your system, it just means that no trusted user has checked.

We try to go through as many packages as we can, but the point of the AUR is so that the community can develop for itself. We are not the gatekeeper of the code posted.

(Comments wont nest below this level)
Name (required)
E-mail (required - never shown publicly)

Adjust field size: shrink | enlarge)

You can use simple HTML in your comments. Some examples are as follows:
  • A hyperlink: <a href="">GNU/Linux for everyone!</a>,
  • Strong text: <strong>Strong text</strong>,
  • Italic text: <em>italic text</em>,
  • Strike: <strike>strike</strike>,
  • Code: <code>printf("hello world");</code>,
  • Block quote: <blockquote>Block quote</blockquote>

New AdTaily ads!

Are you a film buff?

film buffs community, movie recommendations and reviews

RSS: Comments

You can follow the comments to this article through a special channel RSS 2.0 .

Related articles: Arch

 more »

Related articles: Software managers

 more »

PolishLinux Top Content

Become our fan on Facebook! on Facebook

Follow PolishLinux on Twitter!

Follow polishlinux on Twitter

Google Ads