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
Update first elrepo, to make sure that you will have the latest RPM repository for CentOS
sudo yum update elrepo
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