yum安装出现No package vim available解决办法
yum?(Yellowdog Updater Modified)是一個(gè)集與查找,安裝,更新和刪除程序的Linux軟件。它運(yùn)行在RPM包兼容的Linux發(fā)行版本上,如:RedHat, Fedora, SUSE,?CentOS, Mandriva。
今天我在用CentOS 5.5的yum命令安裝的時(shí)候出現(xiàn)如下錯(cuò)誤:
[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
?
對(duì)于此錯(cuò)誤,我一般習(xí)慣性先去更新一下yum倉(cāng)庫(kù):
#yum -y update
再次運(yùn)行安裝,發(fā)現(xiàn)錯(cuò)誤依舊,看來(lái)這種猜包名的方法不適用;所以接下來(lái)可以通過(guò)yum的查找參數(shù)來(lái)列出vim相關(guān)的包名:
[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.
?
通過(guò)查看,我們可以看到,yum列出了詳細(xì)的vim相關(guān)的包名,這樣就可以順利的安裝vim了:
#yum -y install vim-enhanced.x86_64
以上命令就能執(zhí)行成功了。當(dāng)然不僅僅vim安裝,其他程序比如MySQL我們也同樣只要先進(jìn)行yum查找,再通過(guò)匹配詳細(xì)包名來(lái)進(jìn)行安裝,就不會(huì)出現(xiàn)上述錯(cuò)誤了
來(lái)源:http://blog.csdn.net/gl1987807/article/details/7253021
總結(jié)
以上是生活随笔為你收集整理的yum安装出现No package vim available解决办法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 省呗能提现到储蓄卡吗
- 下一篇: ngx_lua模块中的共享内存字典项AP