How to Install and Uninstall openjdk-8-jdk Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 26,2024

1. Install "openjdk-8-jdk" package

This guide covers the steps necessary to install openjdk-8-jdk on Ubuntu 20.04 LTS (Focal Fossa)

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

2. Uninstall "openjdk-8-jdk" package

Please follow the guidelines below to uninstall openjdk-8-jdk on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the openjdk-8-jdk package on Ubuntu 20.04 LTS (Focal Fossa)

Package: openjdk-8-jdk
Architecture: amd64
Version: 8u392-ga-1~20.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: 4266
Provides: java-compiler, java-sdk (= 8), java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk
Depends: openjdk-8-jre (= 8u392-ga-1~20.04), openjdk-8-jdk-headless (= 8u392-ga-1~20.04), libc6 (>= 2.2.5), libx11-6, zlib1g (>= 1:1.1.4)
Recommends: libxt-dev
Suggests: openjdk-8-demo, openjdk-8-source, visualvm
Filename: pool/universe/o/openjdk-8/openjdk-8-jdk_8u392-ga-1~20.04_amd64.deb
Size: 3971888
MD5sum: 9a08072344cc910cd0ba1f968890695b
SHA1: 19432e8c09b9c2f09bcc817e8f050bccd50645ba
SHA256: dae34e5cb9140c6e82f671cb57ea59d4906cb9ca221131817e283456cde1f564
SHA512: e4ddde8857d8930f3fee83c08b2fdf6aeb592d5c865e68497db1a0726aa82a9324a905c9926135fdeae34db44383c5105abf0df90a5667bcb2eb3164e049c5eb
Homepage: http://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: 675290db0de49757986666504c33f9b2

Package: openjdk-8-jdk
Architecture: amd64
Version: 8u252-b09-1ubuntu1
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: 3910
Provides: java-compiler, java-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk
Depends: openjdk-8-jre (= 8u252-b09-1ubuntu1), openjdk-8-jdk-headless (= 8u252-b09-1ubuntu1), libc6 (>= 2.2.5)
Recommends: libxt-dev
Suggests: openjdk-8-demo, openjdk-8-source, visualvm
Filename: pool/universe/o/openjdk-8/openjdk-8-jdk_8u252-b09-1ubuntu1_amd64.deb
Size: 3519352
MD5sum: e0a41b1d51cef300311c89411086e539
SHA1: 9a73e534b862096074cb0e65cce38cbbf26029a4
SHA256: 0b0805a2831127495b7733983a54e8ccff0a65e0f1c4072140df9bec82da0b0d
Homepage: http://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: eaff50443f15582a8beb0901034b62cf