Git Product home page Git Product logo

aur.sh's Introduction

aur.sh(1)

make packages from the Arch User Repository

USAGE

aur.sh will download every package from the AUR specified as a parameter, and will run makepkg on it with any hyphen-prefixed options. Package files will be downloaded to $BUILDDIR, or the working directory if $BUILDDIR has no value.

Setting your build directory

If you do not want packages to download to your current directory, you can source /etc/makepkg.conf to set any configured BUILDDIR:

$ source /etc/makepkg.conf

and/or change to a temporary directory first:

$ cd `mktemp -d`

Prerequisites

Before installing any packages, you should always ensure that your installation is up to date:

# pacman -Syu

Also, to build packages from the AUR, you are expected to have the base-devel package installed. If you aren't sure that you've done so already:

# pacman -S --needed base-devel

Installing packages from the AUR

To install any number of AUR packages and their main repo dependencies, run aur.sh (the site root can be directed straight to bash via curl) with the -s (install package dependencies) and -i (install package after building) options for makepkg:

$ bash <(curl aur.sh) -si [package ...]

ADVANCED TRICKS

Updating AUR packages

To reinstall the latest version of any installed AUR packages, you can pipe the results of a query of non-repo package names to aur.sh, which will then redownload them, build them, and install any builds newer than what you currently have:

$ pacman -Qqm | xargs bash <(curl aur.sh) -si --needed

Get from mirror

http://aur.sh also provides an alternate version of aur.sh that, instead of getting package files from the AUR using curl and tar, gets the files from the pkgbuild.com AUR mirror using wget. If, for some reason, you can't retrieve files from the main Arch User Repository, you can try:

$ bash <(curl aur.sh/alt-aur.sh) -si [package ...]

CAVEATS

The -s option to makepkg will not download any package dependencies that come from the AUR, so you will need to make any AUR dependencies you don't already have installed before you try to install their dependants. For example, the yaourt package in the AUR depends on the AUR package package-query, so to install yaourt with aur.sh, you need to specify package-query first:

$ bash <(curl aur.sh) -si package-query yaourt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.