Yum Java-devel Not Listed Installed

Home » CentOS » Yum Java-devel Not Listed Installed
CentOS 5 Comments

Folks

I performed an install of “java-devel”. Several packages got installed. So far so good.

Yet, when I performed
yum list installed | grep java-devel and also
yum rpm -qa | grep java-devel

it did not show up as already installed.

This behavior appears both on CentOS7 and CentOS6. This bothers me because as a time-saving effort, I maintain the last output of “yum list installed” and quickly determine whether it’s worth running yum. True, yum would “do nothing”, but that takes several seconds.

Is there some simple explanation? It works for all the other packages I’ve installed.

David

5 thoughts on - Yum Java-devel Not Listed Installed

  • What gets installed with a “yum install java-devel” command is:

    java-1.8.0-openjdk-devel.x86_64

    which is why your “yum list installed | grep java-devel” doesn’t find it. If you did, instead, “yum list installed | grep java | grep devel” it would work.

    Your “yum rpm -qa | grep java-devel” isn’t a valid yum option. The correct command:

    rpm -qa | grep java-devel

    would fail to find it for the same reason your “yum list” command did.

    Try instead:

    rpm -qa java\* | grep devel

    that should turn it up:

    java-1.8.0-openjdk-devel.x86_64 1:1.8.0.144-0.b01.el7_4 @updates

    Your /var/log/yum.log shows the names of the packages installed, which can help if there is confusion.

  • True, but then how does “yum install java-devel”
    know what to install without a package by that name? I thought that the “yum install” command took package (or group) names.

    And sorry about the error in my rpm command; I
    meant it without the “yum” in front of it. David

  • Packages have ‘names’ and they also have ‘Provides’.

    To see the things that java-1.7.0-openjdk-devel provides, you can use this command:

    rpm -qp –provides java-1.7.0-openjdk-devel-1.7.0.151-2.6.11.1.el7_4.x86_64.rpm

    This is the output:
    application()
    application(java-1.7.0-openjdk-1.7.0.151-2.6.11.1.el7_4.x86_64-jconsole.desktop)

    application(java-1.7.0-openjdk-1.7.0.151-2.6.11.1.el7_4.x86_64-policytool.desktop)

    java-1.7.0-devel = 1:1.7.0.151
    java-1.7.0-openjdk-devel = 1:1.7.0.151-2.6.11.1.el7_4
    java-1.7.0-openjdk-devel(x86-64) = 1:1.7.0.151-2.6.11.1.el7_4
    java-devel = 1:1.7.0
    java-devel-openjdk = 1:1.7.0.151
    java-sdk = 1:1.7.0
    java-sdk-1.7.0 = 1:1.7.0.151
    java-sdk-1.7.0-openjdk = 1:1.7.0.151
    java-sdk-openjdk = 1:1.7.0.151
    lib.so(SUNWprivate_1.1)(64bit)
    libjli.so()(64bit)
    libjli.so(SUNWprivate_1.1)(64bit)

    ======

    yum install or yum update can be used with either a provide or a name .. list only works with names.

LEAVE A COMMENT