if there's an online repository or other way to download and install a specific OpenJDK build, please add that as an answer as well as that would be a more desirable way to approach this for future installations. If anyone can answer the first question, e.g. NOTE: This covers copying a package from a server where you already have the desired version available. ![]() openjdk-88u131-b11-2ubuntu1.16.04.3. Share Improve this answer Follow answered at 21:09 KK Patel 18. You can also download following tar file for manually installing openjdk using same link. You can simply run the following command to install Java 8 in your system. You can copy to any other system and install manually using sudo dpkg -i command. OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode) Install Java 8 on Ubuntu 20.04 You may also need to install the OpenJDK 8 in your system if your application is based on the java version 8. Then the others can be added (not sure if they're needed, but it worked for me): dpkg -i openjdk-8-jre_8u131-b11-2ubuntu1.16.04.3_bĪfter running all this, java -version gives me the expected output for the desired version: openjdk version "1.8.0_131" The headless package and certificates had to be installed together (dependency issue separately). ![]() The older version could then be installed using (adjust filenames as needed): dpkg -i openjdk-8-jre-headless_8u131-b11-2ubuntu1.16.04.3_b ca-certificates-java_20160321_all.deb On the target server I removed the default-jre package, java-common, and ca-certificates-java packages using apt-get remove to clear out the more recent version. deb file of the OpenJDK packages needed to install it 'offline' on another server as follows: apt-get install dpkg-repack ![]() So, for the second half of my question about copying a package from one install to another, I was able to use the dpkg-repack package to generate a.
0 Comments
Leave a Reply. |