oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

Clean apacman cache #38

Open ramesh45345 opened 8 years ago

ramesh45345 commented 8 years ago

I checked the apacman and apacman.conf man pages, but couldn't find this functionality. Was wondering if apacman could clean its own cache (which I know defaults to /var/cache/apacman/pkg) in addition to passing the -Sc or -Scc flags through to pacman. For example, running "apacman -Sc --noconfirm" would clean apacman's cache in addition to the pacman cache.

A workaround to provide this functionality right now is to run "pacman -Sc --cachedir=/var/cache/apacman/pkg". Pacman will actually clean the apacman cache for me, but perhaps this would be nice to have as an enhancement to apacman?

julianxhokaxhiu commented 7 years ago

I upvote this. I think it should not be difficult to extended/override the option.

Doing the workaround yet works fine, but is annoying to type that whole thing. Would be a really nice addition the support of Cache clearing through apacman natively.