[pacman-dev] [PATCH] repo-add; add option to remove existing package files from disk

Phillip Smith lists at fukawi2.nl
Wed May 29 21:18:02 EDT 2013


On 30 May 2013 11:06, William Giokas <1007380 at gmail.com> wrote:
>
> You're probably going to get a lot more reliable cleaning using
> paccache.

If I'm not mistaken, paccache cleans pacman's local cache (ie,
/var/cache/pacman/pkg). This patch it for the repository on the
server.

paccache certainly doesn't appear to achieve the same goal. In the
example below, I would expect the pkgrel -1, -3, -4 of alsa-utils and
libassuan-2.0.3-1-x86_64.pkg.tar.xz to be removed.

ict-phil-pc /tmp/testrmexisting # ls -1
alsa-utils-1.0.26-1-x86_64.pkg.tar.xz
alsa-utils-1.0.27-3-x86_64.pkg.tar.xz
alsa-utils-1.0.27-4-x86_64.pkg.tar.xz
alsa-utils-1.0.27-5-x86_64.pkg.tar.xz
libassuan-2.0.3-1-x86_64.pkg.tar.xz
libassuan-2.1.0-1-x86_64.pkg.tar.xz
test.db
test.db.tar.gz
test.db.tar.gz.old
ict-phil-pc /tmp/testrmexisting # paccache -d -k1 ./
==> no candidate packages found for pruning


More information about the pacman-dev mailing list