AUR Helpers, what they are, and what do they do?



Before knowing what are AUR Helpers, its's important to know what is the AUR


AUR (Arch User Repository)

It is a community-driven repository for Arch-based Linux distributions users. It contains package descriptions named PKGBUILDs that allow you to compile a package from source with makepkg and then install it via pacman (package manager in Arch Linux).

The AUR was created to organize and share new packages from the community and to help accelerate popular packages’ inclusion into the community repository.

A good number of new packages that enter the official repositories start in the AUR. In the AUR, users are able to contribute their own package builds (PKGBUILD and related files).

You, as an individual, can upload any package in the AUR. In the AUR people have the ability to see the PKGBUILDs and review them for checking their validity. You can vote a package corrupt or out-of-date and it will be soon removed from the AUR

It is true that anyone can upload packages to the AUR but the Trusted Users (TUs) are charged with keeping an eye on what gets uploaded. Although TUs perform quality control to the uploaded packages, there is in no guarantee that packages in the AUR are well formed or not malicious.

In practice the AUR seems to be quite safe but in theory it can do some damage, but only if you are not careful. A smart Arch user, always inspects PKGBUILDs and *.install files when building packages from the AUR.

AUR Helpers

AUR Helpers are an easier way to access packages in the AUR, casually we install packages from AUR in following way.

First, we need to install some dependencies:

sudo pacman -S git base-devel

For installing the package brave-bin from the AUR:

git clone https://aur.archlinux.org/brave-bin.git
cd brave-bin
makepkg -si


But this is a rather haptic and rather hard way, even lengthy, what if you got a command which could do all of these by itself and as well as do the cleaning (which we havent done in this case)

AUR Helpers fetch and install packages from AUR, they work just like pacman. Some advanced AUR helpers even allow other commands which improve User Interaction

Some popular AUR Helpers and their installations:


Install:

git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si

Usage:

yay -S package_name # Installs a package
yay -R package_name # Remove a package
yay package_name # Search and Install a package


Install:

git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin
makepkg -si

Usage:

paru -S package_name # Installs a package
paru -R package_name # Remove a package
paru package_name # Search and Install a package


Install:

git clone https://aur.archlinux.org/trizen.git
cd trizen
makepkg -si

Usage:

trizen -S package_name # Installs a package
trizen -R package_name # Remove a package
trizen -Ss package_name # Search and Install a package


This was it about AUR Helpers, you can explore more on their official documentations. 

Write your thoughts and suggestions in the comments below, be super, have a great day!

Comments

Popular Posts