Skip to content

Instantly share code, notes, and snippets.

@AlexxNica
Forked from dcode/ol7_addons.repo.sh
Created January 18, 2018 02:08
Show Gist options
  • Save AlexxNica/682f0a92ae535f1dab2844485dfda2bb to your computer and use it in GitHub Desktop.
Save AlexxNica/682f0a92ae535f1dab2844485dfda2bb to your computer and use it in GitHub Desktop.
Enable the OL7 Add-ons repo. Includes virtualbox, docker, R, and others.
cat << EOF | sudo tee /etc/yum.repos.d/ol7_addons.repo
[ol7_addons]
name=Oracle Linux $releasever Add ons (\$basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/\$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
EOF
# Verify this manually if you're paranoid like me
sudo rpm --import http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7
sudo yum makecache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment