Setting up Oracle Linux 5.6 with Public-yum for all updates

The Oracle public yum server offers a free and convenient way to install the latest Oracle Linux packages as well as packages from Oracle VM installation media via a yum client.

To setup up Yum to start using the updates published on http://public-yum.oracle.com, follow the steps below :

  1. Login as user root
  2. Download the yum repo file from http://public-yum.oracle.com
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-el5.repo
  3. Enable the appropriate repository by editing the yum configuration file that was downloaded. Set the enabled=1 to enable the appropriate repository.
    # vi public-yum-el5.repo
  4. Run yum reposlist to show the registered channels and you see we are including everything including the latest published RPMS
    # yum repolist

Done.

Type # yum –help for help on yum command and options