User:Fstirlitz/maintaining a private repo
useful for having lots of AUR packages installed
creating the repo
- create a signing key (you can skip this step and use an existing key if you wish)
$ gpg --gen-key
- add it to your pacman keyring
$ gpg --export -a $KEYID | sudo pacman-key --add - $ sudo pacman-key --edit $KEYID gpg> trust ? 4 gpg> lsign gpg> save
- create a dedicated directory for your packages
$ mkdir -p ~/packages/repo
- configure makepkg to use it in
~/.makepkg.conf
BUILDENV+=(sign) GPGKEY=... # put your key id here PKGDEST="$HOME/packages/repo"
- add it as your repository in
/etc/pacman.conf
[custom] SigLevel = Required Server = file:///.../packages/repo
updating packages
- build all the packages you want to update
makepkg
- update the package index
$ cd ~/packages/repo $ repo-add -q -k "$KEYID" -s custom.db.tar.xz ${package_names[@]}
to regenerate the index from scratch, use
$ cd ~/packages/repo $ rm custom.db.tar.xz $ repo-add -q -k "$KEYID" -s custom.db.tar.xz *.pkg.tar.xz
- update packages with pacman
# pacman -Suy
there should be a script to automate this.