Download and copy the appropriate yum configuration file in place, by running the following commands as root:

Oracle Linux 7

# cd/etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-ol7.repo

Oracle Linux 6

# cd/etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-ol6.repo

Oracle Linux 5

# cd/etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-el5.repo

Oracle Linux 4, Update 6 or Newer

# cd/etc/yum.repos.d

# mv Oracle-Base.repo Oracle-Base.repo.disabled

# wget http://public-yum.oracle.com/public-yum-el4.repo

Oracle OpenStack for Oracle Linux 2.0

# cd/etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-ol7.repo

# yum install yum-plugin-priorities

Note: Make sure to enableol7_optional_latest repository before installing yum-plugin-priorities on yoursystem

Oracle OpenStack for Oracle Linux 1.0

# cd/etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-openstack-ol6.repo

Oracle VM 2

# cd/etc/yum.repos.d

# wget http://public-yum.oracle.com/public-yum-ovm2.repo

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐