apt与apt-get的区别
Tofloor
poster avatar
qingxp9
deepin
2017-02-01 06:56
Author

apt提供了大多数与apt-get及apt-cache有的功能,但更方便使用。


常用命令:


  • list - 根据名称列出软件包 dpkg list
  • search - 搜索软件包描述 apt-cache search
  • show - 显示软件包细节 apt-cache show
  • install - 安装软件包 apt-get install
  • remove - 移除软件包 apt-get remove
  • update - 更新可用软件包列表 apt-get update
  • upgrade - 通过 安装/升级 软件来更新系统 apt-get upgrade
  • full-upgrade - 通过 卸载/安装/升级 来更新系统 apt-get dist-upgrade
  • edit-sources - 编辑软件源信息文件 vim /etc/apt/sources.list


Reply Favorite View the author
All Replies
avatar
Guumi
deepin
2017-02-01 17:10
#1
区别呢?没有细说哦!
Reply View the author
avatar
Feng Yu
deepin
2017-02-01 17:56
#2
https://bbs.deepin.org/post/134576
区别呢?没有细说哦!

几乎没区别,因为apt未来会把apt-xxx的那几个子命令全部合并。debian认为apt-xxx太蛋疼了,用户得记住这么多命令,干脆全部统一到apt得了。

目前apt功能还不算完善,并未全部实现apt-xxx的功能以及某些参数,但是未来会逐步统一的。
Reply View the author
avatar
南浦月
deepin
2017-02-05 01:19
#3
大势所趋
Reply View the author