• 技术文章 >常用工具 >Vim

    centos安装vim失败解决

    yangyang2020-02-25 11:28:32原创4873

    centos安装vim失败解决方法:(推荐: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

    更多python知识请关注python视频教程

    专题推荐:vim
    品易云
    上一篇:centos提示vim错误解决方法 下一篇:为什么centos不能使用vim?

    相关文章推荐

    • centos7中vi与vim的区别• centos vim不能用• centos vim怎么编辑文件内容?• centos7怎么安装vim编辑器?

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网