|
找了一下,Gentoo中的系统清理工具有如下几个:
1、清理distfiles,packages目录的工具eclean,包括eclean-dist,eclean-pkg,这两个工具包含在gentoolkit这个包中。SO:
使用方法:man eclean
2、清理world文件的工具dep,这个工具包含在udept议这个包中。这个工具的作用很简单,也很强大,它可以清除world文件中多余的包记录,以建立更加精简有效的world文件。
使用方法:
- dep [OPTION]... [ACTION | INFO-TYPE [PACKAGE | VIRTUAL | FILE | USE |
- CATEGORY | PATTERN]...]
- List dependencies and reverse dependencies of packages, and clean the world file
- and the set of installed packages.
- Action selection:
- --usage Display usage
- -h, -?, --help Display this help
- -V, --version Show version
- -P, --purge Unmerge unneeded SLOTted packages (of PACKAGE...)
- -d, --depclean Unmerge all unneeded packages (of PACKAGE...)
- -w, --pruneworld Remove redundant entries from the world file
- -E, --filter-etc-portage Remove redundant entries from files in /etc/portage
- -s, --spring-clean An incredibly slow recursive depclean
- -O, --overlay-clean Identify unused ebuilds in an overlay
- Info types:
- -c, --category Show category resolutions of PACKAGE
- -C, --catpackages Show packages in CATEGORY
- -e, --versions List versions of PACKAGE, with status
- -f, --contents List contents of PACKAGE
- -F, --owners List packages owning FILE
- -g, --search Search for packages matching PATTERN
- -i, --info Display PACKAGE info (HOMEPAGE, DESCRIPTION, etc.)
- -j[num], --changelog[=num] Display Portage ChangeLog entries for PACKAGE
- -k, --keywords Show per-arch keyword status for PACKAGE
- -l, --depends (default) List dependencies of PACKAGE
- -L, --rev-depends List reverse dependencies of PACKAGE
- -r, --provides List virtuals PACKAGE provides
- -R, --virtuals List packages providing VIRTUAL
- -S, --depstrings Display the dependency strings for PACKAGE
- -t, --tree-depends Display the full dependency tree for PACKAGE
- -T, --reverse-tree Display the reverse dependency tree for PACKAGE
- -u, --usedesc Show USE flags and descriptions of PACKAGE
- -U, --iuse List packages that (say they) respect USE
- -x, --exists Show whether PACKAGE depends on later PACKAGEs
- -X, --rev-exists Show whether later PACKAGEs depend on PACKAGE
- -z, --size Display disk space used by PACKAGE
- Options: (--option=[yes,no] unless otherwise indicated) (default)
- ±K, --colour[=yes,no,auto,html] Colour output (auto)
- ±v[num], --verbose[=num] Verbosity level (cumulative) (1 console, 0 pipe)
- ±1, --for-emerge Produce output suitable for emerge --oneshot (no)
- ±b, --build-time Include deps needed to build PACKAGE (yes)
- ±o, --original-depends Calculate deps as when PACKAGE was merged (no)
- ±q, --unique-depends Show dependencies that only PACKAGE requires (no)
- ±D[num], --depth[=num] Depth to follow dependency trees (unlimited)
- ±n, --uninstalled Include uninstalled packages in searches (no)
- ±a, --ask For -[Pdw]: ask to perform action (yes)
- ±p, --pretend For -[Pdw]: just show what would be done (no)
复制代码
议这两个工具都是官方portage中的包,所以值得推荐。我在这里抛了"砖",希望可以引到"玉"。:% |
|