You are not logged in.

#1 2014-06-06 17:58:24

wil93
Member
From: Italy
Registered: 2013-09-15
Posts: 72

[SOLVED] paccache -d returns «no candidate packages found for pruning»

I want to clean pacman's cache, but here's what I get:

$ paccache -d
==> no candidate packages found for pruning

Maybe that's because the "standard" directory is empty:

$ tree /var/cache/pacman
/var/cache/pacman
└── pkg

1 directory, 0 files

But I correctly specified the cache directory I wanted to use:

$ grep "Cache" /etc/pacman.conf
CacheDir    = /home/wil93/.pacmancache

In fact, pacman has always used it:

$ du -sh .pacmancache
14G	.pacmancache

Could it be a pacman/paccache bug?

Last edited by wil93 (2014-06-06 19:15:59)

Offline

#2 2014-06-06 18:57:23

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: [SOLVED] paccache -d returns «no candidate packages found for pruning»

paccache -h shows below

    -c, --cachedir <dir>    scan 'cachedir' for packages (default: /var/cache/pacman/pkg).

So, probably it does not pick cache dir value from pacman.conf.
Try giving the -c option.

Edit: Went through the code of paccache and yes the cache dir is declared in it. fixed tags.

declare    cachedir=/var/cache/pacman/pkg delim=$'\n' keep=3 movedir= scanarch=

Last edited by vik_k (2014-06-06 18:59:06)


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

#3 2014-06-06 19:15:31

wil93
Member
From: Italy
Registered: 2013-09-15
Posts: 72

Re: [SOLVED] paccache -d returns «no candidate packages found for pruning»

Thank you.

I guess it would be nice if the default cache directory was changed from </var/cache/pacman/pkg> to <whatever is specified in pacman.conf>.

Edit: I created a feature request for this.

Last edited by wil93 (2014-06-06 19:23:37)

Offline

Board footer

Powered by FluxBB