Home > Software engineering >  How do i install Java OpenJdk 1.6.0_36 to centOS 7.2
How do i install Java OpenJdk 1.6.0_36 to centOS 7.2

Time:09-30

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 java version "1.6.0_41". How do i install a specific version?

(Edit: can it be downloaded from the terminal directly?)

CodePudding user response:

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

CodePudding user response:

You can install a specific version by source in CentOS rpm archive

  1. Update first elrepo, to make sure that you will have the latest RPM repository for CentOS sudo yum update elrepo

  2. then you can now install the specific version. 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

  • Related