RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
centos安装vim失败怎么办

小编给大家分享一下centos安装vim失败怎么办,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

为海南州等地区用户提供了全套网页设计制作服务,及海南州网站建设行业解决方案。主营业务为成都网站设计、网站建设、海南州网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

centos安装vim失败解决方法:

在线安装vim:   yum install vim

今天我在用CentOS 5.5的yum命令安装的时候出现如下错误:

[root@malu2 ~]# yum install vim
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.hosting90.cz
* extras: mirror.hosting90.cz
* updates: mirror.hosting90.cz
Setting up Install Process
No package vim available.
Nothing to do

解决办法:

更新一下yum仓库:

#yum -y update

再次运行安装,发现错误依旧,看来这种猜包名的方法不适用;所以接下来可以通过yum的查找参数来列出vim相关的包名:

[root@malu2 yum.repos.d]# yum search vim
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.hosting90.cz
* extras: mirror.hosting90.cz
* updates: mirror.hosting90.cz
===================== Matched: 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
: enhancements.
vim-minimal.x86_64 : A minimal version of the VIM editor.

通过查看,我们可以看到,yum列出了详细的vim相关的包名,这样就可以顺利的安装vim了:

#yum -y install vim-enhanced.x86_64

看完了这篇文章,相信你对centos安装vim失败怎么办有了一定的了解,想了解更多相关知识,欢迎关注创新互联行业资讯频道,感谢各位的阅读!


文章标题:centos安装vim失败怎么办
网页网址:http://sczitong.cn/article/jdjhde.html