Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Specifically regarding Java dependent packages, such as ant. Is it possible to install them via rpm, when using an alternate JVM/JDK? For example, If I install the Oracle JDK, can I use an ant package without installing OpenJDK? Is there anyway this can be done from an RPM?

I know I can specify which JDK to use, by executing update-alternatives --config java. Additionally I'm specifying a JAVA_HOME, which works as expected. The only available choices seem to be, keeping 3 different JDK's installed, or installing everything manually.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Sure. rpm -i --nodeps will install the rpms without the dependency-check.

The more interesting question seems to be how to do this with yum.

If you can get the source-rpm of an alternative java, you might put an "Obsoletes jdk" into the spec-file...

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.