This is not a getting started guide, just notes to myself. Due to my limited knowledge there could be mistakes and better ways to do things. I have configured aurutils
to the best of my knowledge after reading the manpages and forums. Please refer to aurutils(7) manpages for installation and configuration.
Reference: aurutils(7)
Install the aurutils
using the normal AUR package installation procedure. Until I found aurutils
, I used to create a separate directory ~/arc/aur/arch
for all AUR packages and ~/arc/aur/$USER
for all personal packages not in the AUR.
aur_url=https://aur.archlinux.org/aurutils.git
aur_dir=~/src/aur/arch
cd $aur_dir
git clone $aur_url
cd $(basename $aur_url .git)
makepkg -cris
sudo pacman -U *.pkg.tar*
Create a separate pacman configuration file for the custom repository in /etc/pacman.d/
aur_cache=/var/cache/pacman/custom
sudo tee /etc/pacman.d/custom<<EOF
[options]
CacheDir = $(dirname $aur_cache)/pkg
CacheDir = $aur_cache
CleanMethod = KeepCurrent
[custom]
SigLevel = Optional TrustAll
Server = file://$aur_cache
EOF
Add the following lines for the custom repository configuration to the end of /etc/pacman.conf
aur_cache=/var/cache/pacman/custom
sudo tee -a /etc/pacman.conf<<EOF
# AUR Utils config
Include = /etc/pacman.d/$(basename $aur_cache)
Create the repository root in /var/cache/pacman
aur_cache=/var/cache/pacman/custom
sudo install -d $aur_cache -o $USER
If you already have built packages from AUR using makepkg -si
copy all the *.pkg.tar*
files to /var/cache/pacman/custom/
and add them to the custom database. Either way, you need to create the custom database.
aur_dir=~/src/aur/arch # Don't include this line if it does not apply to you
aur_cache=/var/cache/pacman/custom
cd $aur_cache
repo-add $(basename $PWD).db.tar
if [[ -n $aur_dir && -d $aur_dir ]]; then
fd 'pkg.tar' $aur_dir | xargs sudo install -t $PWD
repo-add -n $(basename $PWD).db.tar *.pkg.tar*
fi
Then synchronize pacman
:
sudo pacman -Syu
For example we want to install tor-browser-en from AUR. Use aur sync
to download and build AUR package and place it in the custom repository. Then use pacman -S packagename
to install the package.
aur sync tor-browser-en
sudo pacman -S tor-browser-en
aur repo --list
Update all installed AUR packages with aur sync
aur sync -u