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....
Apt 可以通过 clean 和 autoclean 选项自行完成此操作。
你可以删除任何你想要里面的文件
/var/cache
。引用文件系统层次标准 v 2.3,Debian 软件包必须遵循:1因此,Debian 中的任何软件都应该能够从
find /var/cache -type f -print0 | xargs -0 rm -f