Yum, easily finding the rpms you need

In most of the cases the Oracle installer complains about missing libraries; in another article I described what to to for Oracle 11g on RedHat, but in the meantime I have learned a much more efficient way.

Our system administrator set up yum locally I realised how simple and elegant the tool is; an initial setup and copy is needed, but once you are done the repository is always available.

You can also follow the article http://www.howtoforge.com/setting-up-a-local-yum-repository-fedora8, here I show a few real cases with Oracle.

We will need the Linux tool createrepo, so make sure it is installed.

1. Create a directory that will store the rpms of the distribution kit.

mkdir -p /var/yum/EnterpriseLinux5.4

ls /media/Enterpri*/Server

2. Copy (part of ) the distribution onto the yum directory

cp /media/Enterpri*/Server /var/yum/EnterpriseLinux5.4

3. Now create the repository with createrepo

ls -ltr /var/yum/EnterpriseLinux5.4/repodata
total 2664
-rw-r--r-- 1 root root  632794 Jan 15 06:42 filelists.xml.gz
-rw-r--r-- 1 root root 1847629 Jan 15 06:42 other.xml.gz
-rw-r--r-- 1 root root  224438 Jan 15 06:42 primary.xml.gz
-rw-r--r-- 1 root root     951 Jan 15 06:42 repomd.xml

4. Modify /etc/yum.conf

The essential piece is the baseurl, which may point to some site that distributes the rpms, or, as in this case, to a local directory.

# Note: yum-RHN-plugin doesn't honor this.

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

5. Watch yum work; you would like to install orca but you don't now which packages are needed

root@ha1 transfer] yum whatprovides orca
orca-1.0.0-5.el5.i386 : Flexible, extensible, and powerful assistive technology
Matched from:
Other       : Provides-match: orca
[root@ha1 transfer]# yum install orca*
Loaded plugins: security
Setting up Install Process
Parsing package install arguments
Package orca-1.0.0-5.el5.i386 already installed and latest version
Nothing to do
As you see, orca was already installed and up-to-date on my system. Let's check xterm

[root@ha1 transfer]# yum list xterm
Loaded plugins: security
Installed Packages
xterm.i386                              215-8.el5                              installed
[root@ha1 transfer]# 

yum and Oracle

To demonstrate how yum can help with your Oracle, see the list of failing requirements during an 11G installation. I'll show what I did with the well known libraries libgomp and libaio-devel, the rest is totally analogous


yum and libgomp

yum and libaio-devel

End of libaio-devel

yum and libaio-devel

Maybe you will save time and frustration during your next installation!

Rate this note ...
Useless Poor Average Good Very helpful