AUR & Helpers
The Arch User Repository (AUR) is a community-driven repository of PKGBUILDs.
Understanding AUR
AUR Helpers
Comparison
| Helper | Written In | Features |
|---|---|---|
yay |
Go |
Most popular, pacman syntax |
paru |
Rust |
Modern, feature-rich |
pikaur |
Python |
Review before build |
trizen |
Perl |
Minimal, fast |
Using yay
Basic Operations
# Search AUR
yay -Ss package
# Install from AUR
yay -S package
# Update all (repos + AUR)
yay -Syu
# Update AUR only
yay -Sua
# Remove package
yay -Rns package
Using paru
Basic Operations
# Search
paru -Ss package
# Install
paru -S package
# Update all
paru -Syu
# Interactive install
paru package
Best Practices
Security
# Always review PKGBUILD before installing
yay -S package # Will show diff by default
# Check comments on AUR page
xdg-open https://aur.archlinux.org/packages/package-name
# Verify source URLs in PKGBUILD
Creating Packages
PKGBUILD Template
# Maintainer: Your Name <email@example.com>
pkgname=mypackage
pkgver=1.0.0
pkgrel=1
pkgdesc="Description of package"
arch=('x86_64')
url="https://example.com"
license=('MIT')
depends=('dependency1' 'dependency2')
makedepends=('git')
source=("$pkgname-$pkgver.tar.gz::https://example.com/source.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}