Reference:http://blog.itpub.net/26524307/viewspace-1063925/
View version:
[Email protected] yum.repos.d]# lsb_release-a
LSB Version:: base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64: Graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor Id:oracleserver
Description:oracle Linux Server Release 6.6
release:6.6
codename:n/a
My Oracle Enterprise Linux version is 5.6, the purpose of configuring the Yum source is because I install control-center rpm package, the RPM package is too dependent on the
Installation is too cumbersome to think of installing a Yum source to install
Install the wget with the ISO installation disk first (do not install if you have one)
Mount-o Loop/dev/hdc/root/linux
[[Email protected]]# cd/root/linux---Oracle Enterprise linux ISO installation CD mount point
[[Email protected]]# CD server/
[Email protected]]# rpm-ivh wget-1.11.4-2.el5_4.1.i386.rpm
Warning:wget-1.11.4-2.el5_4.1.i386.rpm:header V3 DSA Signature:nokey, key ID 1e5e0159
Preparing ... ########################################### [100%]
1:wget ########################################### [100%]
[[Email protected]]# cd/etc/yum.repos.d/
Download Yum Source configuration file
[Email protected] yum.repos.d]# wget Http://public-yum.oracle.com/public-yum-ol6.repo
Description: Download this repo file needs to download different repo according to different version, view version is according to the above command to view, for example, my is 6.6, is to download Public-yum-ol6.repo,
As for that version download the repo, please refer to the documentation: http://public-yum.oracle.com/
It is recommended to download the corresponding version, because different versions support the corresponding software version is not the same
Configure Repo
[[email protected] yum.repos.d]# ls
Public-yum-ol6.repo
[[email protected] yum.repos.d]# VI public-yum-ol6.repo
[Ol6_u6_base] (description; There are multiple of this tag in the file Ol6_u6 represents version 6.6, if Ol6_u5 is the 6.5 version, the modification is required to modify the corresponding version )
Name=oracle Linux $releasever Update 6 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/oraclelinux/ol6/6/base/$basearch/
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-oracle
Gpgcheck=1
Enabled=1 ----Because I'm version 6.6, change the enabled part of this key value to 1
Clean up on the package
[email protected] yum.repos.d]# Yum Clean all
Load a new package
[email protected] yum.repos.d]# Yum list
You can use Yum to install the software when you're done.
Set up Oracle Linux official Yum Source