does pacman -Sc when it asks you..
pacman -Sc
Cache directory: /var/cache/pacman/pkg/
Do you want to remove uninstalled packages from cache? [Y/n]are these the programs "older" versions that are still there? it will keep the latest right?
Yes, assuming the latest versions are what is installed. "pacman -Sc" will remove packages for anything that is not currently installed. That includes:
a) packages for programs that are not installed.
b) packages for programs that are installed, but in a different version.
For example if deadbeef 0.4.4 is installed, pacman will remove the package for deadbeef 0.4.1 but keep for one for deadbeef 0.4.4.
And if you once installed KDE just to try it and then uninstalled it, all KDE packages will be deleted.
are these the programs "older" versions that are still there? it will keep the latest right?
the size of this folder is 2.7 gigs...im sure alot of that is older versions right?
I can't figure out or find out how to run the script seems like greek to me..
but wll the above command get rid of older versions? (which i assume is what the command output means by "uninstalled packages")?
and then after that, this output comes up..
/var/lib/pacman/
Do you want to remove unused repositories? [Y/n]
i use mirror status and reflector..so i'll proberly say "no" to this..
but saying yes to the first one shouldn't be a problem if as far as you know everything is working ok?
just wondering
Edit: the script itself tells us it is "cache_clean".
]]>bpat = re.compile(r'^(.+)-\d[^-]+-.+?(-i686|-x86_64|-any)?\.pkg\.tar.+(gz|xz)?$')
I know nothing about python, but it works from what I've seen.
]]>pacleaner in AUR
edit: I have now fixed it so it works and so it handles "any"
]]>File 'libjpeg-8-1-x86_64.pkg.tar.gz' doesn't match package pattern!
File 'libjpeg-8-2-x86_64.pkg.tar.gz' doesn't match package pattern!
Shouldn't it be libjpeg-8.2 not 8-2? I'm not sure as to how many packages deviate from the normal naming system, so it may not be worth changing.
]]>I just updated alterkacker's script in the wiki
(link to the wiki article: http://wiki.archlinux.org/index.php/CacheClean)
what I did:
-added -any architecture (so this script does not just support i686 and x86_64)
-fixed a bug where the script would fail if there were any directories in the cache
my /var/cache/pacman/pkg is a mounted container file, so I got a lost+found directory in there
previously the script simply failed - now it shows an info message on stdout + it continues
oh, I almost forgot to mention: maybe someone could take a quick look at my changes?
I don't know python - so I hope they are ok
Regards
]]>Though it is worth mentioning that we already increased a bit the complexity of -Sc, by proposing 2 different behaviors for pacman 3.2 :
http://projects.archlinux.org/?p=pacman … be93db0ca3
But well, the core part was like 5 lines of C code, so not that bad.
bpat = re.compile(r'(.+)-[^-]+-[0-9]+(-.+)?.pkg.tar.gz$')
Without this modification, xulrunner-1.8.1.14-2-i686.pkg.tar.gz and xulrunner-1.9-1-i686.pkg.tar.gz were left unerased in presence of xulrunner-1.9.0.1-1-i686.pkg.tar.gz.
]]>