Skip to content

Instantly share code, notes, and snippets.

@antonior92
Last active June 10, 2016 22:35
Show Gist options
  • Save antonior92/3810207dac22fac4f8f0faa6541d8e2f to your computer and use it in GitHub Desktop.
Save antonior92/3810207dac22fac4f8f0faa6541d8e2f to your computer and use it in GitHub Desktop.

Installing packages from AUR

  1. Acquire the tarball which contains the PKGBUILD and possibly other required files, like systemd units and patches (but often not the actual code).

  2. Extract the tarball (preferably in a directory set aside just for builds from the AUR) with

$ tar -xvf pkgname.tar.gz
  1. Verify that the PKGBUILD and accompanying files are not malicious or untrustworthy.

  2. Run

$ makepkg -sri

in the directory where the files are saved. This will download the code, resolve the dependencies with pacman, compile it, package it, install the package, and finally remove the build-time dependencies, which are no longer needed.

References:

  1. https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment