出现的问题
在使用 yum -y install ××
的时候,出现错误提示
No package ×× available.
Nothing to do
解决的方法
1、先更新一下yum仓库试试
yum -y update
2、通过yum的search方法查找包名
yum search vim
这时候出现有关于vim的包名如下
vim-X11.x86_64 : The VIM version of the vi editor for the X Window System.
vim-common.x86_64 : The common files needed by any version of the VIM editor.
vim-enhanced.x86_64 : A version of the VIM editor which includes recent
通过yum安装即可
yum -y install vim-enhanced.x86_64