Eclean/zh-cn

是一个清理 Portage 源文件和二进制包的工具. 它是 包的一部分，并由 Portage-Tools 项目维护.

Emerge
Install :

使用
By default, source files are located in the directory, while binary packages are located in the  directory. The locations for each can be changed by altering the DISTDIR and the PKGDIR variables respectively in. Both locations can grow quite big if not periodically cleaned; this is the reason was created.

全参数列表
Use to see full action summary, options list, and usage breakdown:

清理 源文件
通过  参数清理源文件存放目录：

或者使用更简短的命令：

清理二进制文件
使用下面的命令清理二进制包：

或者使用更简短的命令：

默认情况下，Portage 树中的任何 ebuild 对应的源文件和二进制包都不会被删除. 这样系统管理员可以很容易的对包进行降级或者安装之前删除的包.

As an example, suppose packages foo-1.0 and foo-1.1 are both in the Portage tree. After updating from foo-1.0 to foo-1.1, run : source files for both versions will be kept, so if a problem occurs with foo-1.1 then the user can easily re-install foo-1.0 without re-downloading anything.

The other possible case is installing a previously removed package. Suppose that a package foo (any version) is installed on the system. After (inadvertently) removing it and running, the source files for foo will be kept, so it can be re-installed without re-downloading anything.

对二进制包同样的例子也一样适用.

为节省硬盘空间，添加  选项：对于非 “当前安装” 版本的包的每个源文件或者二进制包都会被删除. 请注意，这种方式当用户需要降级安装某个包或者重新安装之前删除的包的时候都必须重新下载.

一个替代方案是，同时使用  和   选项：对于某些非当前安装的包（不管版本号是什么）的每个源文件或者二进制包都会被删除. 这种方式当用户需重新安装之前删除的包的时候都必须重新下载，但是要降级安装某个包则不需要.

更多细节请参阅 eclean(1) man page：

另请参阅

 * Gentoolkit
 * Knowledge Base: Remove obsoleted distfiles