刚刚发现有一个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 …Run Code Online (Sandbox Code Playgroud)