This discussion is archived
4 Replies Latest reply: Dec 3, 2012 3:41 PM by Dude! RSS

Inconsistent results from rpm

621654 Newbie
Currently Being Moderated
Hi Oracle Forums,
     I am installing packages required for Oracle Database 11gR2, and am having problems with rpm responses.

     When I query rpm about a package, it tells me that the package is not installed. When I go to install the package, rpm informs me that the package is already installed. An example is shown below:
[root@OELVM02 Server]# uname -a
Linux OELVM02.localdomain 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:37:40 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@OELVM02 Server]#
[root@OELVM02 Server]# pwd
/media/OL5.8 x86_64 dvd 20120229/Server
[root@OELVM02 Server]#
[root@OELVM02 Server]# ls -alrt binutils-2.17.50.0.6-20.el5.x86_64.rpm
-rw-r--r-- 1 root root 3069914 Dec 28  2011 binutils-2.17.50.0.6-20.el5.x86_64.rpm
[root@OELVM02 Server]#
[root@OELVM02 Server]#  rpm -q ./binutils-2.17.50.0.6-20.el5.x86_64.rpm
package ./binutils-2.17.50.0.6-20.el5.x86_64.rpm is not installed
[root@OELVM02 Server]#
[root@OELVM02 Server]# rpm -ivh ./binutils-2.17.50.0.6-20.el5.x86_64.rpm
warning: ./binutils-2.17.50.0.6-20.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
        package binutils-2.17.50.0.6-20.el5.x86_64 is already installed
[root@OELVM02 Server]#
[root@OELVM02 Server]# rpm -q ./binutils-2.17.50.0.6-20.el5.x86_64.rpm
package ./binutils-2.17.50.0.6-20.el5.x86_64.rpm is not installed
[root@OELVM02 Server]#
     I do not understand the inconsistent results that rpm is giving me.

     Any help would be greatly appreciated

     Thanks
     Gavin
  • 1. Re: Inconsistent results from rpm
    Avi Miller Guru
    Currently Being Moderated
    gcgeorge wrote:
         When I query rpm about a package, it tells me that the package is not installed.
    You can't query rpm on the filename of the RPM, only the actual package name:
     # rpm -q binutils
    binutils-2.20.51.0.2-5.34.el6.x86_64
  • 2. Re: Inconsistent results from rpm
    621654 Newbie
    Currently Being Moderated
    Hi Avi,
         Thanks for your quick response!!

         The Oracle documentation requires that both the 32 and 64 bit rpm's be installed for some packages. In the below scenario, is rpm telling me that both 32 and 64 bit packages are installed?
    [root@OELVM02 Server]# uname -a
    Linux OELVM02.localdomain 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:37:40 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# pwd
    /media/OL5.8 x86_64 dvd 20120229/Server
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# ls -alrt *glibc-2*
    -rw-r--r-- 1 root root 1544040 Nov 18  2010 compat-glibc-2.3.4-2.26.x86_64.rpm
    -rw-r--r-- 1 root root 1069214 Nov 18  2010 compat-glibc-2.3.4-2.26.i386.rpm
    -rw-r--r-- 1 root root 5607577 Feb 26  2012 glibc-2.5-81.i686.rpm
    -rw-r--r-- 1 root root 4997627 Feb 26  2012 glibc-2.5-81.x86_64.rpm
    [root@OELVM02 Server]#
    [root@OELVM02 Server]# rpm -q glibc-2.5-81.i686
    glibc-2.5-81
    [root@OELVM02 Server]#
    [root@OELVM02 Server]#  rpm -q glibc-2.5-81.x86_64
    glibc-2.5-81
    [root@OELVM02 Server]#
    [root@OELVM02 Server]#
         Thanks heaps
         Gavin
  • 3. Re: Inconsistent results from rpm
    Avi Miller Guru
    Currently Being Moderated
    gcgeorge wrote:
         The Oracle documentation requires that both the 32 and 64 bit rpm's be installed for some packages. In the below scenario, is rpm telling me that both 32 and 64 bit packages are installed?
    Try this:
    # rpm -qa glibc
    glibc-2.12-1.80.el6_3.6.x86_64
    glibc-2.12-1.80.el6_3.6.i686
    Though, on OL5, just do:
    # yum install oracle-validated
    That will ensure everything for DB is installed and configured properly for you. It assumes you've connected to ULN or http://public-yum.oracle.com first, though.

    Edited by: Avi Miller on Dec 4, 2012 10:18 AM
  • 4. Re: Inconsistent results from rpm
    Dude! Guru
    Currently Being Moderated
    I would not use the RPM utility to perform standard installation tasks. Instead, use the YUM utility to prevent software conflicts and automatically resolve package dependencies.

    For instance:

    <pre>
    # yum list glibc
    Installed Packages
    glibc.*i686* 2.5-81.el5_8.7 installed
    glibc.*x86_64* 2.5-81.el5_8.7 installed
    </pre>

    The oracle-validated package for OL5, as mentioned by Avi, will prepare the system for a typical Oracle installation, including the setup of kernel parameters, Oracle groups and accounts and software prerequisites.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points