Set up oraclelinux official yum Source
View version:
[Root @ datanode68 yum. repos. d] # lsb_release-
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/
My oracle enterprise linux version is 5.6, And the yum source is configured because when I install the control-center RPM package, the dependency between rpm packages is too large, one by one
Installing yum sources is too troublesome.
First install wget through the ISO installation disk (If yes, do not install it)
Mount-o loop/dev/hdc/root/linux
[Root @ datanode68] # cd/root/linux --- Oracle Enterprise Linux ISO installation disc mount point
[Root @ datanode68] # cd Server/
[Root @ datanode68] # 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%]
[Root @ datanode68] # cd/etc/yum. repos. d/
Download the yum source configuration file
[Root @ datanode68 yum. repos. d] # wget http://public-yum.oracle.com/public-yum-ol6.repo
(Download this repo files need to download different repo according to different versions, view the version is in accordance with the above command view, for example, my is 6.6, is to download the public-yum-ol6.repo,
For the version to download the repo, see the document: http://public-yum.oracle.com/
We recommend that you download the corresponding version because different versions support different software versions.
Configure repo
[Root @ datanode68 yum. repos. d] # ls
Public-yum-ol6.repo
[Root @ datanode68 yum. repos. d] # vi public-yum-ol6.repo
[Ol6_u6_base)
Name = Oracle Linux $ releasever Update 6 installation media copy ($ basearch)
Baseurl = http://public-yum.oracle.com/repo/?lelinux/ol6/6/base/?basearch/
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Gpgcheck = 1
Enabled = 1 ---- because I am version 6.6, change the enabled of this key value to 1
Clear the package
[Root @ datanode68 yum. repos. d] # yum clean all
Load new package
[Root @ datanode68 yum. repos. d] # yum list
You can use yum to install the software.