You are not logged in.
Hi All
Besides running 'sudo pacman -Scc' how else can you clean the system cache in arch ?
Many Thanks
Offline
rm /var/cache/pacman/pkg/*
You could simply delete them using rm, but bear in mind that will wipe all your stored packages instead of just the uninstalled ones
Last edited by SS4 (2010-12-20 19:18:53)
Rauchen verboten
Offline
And you can make an alias for
su -c 'rm -v /var/cache/pacman/pkg/*'
Edit ~/.bashrc and add:
alias cc-cache="su -c 'rm -v /var/cache/pacman/pkg/*'"
Relogin.
"cc-cache" is your new command for this.
Last edited by Mr. Alex (2010-12-20 19:28:35)
Offline
Why use anything else than -Scc?
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Why would you not want to use pacman to clear the cache?
What's the advantage of using 'rm'?
Offline
rm /var/cache/pacman/pkg/*
You could simply delete them using rm, but bear in mind that will wipe all your stored packages instead of just the uninstalled ones
'-Scc' does the same thing. Try 'pacman -Sc' instead.
Offline
There is also pkgcacheclean http://aur.archlinux.org/packages.php?ID=41918
Offline
Many Thanks ... Will stick to pacman -Scc
Offline
@jason - How does your version differ from the python version http://aur.archlinux.org/packages.php?ID=37572?
To the op - the python script is the way to go because you can select how many old versions you want to keep... for example 2:
# cacheclean 2
Last edited by graysky (2010-12-20 21:20:49)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
...Try 'pacman -Sc' instead.
This.
Offline
karol wrote:...Try 'pacman -Sc' instead.
This.
Not to mention CleanMethod in pacman.conf(5)
Last edited by Mr.Elendig (2010-12-20 21:30:41)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
@jason - How does your version differ from the python version http://aur.archlinux.org/packages.php?ID=37572?
The author describes the difference thus:
The original "pacman -Sc" command cleans everything but the installed packages; the AUR package cleancache retains a certain number of every package, whether it is currently installed or not.
This simple application i have written retains a certain number of every installed package, including 1 currently used. All other package caches are deleted.
Offline