不多。`apt`是一个新的命令,它将`apt-get`和`apt-cache`的几个功能合并到一个命令中。它还有一些不完善之处,但以下是来自`--help`的命令列表:
Basic commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
update - update list of available packages
install - install packages
remove - remove packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
等效的功能设计为以类似的方式工作,但它不是一个代理命令(它不调用旧命令-它是直接在Apt库上的新接口),因此可能会有一些边缘情况的变化。
还有一些明显的遗漏(下载、策略等),这些都是高级用户会错过的,并且还有一系列未记录的命令(清除仍然有效,但我找不到任何相关信息)。
16.04更新:很多遗漏的功能现在已经包含在内,但尚未记录,也没有Bash补全。很遗憾花了这么长时间来实现已经存在于代码库中的功能,但没办法。我的建议是,如果你习惯使用apt-{get,cache}命令,请尝试在apt上使用它。也许会起作用。
在
man apt
页面中还有一个有趣的部分,名为
DIFFERENCES TO APT-GET(8)
。
The apt command is meant to be pleasant for end users and does
not need to be backward compatible like apt-get(8). Therefore
some options are different:
· 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.
如果你想要Bash自动补全功能,我已经尝试编写了一个补全文件
(点击这里)。这些文件已经随后期的Ubuntu安装包中一同提供。