/ root / pages / aurget.html

You're using an old link! - Thankfully, you no longer need to specify a nonstandard port (8080) to access my site. You could've used the more standard: http://pbrisbin.com/pages/aurget.html.

Aurget


Notice - Aurget in the AUR has been upgraded to version 2.0. This version comes with vastly changed config and commandline flags. The last 1.x version can always be downloaded here.

About

A simple pacman-like interface to the AUR written in bash.

Aurget is designed to make the AUR convenient and speed up tedious actions. The user can decide to search, download, build, and/or install packages through a dynamically created config file or by passing arguments on the commandline.

The user can also choose to edit all or no PKGBUILDs, and enable or disable auto dependency resolution through the same means.

Checking dependencies comes with risks because PKGBUILDs need to be sourced. Please, if you're worried about this, be sure to view all PKGBUILDs before proceeding or use the config file or commandline options to disable this check from occurring and remove any associated risk. You have been warned.

Usage

The screenshot

Screenshot

The help

  usage: aurget [ -v | -h | -S* [ --options ] [ -- ] <arguments> ]

    options:

          -S  <package>   process <package> using your default sync_mode

          -Sd <package>   download <package>
          -Sb <package>   download and build <package>
          -Sy <package>   download, build, and install <package>

          -Su             process available upgrades using your default sync_mode

          -Sdu            download available upgrades
          -Sbu            download and build available upgrades
          -Syu            download, build, and install available upgrades

          -Ss  <term>     search aur for <term>
          -Ssq <term>     search aur for <term>, print only package names
          -Sp  <package>  print the PKGBUILD for <package>
          -Si  <package>  print extended info for <package>

          --devel         used with -Su to upgrade all development packages

          --deps          resolve dependencies
          --nodeps        don't resolve dependencies

          --edit          prompt to edit all pkgbuilds
          --noedit        don't prompt to edit any pkgbuilds

          --discard       discard source files after building
          --nodiscard     don't discard source files after building

          --nocolor       disable colorized output
          --noconfirm     auto-answer y to all prompts

          --ignore '<package> <package> <...>'
                          add additional packages to be ignored

          --mopt '-opt -opt ...'
                          add additional options to the build command

          --popt '-opt -opt ...'
                          add additional options to the install command

          -v, --version   display version info
          -h, --help      display this

          --option=value  set config <option> as <value> for this run only

Installation

Latest and greatest

  wget -O ./aurget http://pbrisbin.com/bin/aurget
  chmod +x ./aurget
  sudo mv ./aurget /usr/bin

Or install the [slightly more] stable AUR package here

Known bugs

If you pass an aur package before one of its dependencies as the targets to aurget, it will not reorder the targets and the installation will probably fail on the first package. Accounting for this would require a lot of unneeded code. The makepkg error will tell you the dep is not satisfied and it's easy enough to adjust your targets and run it again.

Some aur packages report a bad url to their tarball in the JSON interface. Aurget checks the downloaded file, if it's not a valid archive it will try http://aur.archlinux.org/packages/$PACK/$PACK.tar.gz as a fallback. If neither the JSON url nor the fallback url provide a valid archive, well, there's not much I can do.

If a package contains more than one PKGBUILD, the script (as of v1.2-2) assumes the first PKGBUILD found (the 'nearest' to ./) is the one you want to use to build. This may or may not be the best approach but I've yet to determine why multiple PKGBUILDs would be needed for a package -- thanks to Henrique Abreu for this fix.

Comments

on Fri, 04 Jun 2010 20:54:48 -0400, Athunye irc Fernando Basso Brazil wrote:

This great tools just does what it is supposed to do. And it is just KISS as I would expect from an Ar

on Tue, 08 Jun 2010 20:40:46 -0400, Anonymous wrote:

Amazing tool. Thank you so much for writing this script. I was tired of using yaourt and wanted a light, clean solution. Keep up the great work, brisbin!





pbrisbin dot com 2010