|
|

楼主 |
发表于 2009-1-8 19:41:11
|
显示全部楼层
emerge- --depclean
- Cleans the system by removing packages that are not associated with explicitly
- merged packages. Depclean works by creating the full dependency tree from the sys‐
- tem and world sets, then comparing it to installed packages. Packages installed,
- but not part of the dependency tree, will be uninstalled by depclean. See
- --with-bdeps for behavior with respect to build time dependencies that are not
- strictly required. Packages that are part of the world set will always be kept.
- They can be manually added to this set with emerge --noreplace <atom>. As a safety
- measure, depclean will not remove any packages unless *all* required dependencies
- have been resolved. As a consequence, it is often necessary to run emerge --update
- --newuse --deep world prior to depclean.
-
- WARNING: Inexperienced users are advised to use --pretend with this option in
- order to see a preview of which packages will be uninstalled. Always study the
- list of packages to be cleaned for any obvious mistakes. Note that packages listed
- in package.provided (see portage(5)) may be removed by depclean, even if they are
- part of the world set. Also note that depclean may break link level dependencies.
- Thus, it is recommended to use a tool such as revdep-rebuild(1) in order to detect
- such breakage.
- Depclean serves as a dependency aware version of --unmerge. When given one or more
- atoms, it will unmerge matched packages that have no reverse dependencies. Use
- --depclean together with --verbose to show reverse dependencies.
复制代码 |
|