Ubuntu 16.04.4 LTS amd64
$ sudo apt-get install vim
安装$ echo $?
检测安装结果
- 0,安装成功
- 非0,安装失败
zhouk@ubuntu:~$ sudo apt-get install vim
[sudo] password for zhouk:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
vim-runtime
Suggested packages:
ctags vim-doc vim-scripts vim-gnome-py2 | vim-gtk-py2 | vim-gtk3-py2
| vim-athena-py2 | vim-nox-py2
The following NEW packages will be installed:
vim vim-runtime
0 upgraded, 2 newly installed, 0 to remove and 18 not upgraded.
Need to get 6,