You are not logged in.

#1 2016-07-07 04:47:54

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,627
Website

pkgcacheclean replaces cacheclean

Make room with pkgcacheclean in Arch

All installed packages will be cached in /var/cache/pacman/pkg
If you look in this cache you will be surprised to find as much as four or five versions of the same program.
If you want to make room than it is useful to purge the cache of too many versions of the same program with pkgcacheclean: https://aur.archlinux.org/packages/pkgcacheclean/
Do as root: #pkgcacheclean -v
to actually do it.

Usage: pkgcacheclean [options] [number]
The default number is 2. That means, for all installed packages, the currently used version and the newest of the remaining cache is retained. All caches of not-installed packages are removed.
Currently, supported options only includes -v/--verbose, -q/--quiet, -n/--dry-run, -k/--all-as-installed.

source: https://bbs.archlinux.org/viewtopic.php?pid=841774


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#2 2016-07-07 23:50:59

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,896

Re: pkgcacheclean replaces cacheclean

I use pacman -Sc quite often, as I tend to update regularly. It is very rare that I need to downgrade a package (something that I dislike doing). Why do you need to store package anyway?

Did notice that thread is quite old, not checked if package is up to date.

paccache -h
paccache (pacman) v5.0.1

A flexible pacman cache cleaning utility.

Usage: paccache <operation> [options] [targets...]

  Operations:
    -d, --dryrun          perform a dry run, only finding candidate packages.
    -m, --move <dir>      move candidate packages to "dir".
    -r, --remove          remove candidate packages.

  Options:
    -a, --arch <arch>     scan for "arch" (default: all architectures).
    -c, --cachedir <dir>  scan "dir" for packages. can be used more than once.
                          (default: read from /etc/pacman.conf).
    -f, --force           apply force to mv(1) and rm(1) operations.
    -h, --help            display this help message and exit.
    -i, --ignore <pkgs>   ignore "pkgs", comma-separated. Alternatively, specify
                          "-" to read package names from stdin, newline-
                          delimited.
    -k, --keep <num>      keep "num" of each package in the cache (default: 3).
        --nocolor         remove color from output.
    -q, --quiet           minimize output
    -u, --uninstalled     target uninstalled packages.
    -v, --verbose         increase verbosity. specify up to 3 times.
    -z, --null            use null delimiters for candidate names (only with -v
                          and -vv).

Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artix-linux.github.io/migrate/

Offline

#3 2016-07-08 08:05:11

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,627
Website

Re: pkgcacheclean replaces cacheclean

I hate to have no older packages around. I regularly downgrade packages, when there is some functionality loss after an upgrade.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#4 2016-07-08 08:22:20

eric
Member
Registered: 2015-07-10
Posts: 239
Website

Re: pkgcacheclean replaces cacheclean

it's important for a maintainer to have some older package into the cash, thanks for the link pablokal, usefull for me smile


Obarun : free to control your system

Offline

#5 2016-07-08 12:19:10

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,896

Re: pkgcacheclean replaces cacheclean

For iso I have both i686 and x86_64 packages in cache, its important for me to clean it from time to time. Checked this morning after reading post and cache was at 1.7G ;(

Old packages suck!


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artix-linux.github.io/migrate/

Offline

Board footer

Powered by FluxBB