Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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" java nor jre. RPM reports that it provides the following:

# rpm -q jdk --provides
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: will be installed
--> Processing Dependency: jre >= 1.6.0 for package: aws-apitools-as-

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?

share|improve this question
"I want to install the aws-apitools-as package." Why? The legacy java tools are being deprecated in favor of the new, python-based AWS CLI, which installs with a single command and (thank god) doesn't require a java runtime. –  EEAA Mar 31 '14 at 3:06
@EEAA: Ah, news to me. When I took off OpenJDK before installing the Oracle one, aws-apitools-as (and others) were removed as part of that transaction. I'll look into AWS CLI then ... Thanks. –  Greg Kopff Mar 31 '14 at 3:10
It's a much nicer tool. It provides a single, consistent interface for all the AWS products. Also, needless to say, it is a lot faster (being python-based) than the java tools. –  EEAA Mar 31 '14 at 3:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.