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