Pimp my Ride - Installing Additional Packages on Oracle Linux

Lee Cannon: Wings Wheels 2010
"Wings Wheels 2010" by Lee Cannon (CC BY-SA 2.0).

Oracle Linux already ships with an impressive amount of software packages which can be downloaded from our public Yum server.

For example, adding the external package repository for Oracle Linux 6.1 is a trivial task:

  1. 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
  2. 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.
  3. 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>
However, being a distribution with a focus on the enterprise and data center, the package selection is limited to this scope. If you are looking for additional packages, you would have to either compile them from source or download pre-built binaries from an external package repository.

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):

  1. 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
  2. The repository is automatically enabled, which you can verify by running yum repolist.
  3. To get a listing of all the additional packages you now have access to, run yum list available | grep epel | less.
  4. Now simply run yum install <packagename> to install any of the additional packages (over 4800 for Oracle Linux 6, last time I counted!).
Enjoy!

See more articles about Oracle Linux at the Oracle Linux Blog!

Comments:

Why in earth didn't Oracle choose Debian...
We would have avoided such a mess...

Posted by guest on July 01, 2011 at 08:58 PM MDT #

Since Oracle Linux is so unbreakable thatlacks any documentation, manual, instruction, or even a pointer, those without internet access at the datacenter and trying to use the 3 Gigabyte download with yum can do the following:

Asuming you have mounted the ISO file at /mnt
create a file as:
[root@localhost ~]# cat /etc/yum.repos.d/media.repo
[InstallMedia]
name=Oracle Linux 6.1
baseurl=file:///mnt
mediaid=1306451776.22
metadata_expire=-1
gpgcheck=0
enabled=1
cost=500

then create the index running
[root@localhost ~]# yum clean all
Cleaning repos: InstallMedia
Cleaning up Everything
[root@localhost ~]# yum makecache
InstallMedia | 3.7 kB 00:00 ...
InstallMedia/filelists_db | 3.2 MB 00:00 ...
InstallMedia/primary_db | 3.1 MB 00:00 ...
InstallMedia/other_db | 1.1 MB 00:00 ...
InstallMedia/group_gz | 196 kB 00:00 ...
Metadata Cache Created

Now it (mostly) works.

[root@localhost ~]# yum info kernel-uek-devel.x86_64
Available Packages
Name : kernel-uek-devel
Arch : x86_64
Version : 2.6.32
Release : 100.34.1.el6uek
Size : 6.2 M
Repo : InstallMedia
Summary : Development package for building kernel modules to match the kernel
URL : http://www.kernel.org/
License : GPLv2
Description : This package provides kernel headers and makefiles sufficient to build modules
: against the kernel package.

Beware, this geniuses haven't include a way to use Groups when adding the ISO as a repo (or haven't found a way to use it).

Now, is it me or the anaconda installer was castrated in such a bad way that it is not asking even the hostname, domain or network configuration? Even Solaris 9 could ask for it!

Regards
Sebastian

Posted by guest on July 01, 2011 at 10:35 PM MDT #

This didn't work for me, this did

<http://fedora.mirror.nexicom.net/epel/6/i386/repoview/epel-release.html>

Posted by guest on November 16, 2012 at 07:37 AM MST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Contributors:
Rick Ramsey
Kemer Thomson
and members of the OTN community

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Blogs We Like