Sunday, 13 April 2014

How to quickly install packages from the Arch Linux AUR


There are some amazing packages in the Arch Linux AUR (Arch User Repository) but its not amazingly obvious how to install a package.

  • Go to the AUR, search for the package you are interested in then select 'Download tarball'
  • Move the file to a folder to extract. I have a dedicated folder I use : 
$ ~/build/
  • Extract the file e.g.
$ tar xvzf ttf-ms-fonts.tar.gz
ttf-ms-fonts/
ttf-ms-fonts/PKGBUILD
ttf-ms-fonts/ttf-ms-fonts.install

  • Move to the folder
$ cd ttf-ms-fonts
  • Review the  PKGBUILD file as you may need to intall depanancies e.g. review line
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
  • Create the package with :
$ makepkg 
  • Install using pacman
$ pacman -U <NAME>.pkg.tar.xz

  • Example 
$ pacman -U ttf-ms-fonts-2.0-10-any.pkg.tar.xz



No comments:

Post a Comment