By Lenz Grimmer on Jun 15, 2011
For example, adding the external package repository for Oracle Linux 6.1 is a trivial task:
- Download and copy the appropriate yum configuration file in place, by running the following command as root:
# wget -O /etc/yum.repos.d/public-yum-ol6.repo \ http://public-yum.oracle.com/public-yum-ol6.repo
- Now edit the file using your favorite text editor and enable the appropriate repository ([ol6_u1_base] in our case) by changing the value of the enabled variable from 0 to 1.
- Now you can run yum list all to get a full list of all available packages. You can install them by running yum install <packagename>
Enter EPEL, the "Extra Packages for Enterprise Linux" repository. According to their extensive FAQ, EPEL "is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.".
Oracle Linux is based on RHEL, too, and is 100% userland-compatible with it. Therefore any package available from EPEL will install and run just fine, giving you access to a large pool of additional software. However, please keep in mind that this software is not covered by any Oracle Linux Support agreement you may have!
You can add and enable the EPEL repository by performing the following steps (as the root user):
- Download and install the repository package which includes the appropriate repository information for your version of Oracle Linux:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
- The repository is automatically enabled, which you can verify by running yum repolist.
- To get a listing of all the additional packages you now have access to, run yum list available | grep epel | less.
- Now simply run yum install <packagename> to install any of the additional packages (over 4800 for Oracle Linux 6, last time I counted!).
See more articles about Oracle Linux at the Oracle Linux Blog!