![`apt clean` 与 `apt-get clean`](https://linux22.com/image/96963/%60apt%20clean%60%20%E4%B8%8E%20%60apt-get%20clean%60.png)
这些apt
命令与其apt-get
对应命令/同名命令相同吗?
apt clean
apt-get clean
apt autoclean
apt-get autoclean
apt autoremove
apt-get autoremove
看来确实如此。只是想确认一下。
答案1
从man apt
:
与 APT-GET(8) 的差异 apt 命令旨在让最终用户感到愉快,并且不需要像 apt-get(8) 那样向后兼容。因此一些选项是不同的:
· The option DPkgPM::Progress-Fancy is enabled. · The option APT::Color is enabled. · A new list command is available similar to dpkg --list. · The option upgrade has --with-new-pkgs enabled by default.