apt 与 apt-get 的定义

风暴领主

由于apt有关此主题的手册页不清楚,您能否告诉我是否也可以使用apt-get --purge选项apt请注意:我指的是选项--purge而不是没有两个破折号的命令清除

那么,语法:是否apt-get --purge autoremove可以apt像这样使用:apt --purge autoremove

如果不是,那么等效的命令是apt什么?

谢谢你。

用户535733

是的。自己试试...

$ 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标志使无风险的测试变得容易。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章