![]() Oracle JDK 8 sudo wget -O ~/jdk8.rpm -N -no-check-certificate -no-cookies -header "Cookie: oraclelicense=accept-securebackup-cookie" You also might encounter issues with the validity of the used cookie which might require you to update the URL. The below described procedure makes you independent of vendor specific subscriptions, however you will not gain automatic updates and if you want to have the latest version you have to manually update the download URL from here and update the Java installation path in the alternatives commands. Configuration of the specific repositories and subscriptions of course differs per vendor and product. Since RHEL derivatives are often provided by commercial software vendors such as RedHat and Oracle, they like to work on a subscription basis for their repositories since people pay for using them. Sudo apt-get -y install oracle-java10-set-default RHEL derivatives Sudo apt-get -y install oracle-java10-installer Sudo apt-get -y install oracle-java8-set-default Oracle JDK 10 sudo add-apt-repository ppa:linuxuprising/java ![]() ![]() Sudo apt-get -y install oracle-java8-installer Sudo echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections Sudo echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections Oracle JDK 8 sudo add-apt-repository ppa:webupd8team/java I chose JDK 8 and 10 since they are currently the only Oracle JDK versions which receive public updates (see here).īenefit of using the below repositories is that you will often get the latest version and can easily update to the latest version in an existing installation if you want. In this blog I’ll provide quick instructions on how to automate the installation of Oracle JDK 8 and 10 on different Linux distributions. This is due to different package managers and repositories. ![]() Java-1.7.0-openjdk-devel.x86_64 1:1.7.0.71-2.5.3.1.Automating the Oracle JDK installation on RHEL derivatives (such as CentOS, Oracle Linux) and Debian derivatives (such as Mint, Ubuntu) differs. How can I force yum to install this specific version of Open JDK 1.7 yum -showduplicates list java-1.7.0-openjdk-devel Is this due to hyphens in the package name? I'm trying to install 1:1.7.0.65-2.5.1.2.el6_5 version of OpenJDK by following this stackexchange answer, but I'm not able to specify the exact version number like yum install java-1.7.0-openjdk-devel-1:1.7.0.65-2.5.1.2.el6_5 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |