Arch AUR: Difference between revisions

From wikinotes
 
(4 intermediate revisions by the same user not shown)
Line 36: Line 36:
Hacky Nonsense
Hacky Nonsense
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
LATEST_VERSION=$(curl -X GET 'https://aur.archlinux.org/packages/qt5-styleplugins' | grep 'Package Details:' | head -n 1 | sed -E 's!^.* ([^ ]+)<.*!\1!')
LATEST_VERSION=$(curl -X GET "https://aur.archlinux.org/packages/${package}" \
    | grep 'Package Details:' \
    | head -n 1 \
    | sed -E 's!^.* ([^ ]+)<.*!\1!')
 
INSTALLED_VERSION=$(pacman -Q ${package} | awk '{ print $2 }')
INSTALLED_VERSION=$(pacman -Q ${package} | awk '{ print $2 }')
</syntaxhighlight>
</syntaxhighlight>
Line 56: Line 60:
{|
{|
|-
|-
| [[aura]]
| [[pacman aurutils]] || build packages to a network-shareable pacman repo
|-
| [[aura]] || build/install packages
|-
|-
| [[pacaur]]
| [[pacaur]] || build/install packages
|-
|-
| [[packer]]
| [[packer]] || build/install packages
|-
|-
| [[yaourt]]
| [[yaourt]] || build/install packages
|-
|-
|}
|}
</blockquote><!-- Clients -->
</blockquote><!-- Clients -->

Latest revision as of 21:49, 2 September 2023

The Arch User Repository is an un-verified community managed repo of packages.
It adds additional packages not available in the standard archlinux repos.

Locations

https://aur.archlinux.org/cgit/aur.git/snapshot/${PACKAGE}.tar.gz package URL

Install

Must be able to build packages

sudo pacman -S base-devel

Usage

# search packages:   https://aur.archlinux.org/packages/
# click:             'Download Snapshot'

curl -O "https://aur.archlinux.org/cgit/aur.git/snapshot/${package}/tar.gz"
tar -xvf "${package}.tar.gz" # Extract Package

cd Myfile/
makepkg -s                   # Compile Package
sudo pacman -U *.tar.xz      # Install Package
sudo pacman -R Myfile        # Uninstall Package

Hacky Nonsense

LATEST_VERSION=$(curl -X GET "https://aur.archlinux.org/packages/${package}" \
    | grep 'Package Details:' \
    | head -n 1 \
    | sed -E 's!^.* ([^ ]+)<.*!\1!')

INSTALLED_VERSION=$(pacman -Q ${package} | awk '{ print $2 }')

Clients

Partly Automated

auracle search, download packages
cower Search, Download, Extract packages
python3-aur Search AUR

Fully Automated

pacman aurutils build packages to a network-shareable pacman repo
aura build/install packages
pacaur build/install packages
packer build/install packages
yaourt build/install packages