I have the Oracle RPM for the Java 7 JDK installed on an Amazon EC2 instance.
The Oracle RPMs for Java 7 JDK don't "provide"
jre. RPM reports that it provides the following:
# rpm -q jdk --provides jaxp_parser_impl xml-commons-apis jdk = 2000:1.7.0_51-fcs
On this EC2 instance, I want to install the
aws-apitools-as package. Using yum results in:
# yum install aws-apitools-as Resolving Dependencies --> Running transaction check ---> Package aws-apitools-as.noarch 0:184.108.40.206-1.0.amzn1 will be installed --> Processing Dependency: jre >= 1.6.0 for package: aws-apitools-as-220.127.116.11-1.0.amzn1.noarch
This dependency resolution results in yum wanting to install
java-1.7.0-openjdk, even though I have a perfectly capable Oracle JDK (and thus JRE) installed.
This problem appears to be squarely the fault of Oracle (at least this SO person thinks so).
Is there anyway to overcome this deficiency in Oracle's RPM packaging by informing the RPM database that Java is already provided?