Repositories in Arch Linux: official and AUR
There are two types of repositories on Arch Linux: official repositories (accesible via pacman) and the Arch User Repository. In this tutorial you will understand the differences and how to install packages from each one.
Table of Contents
- Official repositories
- Adding repositories
- Arch User Repository
Contain essential and popular software you can install via
pacman (Check Package managers in Linux). These packages are constantly upgraded: do not depend on the operating system version, like in Ubuntu, whose official repositories only receive security and minor package upgrades until a new version of Ubuntu is released.
Inside these official respositories there are two types: stable and testing. Inside stable repositories there are four repositories:
- core (needed packages for Arch Linux to work).
- extra (packages that do not fit in “core”, like Xorg, web browsers, media players, etc.).
- community (popular software in AUR that have been adopted by Trusted Users).
- multilib (32-bit software and libraries that can be used to run and build 32-bit applications on 64-bit installs).
- Create a file inside
/etc/pacman.dand add mirror info.
Server = https://archzfs.com/$repo/$arch
/etc/pacman.confto add the link to the mirror-list file.
[archzfs] Include = /etc/pacman.d/mirrorlist-archzfs
Arch User Repository
It’s a community-driven repository. This repository doesn’t contain binaries (software compiled) but package descriptions (
PKGBUILD) that allow you to compile the software and then install it with
The process of installing software from AUR is relatively simple:
- (Prerequisite) Install
sudo pacman -S --needed base-devel git
- Search the package you want in AUR home page.
- Clone its git repository.
git clone https://aur.archlinux.org/package_name.git
- You can also download a snapshot and unpack it.
- Acquire a PGP public key if needed (More info).
- Build the package.
# review PKGBUILD for malicious or dangerous commands less PKGBUILD
# make the package makepkg
- Check Arch Wiki for more info on
- Check Arch Wiki for more info on
- Install the package with
sudo pacman -U <package_name>-<version>-<architecture>.pkg.tar.zst
AUR helpers are programs that automate the process of search and install packages from AUR. Some helpers simplify the search and download process, others the search and build process and there are some helpers that work in a similar way to
pacman. These are some examples:
pacman (Package managers), adding
-a parameter to specify you want to use AUR.
sudo pacman -S --needed git base-devel git clone https://aur.archlinux.org/yay-bin.git cd yay-bin makepkg -si
- Use (like
# Search only in AUR yay -aSs <search term> # Install an AUR package yay -aS <package name>
git clone https://aur.archlinux.org/aura-bin.git cd aura-bin makepkg sudo pacman -U <the-package-file-that-makepkg-produces>
In this new series, we are going to explore useful penetration testing utilities from Kali Linux. The main tool (or set of tools) any pen-tester or ethical hacker should know is Metasploit Framework.
Quickemu is a great QEMU-based program to create and run optimised Linux, Windows and macOS virtual machines.
Learn how to install Virtual Machine Manager on your Arch device following a few simple steps.
Jitsi Meet is an open-source video conferencing platform you can install on your server.
A comprehensive list of Linux-related websites sorted by categories.