Difference between revisions of "CacheClean"

From ArchWiki
Jump to: navigation, search
(removed code to script since it's in the linked github repo)
(rw, no direct credits please)
Line 15: Line 15:
 
-v - (optional) show deleted packages.}}
 
-v - (optional) show deleted packages.}}
  
 +
== Code ==
 +
For those wishing to contribute, the script's source code is hosted in [https://github.com/graysky2/cacheclean/tree/master/cacheclean-source this github repository].
  
 
== See also ==
 
== See also ==
 
*Author's original forum thread: [http://bbs.archlinux.org/viewtopic.php?id=9104 A utility for cleaning /var/cache/pacman/pkg]
 
*Author's original forum thread: [http://bbs.archlinux.org/viewtopic.php?id=9104 A utility for cleaning /var/cache/pacman/pkg]
 
== Code ==
 
[[Graysky]] is hosting the code to this script in a github repo.  Those wishing to contribute, please see [[https://github.com/graysky2/cacheclean/tree/master/cacheclean-source this github]].
 

Revision as of 11:21, 2 January 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Cacheclean is python script to clean /var/cache/pacman/pkg allowing users to specify how many package versions should be retained. In function, it is similar to pacman -Sc except users select how many old versions to keep. Another difference is unlike, pacman -Sc cacheclean does not discriminate against packages that are not currently installed as it inspects /var/cache/pacman/pkg.

Installation

AUR package: cachecleanAUR

Usage

cacheclean {-p} {-v} <# of copies to keep>
	# of copies to keep - (required) how many generations of each package to keep
	-p - (optional) preview what would be deleted; forces verbose (-v) mode.
	-v - (optional) show deleted packages.

Code

For those wishing to contribute, the script's source code is hosted in this github repository.

See also