Yum (Yellowdog Updater Modified) is a set of Linux software for finding, installing, updating, and removing programs.
It runs on the RPM Package compatible Linux distributions, such as: RedHat, Fedora, Suse,centos, Mandriva.
Question 1:
No Package VIMRC available. Error:nothing Todo
To solve this series of problems: please back up libperl.so (must):
[Root@localhost core]# pwd
/usr/lib64/perl5/core
[Root@localhost core]# cp-r libperl.so/home/
-------------------------------------------------------------------------------------------
[root@localhost etc]# yum-y Install vim*
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
* base:mirror.bit.edu.cn
* extras:mirrors.yun-idc.com
* updates:mirrors.opencas.cn
No Package VIMRC available.
Error:nothing Todo
To view the installation packages on the Yum service:
[root@localhost etc]# Yum List | grep vim
vim-x11.x86_64 2:7.4.160-1.el7 @/
vim-common.x86_64 2:7.4.160-1.el7 @/
vim-enhanced.x86_64 2:7.4.160-1.el7 @/
vim-filesystem.x86_64 2:7.4.160-1.el7 @/
vim-minimal.x86_64 2:7.4.160-1.el7 @anaconda
Golang-vim.noarch 1.3.3-3.EL7 Base
Update Yum Warehouse:
[Root@localhost etc]# yum-y Update
******************
List VIM-related package names with Yum lookup parameters:
[Root@localhost etc]# Yum Search vim
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
* base:mirror.bit.edu.cn
* extras:mirror.bit.edu.cn
* updates:mirrors.opencas.cn
============= N/S Matched:vim =======================
Golang-vim.noarch:vim Plugins for Go
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-filesystem.x86_64:vim FileSystem layout
Vim-minimal.x86_64:a minimal version of the VIM editor
Name and summary matches only, with "search all" for everything.
solution 1: Yum install-y vim-enhanced.x86_64
Question 1 Unresolved entry question 2:
[Root@localhost etc]# Yum install-y vim-enhanced.x86_64
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
* base:mirror.bit.edu.cn
* extras:mirrors.yun-idc.com
* updates:mirrors.opencas.cn
Package 2:vim-enhanced-7.4.160-1.el7.x86_64 already installed and latest version
Nothing todo
Solve:
[Root@localhost etc]# Rpm-qa | Grep-i vim
Vim-x11-7.4.160-1.el7.x86_64
Vim-common-7.4.160-1.el7.x86_64
Vim-enhanced-7.4.160-1.el7.x86_64
Vim-filesystem-7.4.160-1.el7.x86_64
Vim-minimal-7.4.160-1.el7.x86_64
[Root@localhost etc]# rpm-e vim-minimal-7.4.160-1.el7.x86_64
[Root@localhost etc]# rpm-e--nodeps vim-minimal-7.4.160-1.el7.x86_64
...... Uninstall all.
Attention:
RPM-E vimxxx//Normal deletion mode
RPM-E--nodeps vimxxx//Brute-force deletion mode, if you use the above command to delete, prompted to rely on other files, the command can be forcibly removed, may cause unexpected errors, system damage.
[Root@localhost etc]# cd/etc/
[Root@localhost etc]# RM-RF Vimrc.rpmsave
And then:
[root@localhost core]# yum-y Install vim*
Log ...
The installation was successful.
Run Check:
[Root@localhost etc]# Vim
Vim:error while loading shared libraries:/usr/lib64/perl5/core/libperl.so:file Too Short
At this point, libperl.so back up the file, restore it, the operation causes libperl.so to be empty, so after the restore. On the completion of the solution, vim normal use.