How to Install and Uninstall openjdk-8-jdk Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 07,2024

1. Install "openjdk-8-jdk" package

In this section, we are going to explain the necessary steps to install openjdk-8-jdk on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install openjdk-8-jdk

2. Uninstall "openjdk-8-jdk" package

This is a short guide on how to uninstall openjdk-8-jdk on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove openjdk-8-jdk $ sudo apt autoclean && sudo apt autoremove

3. Information about the openjdk-8-jdk package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: openjdk-8-jdk
Architecture: amd64
Version: 8u342-b07-0ubuntu1~18.04
Multi-Arch: same
Priority: optional
Section: universe/java
Source: openjdk-8
Origin: Ubuntu
Maintainer: Java Maintenance
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4224
Provides: java-compiler, java-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk
Depends: openjdk-8-jre (= 8u342-b07-0ubuntu1~18.04), openjdk-8-jdk-headless (= 8u342-b07-0ubuntu1~18.04), libc6 (>= 2.2.5)
Recommends: libxt-dev
Suggests: openjdk-8-demo, openjdk-8-source, visualvm
Filename: pool/universe/o/openjdk-8/openjdk-8-jdk_8u342-b07-0ubuntu1~18.04_amd64.deb
Size: 4031728
MD5sum: e14822bea3425b8938a3a1ccf52e1b03
SHA1: a09b32b045e8b4904e248aa187fee8fde016820b
SHA256: 39fc23bcb44ac52109cdf394ad48fd640bf44f5af86567b8eaff13258718b599
SHA512: e62b40cb815a565cb993ea0fa409a26a7d4aef880e636147f0fac1723fa76c1a1b9e397e8f5e155670c9a9a1cd7a6debc9b168a86f1b60801453f159540b9667
Homepage: http://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: 675290db0de49757986666504c33f9b2

Package: openjdk-8-jdk
Architecture: amd64
Version: 8u162-b12-1
Multi-Arch: same
Priority: optional
Section: universe/java
Source: openjdk-8
Origin: Ubuntu
Maintainer: OpenJDK Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 533
Provides: java-compiler, java-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk
Depends: openjdk-8-jre (= 8u162-b12-1), openjdk-8-jdk-headless (= 8u162-b12-1), libc6 (>= 2.2.5)
Recommends: libxt-dev
Suggests: openjdk-8-demo, openjdk-8-source, visualvm
Filename: pool/universe/o/openjdk-8/openjdk-8-jdk_8u162-b12-1_amd64.deb
Size: 455776
MD5sum: 0b82470eb60a6125096bc652dc73eb40
SHA1: 6f24a02c816f97a21b02cf7463e3279cb449d983
SHA256: 2f4454d096bbb53b9f661cd74acebacbb4f1b990eeff288405f3f3fe4183de9b
Homepage: http://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: eaff50443f15582a8beb0901034b62cf