[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 如何清理过时的apt cache



snow wrote:

>我想清除apt-get cache下的包,但保留目前所使用的版本,以防在重装后更新时需要再次下载.我应该怎么做呢? apt-get
>clean 是不是会清除cache里所有的包? 如果手工删除cache中的旧包不会有什么问题吧?
>  
>
apt-get autoclean

man apt-get中对autoclean的描述如下:
Like clean, autoclean clears out the local repository of retrieved pack?
age files. The difference is that it only removes package files that can
no longer be downloaded, and are largely useless. This allows a cache to
be maintained over a long period without it growing out of control. The
configuration option APT::Clean-Installed will prevent installed pack?
ages from being erased if it is set to off.




Reply to: