Pacman aurutils: Difference between revisions

From wikinotes
No edit summary
No edit summary
Line 14: Line 14:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= Tutorials =
<blockquote>
{| class="wikitable"
|-
| initial setup || https://gist.github.com/geosharma/afe1ea9ebe58cb67aaaba62a0d47bc7a
|-
|}
</blockquote><!-- Tutorials -->


= Install =
= Install =
Line 25: Line 34:
<blockquote>
<blockquote>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
aur search aurutils
# add or update package to repo
# there are many options
aur search ${pkg}
aur sync  ${pkg}  # download, build AUR package to local repo
aur sync -u        # update all installed AUR packages
 
# install a package from the repo
pacman -S ${pkg}  # install package from repo
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Usage -->
</blockquote><!-- Usage -->
= Configuration =
<blockquote>
== pacman.conf ==
<blockquote>
<syntaxhighlight lang="bash">
# 'build' group members can add packages
mkdir -p /var/cache/pacman/aur
sudo chown build:build /var/cache/pacman/aur
sudo chmod 775 /var/cache/pacman/aur
</syntaxhighlight>
<syntaxhighlight lang="dosini">
# /etc/pacman.d/aurutils.conf
[options]
CacheDir = /var/cache/pacman/pkg/
CacheDir = /var/cache/pacman/aur/
[aur]
SigLevel = Optional TrustAll
Server = file:///var/cache/pacman/aur
</syntaxhighlight>
<syntaxhighlight lang="dosini">
# /etc/pacman.conf
# ...
Include /etc/pacman.d/aurutils.conf
</syntaxhighlight>
<syntaxhighlight lang="bash">
sudo install -d -d /var/cache/pacman/aur -o build
repo-add /var/cache/pacman/aur/aur.db.tar
</syntaxhighlight>
</blockquote><!-- pacman.conf -->
</blockquote><!-- Configuration -->

Revision as of 16:15, 13 August 2023

aurutils manages aur packages within your own local pacman repository.
You can then host/share this package repository with other arch systems.

Documentation

github https://github.com/AladW/aurutils
man aur https://github.com/AladW/aurutils/blob/master/man1/aur.1
man aurhosting https://github.com/AladW/aurutils/blob/master/man7/aurhosting.7

Tutorials

initial setup https://gist.github.com/geosharma/afe1ea9ebe58cb67aaaba62a0d47bc7a

Install

aura -A aurutils

Usage

# add or update package to repo
aur search ${pkg}
aur sync   ${pkg}  # download, build AUR package to local repo
aur sync -u        # update all installed AUR packages

# install a package from the repo
pacman -S ${pkg}   # install package from repo

Configuration

pacman.conf

# 'build' group members can add packages
mkdir -p /var/cache/pacman/aur
sudo chown build:build /var/cache/pacman/aur
sudo chmod 775 /var/cache/pacman/aur
# /etc/pacman.d/aurutils.conf
[options]
CacheDir = /var/cache/pacman/pkg/
CacheDir = /var/cache/pacman/aur/

[aur]
SigLevel = Optional TrustAll
Server = file:///var/cache/pacman/aur
# /etc/pacman.conf

# ...

Include /etc/pacman.d/aurutils.conf
sudo install -d -d /var/cache/pacman/aur -o build
repo-add /var/cache/pacman/aur/aur.db.tar