Update the and installation method on RHEL 6.5 using yum

  • 2020-05-15 03:17:39
  • OfStack

1) first of all, we need to remove the system registration related software

The & # 8728; See related software: rpm-qa | grep subscription-manager

The & # 8728; Remove related software: yum remove subscription-manager

2) in order to use the yum source provided by CentOS, it is necessary to delete the yum that comes with the system

∘ rpm -aq | grep yum | xargs rpm -e --nodeps

3) download and install yum from Centos

∘ wget http://vault.centos.org/6.0/os/x86_64/Packages/Python-iniparse-0.3.1-2.1.el6.noarch.rpm

∘ wget http://vault.centos.org/6.0/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm

∘ wget http://vault.centos.org/6.0/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm

∘ wget http://vault.centos.org/6.0/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm

∘ rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

∘ rpm -ivh yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm

∘ rpm -ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm

The & # 8728; Note: yum 3.2.27-14. el6. centos. noarch. rpm and yum - plugin - fastestmirror 1.1.26-11. el6. noarch. rpm depend on each other, need to be installed at the same time

4) update yum source with Centos

∘ cd /etc/yum.repos.d/

∘ wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

The & # 8728; Edit CentOS6-Base-163.repo to replace all the $releasever fields with 6

∘ yum makecache

∘ yum vim* === > For testing purposes only, see if yum is available

5) example: install VirtualBox-4.3

The & # 8728; Download VirtualBox-4.3-4.3.30 _101610_el6-1.x86_64.rpm and Oracle_VM_VirtualBox_Pack-4.3.30-101610.vbox-extpack from the virtualbox website

The & # 8728; rpm-ivh ivh es104.3-4.3.30 _101610_el6-1.x86_64.rpm, found to be dependent on libSDL

∘ yum install SDL

The & # 8728; rpm-ivh VirtualBox-4.3.30 _101610_el6-1. x86_64.rpm, successful installation

The & # 8728; Double-click to run Oracle_VM_VirtualBox_Extension_Pack-4.3.30-101610.vbox-extpack to install the extension

The & # 8728; Open VirtualBox and start your own work


Related articles: