Use the ArchLinux User Repository

1. AUR Helper

paru

sudo pacman -S --needed base-devel git

git clone https://aur.archlinux.org/paru.git

cd paru

makepkg -si

Config

This config makes it so that by default it doesn’t always asks you to edit PKGCONFIG or show you how the source files were modified.

#nano ~/.config/paru/paru.conf
1[options]
2SkipReview

Usage

Now you can just use paru as opposed to pacman, and it will install AUR packages automatically.

eg.

paru -S 7-zip-full

Keep in mind paru automatically calls sudo, so you don’t require to use it.

2. Custom Repo

Chaotic-AUR

First, install the primary key


sudo pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com

sudo pacman-key --lsign-key FBA220DFC880C036

sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'

Secondly, we need to activate the multilib repository

#sudo nano /etc/pacman.conf
93[multilib]
94Include = /etc/pacman.d/mirrorlist

Then, add these lines to the end of the pacman config file

#sudo nano /etc/pacman.conf
102[chaotic-aur]
103Include = /etc/pacman.d/chaotic-mirrorlist

Finally, run a regular upgrade to have it properly setup.

sudo pacman -Syu

Usage

Now the AUR is available with regular pacman, so you can keep using it as normal.

eg.

sudo pacman -S 7-zip-full

One advantage of using this repository, is that it will just provide packages pre-compiled, so you get everything in one go, but it has less packages due to space limitations.