首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >apt与apt的定义

apt与apt的定义
EN

Ask Ubuntu用户
提问于 2021-03-18 12:37:31
回答 1查看 258关注 0票数 0

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

那么,在apt上也可以使用语法:D4apt --purge autoremove吗?

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

谢谢。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-03-18 13:10:12

是。你自己试试..。

代码语言:javascript
复制
$ 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标志使得没有风险的测试变得容易。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1324438

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档