Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


Arch User Repository

The AUR, is a major part of the Arch Linux ecosystem. It’s a community driven repository for the Arch Linux system that hosts a number of packages outside the official Arch Linux package database.

Reference(s)

Table of contents


Config

Update your system and install the needed packages:

# pacman -Syu
# pacman -S git base-devel

Create a dedicated AUR directory:

$ mkdir -p ~/apps/aur-apps


Use

Manually

  • Install an AUR package:
    $ cd ~/apps/aur-apps
    $ git clone https://aur.archlinux.org/<package-name>.git
    $ cd <package-name>
    $ makepkg -si # --syncdeps to auto-install deps, --install to install after building
    
  • Uninstall an AUR package and it's dependencies (which are not required by any other installed package):

    # pacman -Rs <package-name>
    

  • Update an AUR package:

    $ cd ~/apps/aur-apps/<package-name>
    $ git pull
    $ makepkg -si # --syncdeps to auto-install deps, --install to install after building
    

With yay

Yay is an AUR helper (written in Go): see yay.md.

Troubleshooting

  • when using $ makepkg, if the following error appears: ==> ERROR: One or more PGP signatures could not be verified!, then you can run it again like this: $ makepkg --skippgpcheck

If this cheat sheet has been useful to you, then please consider leaving a star here.