Owlib.com Blogs Home News Contact About


How to setup YUM Repositories in Oracle Linux for use as a Desktop

Date: Aug 26, 2018
Tags: Oracle Linux, YUM Repositories, Desktop
 

After installing Oracle Linux 7.x we will notice that public-yum-ol7.repo file has been added in /etc/yum.repos.d directory. By default only a few repos are enabled, which is not really enough. Typically, we should also enable: ol7_latest, ol7_UEKR4 (if we are planning on using the Unbreakable Enterprise Kernel), ol7_optional_latest, ol7_addons, ol7_software_collections, ol7_MODRHCK, ol7_developer and ol7_developer_EPEL. To enable a repo just edit /etc/yum.repos.d/public-yum-ol7.repo file and change enabled=0 to enabled=1.

If something goes wrong we can manually add public-yum-ol7.repo per below:

$ cd /etc/yum.repos.d
$ sudo wget http://yum.oracle.com/public-yum-ol7.repo
$ sudo yum update
More details on How to manually add Oracle Public Yum Repos can be found at: Oracle Linux.

However, public-yum-ol7.repo file is typically not enough if we are planning to use Oracle Linux as a desktop. Following repos should also be added:

  • EPEL: This repo provides Extra Packages for Enterprise Linux (EPEL). The installation steps are:
    $ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    $ sudo yum update
    
    More details about this repo can be found at: EPEL.
  • RPM Fusion: This repo provides Free and Nonfree Repositories. As an example: to get VLC Player we will need this repo. The installation steps are:
    $ sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
    $ sudo yum update
    
    More details about this repo can be found at: RPM Fusion.
  • Google Chrome: Oracle Linux comes with Firefox ESR pre-installed. Firefox ESR is not as fast as Google Chrome. In order to install Google Chrome, follow these steps:

    • Go to https://www.google.com/chrome/
    • Click on DOWNLOAD CHROME
    • Choose 64bit .rpm and click ACCEPT AND INSTALL
    • Save the file to ~/Downloads or any other folder.
    • cd into the folder where we downloaded the file.
    • $ sudo yum install file-name-that-was-downloaded.rpm

    Google Chrome's repo will automatically be added at /etc/yum.repos.d.
  • Yandex Disk: As of writing of this blog, Dropbox is planning to drop support for Linux, unless the file system is ext4. Yandex Disk provides 10 GB of free space on their public cloud. To install Yandex Disk follow these instructions:
    $ sudo vim /etc/yum.repos.d/yandex.repo
    
    Enter the following Contents:
    
    [yandex]
    name=Yandex
    failovermethod=priority
    baseurl=http://repo.yandex.ru/yandex-disk/rpm/stable/$basearch/
    enabled=1
    metadata_expire=1d
    gpgcheck=1
    gpgkey=http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG
    					
    $ sudo rpm --import http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG
    $ sudo yum install yandex-disk
    $ sudo yandex-disk setup
    
    More details can be found at: https://yandex.com/support/disk/cli-clients.html

Following is the dump of how these repo files look on my Oracle Linux 7.5:

  • epel.repo:
    
    [epel]
    name=Extra Packages for Enterprise Linux 7 - $basearch
    #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
    metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    
    [epel-debuginfo]
    name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
    #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
    metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    gpgcheck=1
    
    [epel-source]
    name=Extra Packages for Enterprise Linux 7 - $basearch - Source
    #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
    metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    gpgcheck=1
    
    
  • public-yum-ol7.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
    
    [ol7_u0_base]
    name=Oracle Linux $releasever GA installation media copy ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/0/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_u1_base]
    name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/1/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_u2_base]
    name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/2/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_u3_base]
    name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/3/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_u4_base]
    name=Oracle Linux $releasever Update 4 installation media copy ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/4/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_u5_base]
    name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/5/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_UEKR4]
    name=Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux $releasever ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [ol7_UEKR3]
    name=Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/UEKR3/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_optional_latest]
    name=Oracle Linux $releasever Optional Latest ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/optional/latest/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [ol7_addons]
    name=Oracle Linux $releasever Add ons ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [ol7_UEKR3_OFED20]
    name=OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/UEKR3_OFED20/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    priority=20
    
    [ol7_UEKR4_OFED]
    name=OFED supporting tool packages for Unbreakable Enterprise Kernel Release 4 on Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/OFED/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    priority=20
    
    [ol7_MySQL57]
    name=MySQL 5.7 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/MySQL57_community/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_MySQL56]
    name=MySQL 5.6 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/MySQL56/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_MySQL55]
    name=MySQL 5.5 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/MySQL55/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_openstack40]
    name=OpenStack 4.0 packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/openstack40/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_openstack40_extras]
    name=OpenStack 4.0 Extra packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/openstack40_extras/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_openstack30]
    name=OpenStack 3.0 packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/openstack30/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_openstack_extras]
    name=OpenStack 3.0 Extra packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/openstack_extras/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_openstack21]
    name=OpenStack 2.1 packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/openstack21/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    priority=20
    enabled=0
    
    [ol7_openstack20]
    name=OpenStack 2.0 packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/openstack20/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    priority=20
    enabled=0
    
    [ol7_ceph]
    name=Ceph Storage for Oracle Linux Release 2.0 - Oracle Linux 7.2 or later ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/ceph/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_ceph10]
    name=Ceph Storage for Oracle Linux Release 1.0 - Oracle Linux 7.1 or later ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/ceph10/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_software_collections]
    name=Software Collection Library release 3.0 packages for Oracle Linux 7 (x86_64)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [ol7_spacewalk24_server]
    name=Spacewalk Server 2.4 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk24/server/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_spacewalk24_client]
    name=Spacewalk Client 2.4 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk24/client/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_spacewalk26_server]
    name=Spacewalk Server 2.6 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk26/server/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_spacewalk26_client]
    name=Spacewalk Client 2.6 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk26/client/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_spacewalk27_server]
    name=Spacewalk Server 2.7 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk27/server/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_spacewalk27_client]
    name=Spacewalk Client 2.7 for Oracle Linux 7 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk27/client/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_MODRHCK]
    name=Latest RHCK with fixes from Oracle for Oracle Linux $releasever ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/MODRHCK/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    priority=20
    enabled=1
    
    [ol7_preview]
    name=Oracle Linux $releasever Preview ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/preview/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer]
    name=Oracle Linux $releasever Development Packages ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [ol7_developer_EPEL]
    name=Oracle Linux $releasever Development Packages ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [ol7_developer_gluster312]
    name=Oracle Linux $releasever Gluster 3.12 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_gluster312/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer_gluster310]
    name=Oracle Linux $releasever Gluster 3.10 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_gluster310/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    
    [ol7_developer_php72]
    name=Oracle Linux $releasever PHP 7.2 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_php72/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer_php71]
    name=Oracle Linux $releasever PHP 7.1 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_php71/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer_php70]
    name=Oracle Linux $releasever PHP 7.0 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_php70/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer_nodejs4]
    name=Oracle Linux $releasever Node.js 4 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_nodejs4/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer_nodejs6]
    name=Oracle Linux $releasever Node.js 6 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_nodejs6/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    
    [ol7_developer_nodejs8]
    name=Oracle Linux $releasever Node.js 8 Packages for Development and test ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_nodejs8/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    
  • rpmfusion-free-updates.repo
    
    [rpmfusion-free-updates]
    name=RPM Fusion for EL 7 - Free - Updates
    #baseurl=http://download1.rpmfusion.org/free/el/updates/7/$basearch/
    mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-7&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-7
    
    [rpmfusion-free-updates-debuginfo]
    name=RPM Fusion for EL 7 - Free - Updates Debug
    #baseurl=http://download1.rpmfusion.org/free/el/updates/7/$basearch/debug/
    mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-debug-7&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-7
    
    [rpmfusion-free-updates-source]
    name=RPM Fusion for EL 7 - Free - Updates Source
    #baseurl=http://download1.rpmfusion.org/free/el/updates/7/SRPMS/
    mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-source-7&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-7
    
    
  • google-chrome.repo:
    
    [google-chrome]
    name=google-chrome
    baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
    enabled=1
    gpgcheck=1
    gpgkey=https://dl.google.com/linux/linux_signing_key.pub
    
    

Feel free to comment.