Created
May 15, 2020 23:42
-
-
Save addiedx44/24cec172371381e2b00d409b1dc0c65a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle | |
gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle | |
echo <<EOF >/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 | |
EOF | |
yum install -y oraclelinux-release-el7 | |
mv /etc/yum.repos.d/ol7-temp.repo /etc/yum.repos.d/ol7-temp.repo.disabled | |
yum install -y oracle-release-el7 | |
yum install -y oracle-instantclient19.6-sqlplus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment