Yum installation appears no package VIM available solution

Source: Internet
Author: User

Today I was installing with the CentOS 7 Yum command with the following error:

[[email protected] ~]# 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

For this error, I am generally accustomed to updating the Yum repository first:

#yum -y update

Run the installation again, find the error is still, it seems that the method of guessing the name of the package is not applicable, so you can then use the Yum lookup parameters to list the VIM-related package name:

[[email protected] 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.

By looking at it, we can see that Yum lists the detailed vim-related package names so that VIM can be installed smoothly:

#yum -y install vim-enhanced.x86_64

The above command will be executed successfully. Of course, not only vim installation, other programs such as MySQL we also need to do the Yum lookup first, and then by matching the detailed package name to install, there will be no such error.


Yum installation appears no package VIM available solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.