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

Last updated: November 24,2024

1. Install "openjdk-16-jdk-headless" package

Please follow the guidelines below to install openjdk-16-jdk-headless on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install openjdk-16-jdk-headless

2. Uninstall "openjdk-16-jdk-headless" package

Please follow the guidance below to uninstall openjdk-16-jdk-headless on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove openjdk-16-jdk-headless $ sudo apt autoclean && sudo apt autoremove

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

Package: openjdk-16-jdk-headless
Architecture: amd64
Version: 16.0.1+9-1~20.04
Multi-Arch: same
Priority: optional
Section: universe/java
Source: openjdk-16
Origin: Ubuntu
Maintainer: OpenJDK Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 264269
Provides: java-compiler, java-sdk-headless, java10-sdk-headless, java11-sdk-headless, java12-sdk-headless, java13-sdk-headless, java14-sdk-headless, java15-sdk-headless, java16-sdk-headless, java2-sdk-headless, java5-sdk-headless, java6-sdk-headless, java7-sdk-headless, java8-sdk-headless, java9-sdk-headless
Depends: openjdk-16-jre-headless (= 16.0.1+9-1~20.04), libc6 (>= 2.2.5)
Suggests: openjdk-16-demo, openjdk-16-source
Breaks: openjdk-16-jre-headless (<< 16~36)
Replaces: openjdk-16-jre-headless (<< 16~36)
Filename: pool/universe/o/openjdk-16/openjdk-16-jdk-headless_16.0.1+9-1~20.04_amd64.deb
Size: 260421684
MD5sum: 7d377d1f726ad143b8b3857b0b7b4829
SHA1: 2efdb0020ed6b8ce860fc8b3b61b7b3ee5fb6e36
SHA256: 19c7ccc3796f027e32ab8701903c6a31ba1c433b85931186e906216e9eec60ad
SHA512: 6a626a37e3d4a420c8974f48c0b42b298317ddb2d9032276a9d9bd92aaf17412939d170b8faf8ccc0e407e3351975c3ded992f3283e668c1d33346542fbf92d8
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK) (headless)
Description-md5: 494a52f34d707a832270d6d51a78f511