yum安装出现No package vim available解决办法
2017-12-16 11:48
330 查看
yum (Yellowdog
Updater Modified)是一个集与查找,安装,更新和删除程序的Linux软件。它运行在RPM包兼容的Linux发行版本上,如:RedHat,
Fedora, SUSE, CentOS,
Mandriva。
今天我在用CentOS 5.5的yum命令安装的时候出现如下错误:
对于此错误,我一般习惯性先去更新一下yum仓库:
再次运行安装,发现错误依旧,看来这种猜包名的方法不适用;所以接下来可以通过yum的查找参数来列出vim相关的包名:
通过查看,我们可以看到,yum列出了详细的vim相关的包名,这样就可以顺利的安装vim了:
以上命令就能执行成功了。当然不仅仅vim安装,其他程序比如mysql我们也同样只要先进行yum查找,再通过匹配详细包名来进行安装,就不会出现上述错误了。
原文:http://bolg.malu.me/html/2011/1794.html
Updater Modified)是一个集与查找,安装,更新和删除程序的Linux软件。它运行在RPM包兼容的Linux发行版本上,如:RedHat,
Fedora, SUSE, CentOS,
Mandriva。
今天我在用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
以上命令就能执行成功了。当然不仅仅vim安装,其他程序比如mysql我们也同样只要先进行yum查找,再通过匹配详细包名来进行安装,就不会出现上述错误了。
原文:http://bolg.malu.me/html/2011/1794.html
相关文章推荐
- yum安装出现No package vim available解决办法
- yum 安装的时候出现错误
- yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- 关于liunx下yum安装mysql+apache+php+phpmyadmin出现的问题
- CentOS使用yum安装软件时出现Could not retrieve mirrorlist
- RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management
- 通过YUM 安装程序出现 Not installing key错误
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***” - ybq155
- yum安装时出现错误:[Errno 14] PYCURL ERROR 22
- redhat5.1安装本机yum出现的问题
- yum 安装rpm包是出现Exiting on user Command错误
- 解决 yum安装出现This system is not registered with RHN
- centos7 yum安装mysql出现Transaction check error: file /etc/my.cnf from install of mysql-libs
- yum安装出现No package vim available解决办法
- Linux使用yum安装时出现The program package-cleanup is found in the yum-utils package.解决方法
- yum安装出现This system is not registered with RHN
- yum安装inxi,出现No package inxi available.Error: Nothing to do的解决方法
- virtualbox中centos用yum安装的mysql关于权限出现的问题
- CentOS7yum安装出现/var/run/yum.pid 已被锁定,解决办法