Yum Java-devel Not Listed Installed

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


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.


5 thoughts on - Yum Java-devel Not Listed Installed

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


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

    This is the output:


    java-1.7.0-devel = 1:
    java-1.7.0-openjdk-devel = 1:
    java-1.7.0-openjdk-devel(x86-64) = 1:
    java-devel = 1:1.7.0
    java-devel-openjdk = 1:
    java-sdk = 1:1.7.0
    java-sdk-1.7.0 = 1:
    java-sdk-1.7.0-openjdk = 1:
    java-sdk-openjdk = 1:


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