Re: Yum java-devel not listed installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/02/2017 07:07 PM, david wrote:
> 
>>
>>
>> On 10/02/2017 06:24 PM, david wrote:
>> > 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.
>>
>>
>> There is a java-1.7.0-openjdk-devel or java-1.7.0-openjdk-devel, but no
>> java-devel
> 
> 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.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux