diff options
Diffstat (limited to 'clean-cache')
-rwxr-xr-x | clean-cache | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clean-cache b/clean-cache new file mode 100755 index 0000000..35bc6a7 --- /dev/null +++ b/clean-cache @@ -0,0 +1,11 @@ +#!/bin/bash + +mirror_dir='/srv/http/arch-mirror' + +for repo_dir in $( + find "${mirror_dir}" -type f -printf '%h\n' \ + | uniq \ + | sort -u +); do + paccache -v -r -k 2 -c "${repo_dir}" +done |