我正在尝试释放服务器上的一些空间,然后我注意到
/var/cache/apt has 322M
假设它只是一个缓存,我认为删除这些文件应该没问题,如果再次需要它,那么它就会再次下载这些文件
这是正确的假设吗?
服务器:debian 4
答案1
Apt 可以使用 clean 和 autoclean 选项自行完成此操作。
clean
clean clears out the local repository of retrieved package
files. It removes everything but the lock file from
/var/cache/apt/archives/ and /var/cache/apt/archives/partial/ ....
autoclean
Like clean, autoclean clears out the local repository of retrieved
package files. The difference is that it only removes package files
that can no longer be downloaded, and are largely useless....