LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2022|回复: 8

Gentoo系统清理工具(抛砖引玉)

[复制链接]
发表于 2006-10-11 17:28:48 | 显示全部楼层 |阅读模式
找了一下,Gentoo中的系统清理工具有如下几个:
1、清理distfiles,packages目录的工具eclean,包括eclean-dist,eclean-pkg,这两个工具包含在gentoolkit这个包中。SO:
  1. #emerge gentoolkit
复制代码

使用方法:man eclean

2、清理world文件的工具dep,这个工具包含在udept议这个包中。这个工具的作用很简单,也很强大,它可以清除world文件中多余的包记录,以建立更加精简有效的world文件。
  1. #emerge udept
复制代码

使用方法:

  1. dep [OPTION]... [ACTION | INFO-TYPE [PACKAGE | VIRTUAL | FILE | USE |
  2.                                         CATEGORY | PATTERN]...]
  3. List dependencies and reverse dependencies of packages, and clean the world file
  4. and the set of installed packages.

  5. Action selection:
  6.       --usage                Display usage
  7.   -h, -?, --help             Display this help
  8.   -V, --version              Show version
  9.   -P, --purge                Unmerge unneeded SLOTted packages (of PACKAGE...)
  10.   -d, --depclean             Unmerge all unneeded packages (of PACKAGE...)
  11.   -w, --pruneworld           Remove redundant entries from the world file
  12.   -E, --filter-etc-portage   Remove redundant entries from files in /etc/portage
  13.   -s, --spring-clean         An incredibly slow recursive depclean
  14.   -O, --overlay-clean        Identify unused ebuilds in an overlay

  15. Info types:
  16.   -c, --category             Show category resolutions of PACKAGE
  17.   -C, --catpackages          Show packages in CATEGORY
  18.   -e, --versions             List versions of PACKAGE, with status
  19.   -f, --contents             List contents of PACKAGE
  20.   -F, --owners               List packages owning FILE
  21.   -g, --search               Search for packages matching PATTERN
  22.   -i, --info                 Display PACKAGE info (HOMEPAGE, DESCRIPTION, etc.)
  23.   -j[num], --changelog[=num] Display Portage ChangeLog entries for PACKAGE
  24.   -k, --keywords             Show per-arch keyword status for PACKAGE
  25.   -l, --depends              (default) List dependencies of PACKAGE
  26.   -L, --rev-depends          List reverse dependencies of PACKAGE
  27.   -r, --provides             List virtuals PACKAGE provides
  28.   -R, --virtuals             List packages providing VIRTUAL
  29.   -S, --depstrings           Display the dependency strings for PACKAGE
  30.   -t, --tree-depends         Display the full dependency tree for PACKAGE
  31.   -T, --reverse-tree         Display the reverse dependency tree for PACKAGE
  32.   -u, --usedesc              Show USE flags and descriptions of PACKAGE
  33.   -U, --iuse                 List packages that (say they) respect USE
  34.   -x, --exists               Show whether PACKAGE depends on later PACKAGEs
  35.   -X, --rev-exists           Show whether later PACKAGEs depend on PACKAGE
  36.   -z, --size                 Display disk space used by PACKAGE

  37. Options: (--option=[yes,no] unless otherwise indicated)                (default)
  38.   ±K, --colour[=yes,no,auto,html] Colour output                        (auto)
  39.   ±v[num], --verbose[=num] Verbosity level (cumulative)   (1 console, 0 pipe)
  40.   ±1, --for-emerge        Produce output suitable for emerge --oneshot   (no)
  41.   ±b, --build-time        Include deps needed to build PACKAGE          (yes)
  42.   ±o, --original-depends  Calculate deps as when PACKAGE was merged      (no)
  43.   ±q, --unique-depends    Show dependencies that only PACKAGE requires   (no)
  44.   ±D[num], --depth[=num]  Depth to follow dependency trees        (unlimited)
  45.   ±n, --uninstalled       Include uninstalled packages in searches       (no)
  46.   ±a, --ask               For -[Pdw]: ask to perform action             (yes)
  47.   ±p, --pretend           For -[Pdw]: just show what would be done       (no)
复制代码

议这两个工具都是官方portage中的包,所以值得推荐。我在这里抛了"砖",希望可以引到"玉"。:%
发表于 2006-10-11 20:50:06 | 显示全部楼层
支持一下,装gentoo到现在差不多一个月了,该装的想装的玩的都装过了,也该清理一下了……
回复 支持 反对

使用道具 举报

发表于 2006-10-11 21:36:49 | 显示全部楼层
希望有ô多的玉!
回复 支持 反对

使用道具 举报

发表于 2006-10-11 21:45:52 | 显示全部楼层
有意思,留个名
回复 支持 反对

使用道具 举报

发表于 2006-10-12 01:07:37 | 显示全部楼层
未雨绸缪
留个名字
回复 支持 反对

使用道具 举报

一剑光寒十五州 该用户已被删除
发表于 2010-10-23 23:56:10 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2010-10-24 09:11:25 | 显示全部楼层
mark~ :)
回复 支持 反对

使用道具 举报

发表于 2010-10-25 22:43:07 | 显示全部楼层
udept被M了。
回复 支持 反对

使用道具 举报

发表于 2010-10-30 11:55:07 | 显示全部楼层
还有两个工具
flagedit,用来精简USE标记的
portpeek,用来精简/etc/portage/package.keywords文件的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表