- 問題描述
[root@localhost ~]# vim /etc/profile
-bash: vim: 未找到命令
-
解決辦法
使用yum安裝方法解決 yum -y install 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
當(dāng)看到下面提示即完成
更新完畢:
vim-minimal.x86_64 2:7.4.160-4.el7
作為依賴被升級:
libdrm.x86_64 0:2.4.83-2.el7
完畢!