DorkyDork
DorkyDork

Reputation: 33

How do I install Java OpenJDK 1.6.0_36 to CentOS 7.2

I want to download Java version "1.6.0_36" in CentOS. I tried sudo yum install java-1.6.0-openjdk, but it returned Java version 1.6.0_41. How do I install a specific version?

Can it be downloaded from the terminal directly?

Upvotes: 1

Views: 2560

Answers (2)

Bryan L
Bryan L

Reputation: 560

You can install a specific version hosted from CentOS archive server.

  1. Update first elrepo, to make sure that you will have the latest RPM repository for CentOS.
sudo yum update elrepo
  1. Then install the specific version from CentOS archive.
sudo yum install https://buildlogs.centos.org/c7.01.u/java-1.6.0-openjdk/20150730180723/1.6.0.36-1.13.8.1.el7_1.x86_64/java-1.6.0-openjdk-1.6.0.36-1.13.8.1.el7_1.x86_64.rpm

Note: This server contains a mix of raw/unsigned packages and/or build logs. It should be used mainly for testing purposes.

Upvotes: 2

tpnoon
tpnoon

Reputation: 35

You can download here and search for Java SE Runtime Environment 6u41

Upvotes: -1

Related Questions