由于apt上的手册页不清楚这个主题,您能告诉我apt-get -清除选项是否也可以在apt上使用。PLEASE注释:我指的是--清除选项,而不是没有两个破折号而使用的命令purge。
那么,在apt上也可以使用语法:D4:apt --purge autoremove吗?
如果不是,那么apt的等效命令是什么?
谢谢。
发布于 2021-03-18 13:10:12
是。你自己试试..。
$ apt --purge --simulate autoremove
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-5.8.0-43* linux-headers-5.8.0-43-generic*
linux-image-5.8.0-43-generic* linux-modules-5.8.0-43-generic*
linux-modules-extra-5.8.0-43-generic* linux-tools-5.8.0-43*
linux-tools-5.8.0-43-generic*
0 upgraded, 0 newly installed, 7 to remove and 5 not upgraded.
Purg linux-headers-5.8.0-43-generic [5.8.0-43.49]
Purg linux-headers-5.8.0-43 [5.8.0-43.49]
Purg linux-modules-extra-5.8.0-43-generic [5.8.0-43.49]
Purg linux-image-5.8.0-43-generic [5.8.0-43.49]
Purg linux-modules-5.8.0-43-generic [5.8.0-43.49]
Purg linux-tools-5.8.0-43-generic [5.8.0-43.49]
Purg linux-tools-5.8.0-43 [5.8.0-43.49]--simulate标志使得没有风险的测试变得容易。
https://askubuntu.com/questions/1324438
复制相似问题