直接使用apt vs apt-*?

xgd*_*gsc 25 package-management apt

刚刚发现有一个apt命令可以直接使用:

 $sudo apt 
 apt 1.0.1ubuntu2 for amd64 compiled on Apr 10 2014 13:03:39
 Usage: apt [options] command

 CLI for apt.
 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
Run Code Online (Sandbox Code Playgroud)

apt-get. 它在 CLI 界面中提供了一些颜色。所以我想知道aptapt-*命令之间是否有一些主要区别?为什么人们似乎张贴的命令apt-get installapt-cache search当他们根本不需要额外的选项apt-*命令提供,而apt与所有额外的着色类似的功能更短,而在我看来,更好的输出格式?只是习惯吗?

我在手册页中看到apt是针对最终用户的,而其他低级命令则是针对脚本的。那么为什么每个人都发布那些低级命令而不是更用户友好的高级命令呢?

小智 18

没有多少人推荐更简单的 apt 工具的原因是它是新的。直到一周前 14.04 版本才出现在 Ubuntu 中。

对于大多数交互式用途,它是等效的,但更易于使用且看起来更好。

  • 您可以[启用进度条](http://www.omgubuntu.co.uk/2014/04/how-to-enable-apt-terminal-progress-bar),这非常酷且方便。 (10认同)