centos7 安装vim

2018-12-03  本文已影响0人  狗子家的铲屎官
[root@localhost ~]# vim /etc/profile
-bash: vim: 未找到命令
[root@localhost ~]# yum -y install vim*
已加载插件:fastestmirror
base                                                                                | 3.6 kB  00:00:00     
extras                                                                              | 3.4 kB  00:00:00     
updates                                                                             | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: mirrors.zju.edu.cn
 * updates: mirrors.aliyun.com

当看到下面提示即完成

更新完毕:
  vim-minimal.x86_64 2:7.4.160-4.el7                                                                       

作为依赖被升级:
  libdrm.x86_64 0:2.4.83-2.el7                                                                             

完毕!

上一篇 下一篇

猜你喜欢

热点阅读