asm源添加

1.请创建一个名为/etc/yum.repos.d/oracleasm.repo

  1. touch /etc/yum.repos.d/oracleasm.repo

2.添加下列内容

  1. [oracleasm]
  2. name=Oracle ASMLib Kernel Drivers for Red Hat Enterprise Linux Server 5
  3. baseurl=http://yum.oracle.com/repo/OracleASM/RHEL5/$basearch/
  4. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
  5. gpgcheck=1
  6. enabled=1

添加oraclelinux 7官方源

要在Red Hat Enterpise Linux,CentOS或Scientific Linux上安装Oracle Linux yum服务器上的软件,请执行以下操作:

  1. 使用这些说明导入Oracle Linux GPG密钥。

    wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

  2. Ceate一个临时的yum存储库配置文件,/etc/yum.repos.d/ol7-temp.repo其中包含以下内容作为最低要求内容:

    1. [ol7_latest]
    2. name=Oracle Linux $releasever Latest ($basearch)
    3. baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
    4. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    5. gpgcheck=1
    6. enabled=1
  3. 安装oraclelinux-release-el7

    1. # yum install oraclelinux-release-el7

    4.直接下载

    1. wget http://public-yum.oracle.com/public-yum-ol6.repo
    2. wget http://public-yum.oracle.com/public-yum-ol7.repo

    5.导入密钥

    1. wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    2. 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

```