aboutsummaryrefslogtreecommitdiff
path: root/manage_repository.sh
blob: 395c2637b42826ea2df5bbdb68800a16d06893b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository

OUTDIR="testrun/db/"
PKGDIR="testrun/db/"

mkdir -p "$OUTDIR"

repo-add -n "$OUTDIR/repo.db.tar.gz" "$PKGDIR/pkgout/*.pkg.*"

rm "$OUTDIR/*.old"