asm源添加
1.请创建一个名为/etc/yum.repos.d/oracleasm.repo
touch /etc/yum.repos.d/oracleasm.repo
2.添加下列内容
[oracleasm]
name=Oracle ASMLib Kernel Drivers for Red Hat Enterprise Linux Server 5
baseurl=http://yum.oracle.com/repo/OracleASM/RHEL5/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
添加oraclelinux 7官方源
要在Red Hat Enterpise Linux,CentOS或Scientific Linux上安装Oracle Linux yum服务器上的软件,请执行以下操作:
使用这些说明导入Oracle Linux GPG密钥。
wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Ceate一个临时的yum存储库配置文件,
/etc/yum.repos.d/ol7-temp.repo
其中包含以下内容作为最低要求内容:[ol7_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
安装
oraclelinux-release-el7
:# yum install oraclelinux-release-el7
4.直接下载
wget http://public-yum.oracle.com/public-yum-ol6.repo
wget http://public-yum.oracle.com/public-yum-ol7.repo
5.导入密钥
wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
添加Oraclelinux 8 源
``` [ol8_latest] name=Oracle Linux $releasever Latest ($basearch) baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
```