...but, with new features!:
- * Clean old distfiles in the $DISTDIR directory (/usr/portage/distfiles)
* Clean old binary packages files in $PKGDIR directory (/usr/portage/packages)
* Clean old dirs and files in $WORKDIR directory (/var/tmp/portage)
* Clean old portage's log files in $PORT_LOGDIR (/var/log/portage)
Yacleaner Repository: http://blog.tacvbo.net/data/files/yacleaner/
Yacleaner Mirror: http://gentoo.org.mx/yacleaner/
Code: Select all
$ ./yacleaner-0.3.3 --help
Usage:
yacleaner-0.3.3 [ options ] [ action ] < dist | binpkg | worktmp | log | all >
yacleaner-0.3.3 --help
Options: [ --ask | --nocolor | --pretend | --verbose ]
Actions: [ --delete ] [ --move=<dir> ]
Help (this screen):
--help (-h short option)
Displays this help
Actions:
--delete (-d short option)
Deletes the old files. This is the default action.
--move=<dir> (-d short option)
Moves the old files to the selected directory.
Options:
--ask (-a short option)
Before performing the clean, display what files will be deleted,
in the same format as when using --pretend; then ask whether to
continue with the clean or abort.
--nocolor (-C short option)
Make sure none of the output from yacleaner contains color.
--pretend (-p short option)
Instead of actually performing the clean, simply display what
files *would* have been deleted if --pretend weren't used.
--verbose (-v short option)
Tell yacleaner-0.3.3 to run in verbose mode. Shows the list of files to
delete.
--version (-V short option)
Displays the version of yacleaner.
Arguments:
dist
Remove old dist files on /usr/portage/distfiles
binpkg
Remove old binary files on /usr/portage/packages
worktmp
Remove old temporary files on /var/tmp/portage
log
Remove old log files on /var/log/portage
all
Remove old files on /usr/portage/distfiles,
/usr/portage/packages, /var/tmp/portage,
and /var/log/portage
Code: Select all
$ ./yacleaner-0.3 all
These are the old files that I would delete:
[ worktmp ] 7045 K
[ log ] 5385 K
[ dist ] 78872 K
[ binpkg ] 2408 K
[ total ] 91 M
>>> Waiting 5 seconds before starting...
>>> (Control-C + Enter to abort)...
>>> Cleaning in 1 2 3 4 5
>>> Deleting old files...
Please enter your root Password:
* /var/tmp/portage cleaned.
* /var/log/portage cleaned.
* /usr/portage/distfiles cleaned.
* /usr/portage/packages cleaned.
Code: Select all
$ ./yacleaner-0.3 --verbose --ask all
These are the old files that I would delete:
[ worktmp ] typespeed-0.4.4-r1 297K
[ log ] 5498-typespeed-0.4.4-r1.log 8.0K
[ log ] 5499-typespeed-0.4.4-r1.log 4.0K
[ dist ] linux-2.6.10.tar.bz2 36M
[ dist ] linux-2.6.9.tar.bz2 36M
[ binpkg ] All/sandbox-1.2.8.tbz2 132K
[ binpkg ] All/sandbox-1.2.9.tbz2 132K
[ binpkg ] sys-apps/sandbox-1.2.8.tbz2 0
[ binpkg ] sys-apps/sandbox-1.2.9.tbz2 0
[ total ] 71 M
Do you want me to delete these old files? [Yes/No]






