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

Last updated: December 27,2024

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

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

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

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

This guide let you learn how to uninstall openjdk-21-jdk-headless on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: openjdk-21-jdk-headless
Architecture: amd64
Version: 21.0.1+12-2~20.04.1
Multi-Arch: same
Priority: optional
Section: universe/java
Source: openjdk-21
Origin: Ubuntu
Maintainer: OpenJDK Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 93584
Provides: java-compiler, java-sdk-headless (= 21), java10-sdk-headless, java11-sdk-headless, java12-sdk-headless, java13-sdk-headless, java14-sdk-headless, java15-sdk-headless, java16-sdk-headless, java17-sdk-headless, java18-sdk-headless, java19-sdk-headless, java2-sdk-headless, java20-sdk-headless, java21-sdk-headless, java5-sdk-headless, java6-sdk-headless, java7-sdk-headless, java8-sdk-headless, java9-sdk-headless
Depends: openjdk-21-jre-headless (= 21.0.1+12-2~20.04.1), libc6 (>= 2.2.5), zlib1g (>= 1:1.1.4)
Suggests: openjdk-21-demo, openjdk-21-source
Breaks: openjdk-17-jre-headless (<< 17~10), openjdk-21-jre-headless (<< 21~27ea)
Replaces: openjdk-17-jre-headless (<< 17~10), openjdk-21-jre-headless (<< 21~27ea)
Filename: pool/universe/o/openjdk-21/openjdk-21-jdk-headless_21.0.1+12-2~20.04.1_amd64.deb
Size: 82488292
MD5sum: 8c41b5c103550f36eefe75a5861df1af
SHA1: d88ee259caa5023b30d90a65c6dc7014f4284a11
SHA256: d06291ce67173b78b45d2837140e129bac42856d47e2766376d79fdef2470512
SHA512: 02e030805ea2fa60c69101fad422f2990db9b0c892206fcc4d7d2537a7c1e0cb551e2709c20c50dd92bf4dc27000ad99356199805c3cacdc47f303ac04349763
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK) (headless)
Description-md5: 494a52f34d707a832270d6d51a78f511