在RHEL 6.5上使用yum更新/安装软件的操作方法
1)首先,需要移除系统注册相关软件
∘查看相关软件:rpm-qa|grepsubscription-manager
∘移除相关软件:yumremovesubscription-manager
2)为了使用CentOS提供的yum源,需要删除系统自带的yum
∘rpm-aq|grepyum|xargsrpm-e--nodeps
3)从Centos上下载安装yum
∘wgethttp://vault.centos.org/6.0/os/x86_64/Packages/Python-iniparse-0.3.1-2.1.el6.noarch.rpm
∘wgethttp://vault.centos.org/6.0/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
∘wgethttp://vault.centos.org/6.0/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
∘wgethttp://vault.centos.org/6.0/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
∘rpm-ivhpython-iniparse-0.3.1-2.1.el6.noarch.rpm
∘rpm-ivhyum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
∘rpm-ivhyum-3.2.27-14.el6.centos.noarch.rpmyum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm
∘注意:yum-3.2.27-14.el6.centos.noarch.rpm和yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm相互依赖,需要同时安装
4)使用Centos的yum源更新
∘cd/etc/yum.repos.d/
∘wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
∘编辑CentOS6-Base-163.repo,将$releasever字段全部替换为6
∘yummakecache
∘yumvim* ===>仅用作测试,观察yum是否可用
5)示例:安装VirtualBox-4.3
∘从virtualbox官网下载VirtualBox-4.3-4.3.30_101610_el6-1.x86_64.rpm和Oracle_VM_VirtualBox_Extension_Pack-4.3.30-101610.vbox-extpack
∘rpm-ivhVirtualBox-4.3-4.3.30_101610_el6-1.x86_64.rpm,发现依赖libSDL
∘yuminstallSDL
∘rpm-ivhVirtualBox-4.3-4.3.30_101610_el6-1.x86_64.rpm,安装成功
∘双击运行Oracle_VM_VirtualBox_Extension_Pack-4.3.30-101610.vbox-extpack,安装扩展包
∘打开VirtualBox,开始自己的工作
以上就是小编为大家带来的在RHEL6.5上使用yum更新/安装软件的操作方法全部内容了,希望大家多多支持毛票票~