Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install OpenJDK 1.6 in Fedora 17 however I only see OpenJDK 1.7 as an install option when I run yum search openjdk. How can I get OpenJDK 1.6 in Fedora 17?

share|improve this question
There is no openjdk 1.6 rpm package supplied for fedora core 17. You could serach for third party rpm for that. And you could install it with rpm -i path_to_rpm_file command. – scriptmonster Jun 26 '12 at 16:27

You could use Openjdk 1.6 from Fedora 16. Use this command:

yum install java-1.6.0-openjdk --releasever=16 --nogpgcheck

(--nogpgcheck because yum complains of not having the key for Fedora 16, maybe there are better ways to solve this)

But this shows, that java-1.7.0-openjdk obsoletes java-1.6.0-openjdk and skips installation. And it shows that the package xorg-x11-fonts-Type1 is needed. So I did

yum install xorg-x11-fonts-Type1

and then I used the openjdk package which yum downloaded but refused to install because of the obsoletes warning

rpm --nodeps -ihv /var/cache/yum/x86_64/16/updates/packages/java-1.6.0-openjdk-

(--nodeps for overriding the obsoletes warning)

Now I have both java 1.6 and java 1.7 on my system. Java 1.7 is my default. And Java 1.6 is in /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java.

PS: There won't be any conflicts when you install both 1.7 and 1.6. The reason for removing 1.6 from Fedora 17 was, that OpenJDK6 will no longer get security updates after November 2012.

share|improve this answer
up vote 0 down vote accepted

As scriptmonster stated, 1.6 rpm package is not supplied for fedora core 17. I had to download the rpm and install it that way.

share|improve this answer

Your Answer


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.