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

Last updated: November 22,2024

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

This tutorial shows how to install openjdk-21-jre-headless on Ubuntu 20.04 LTS (Focal Fossa)

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

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

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

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

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

Package: openjdk-21-jre-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: 197414
Provides: java-runtime-headless (= 21), java10-runtime-headless, java11-runtime-headless, java12-runtime-headless, java13-runtime-headless, java14-runtime-headless, java15-runtime-headless, java16-runtime-headless, java17-runtime-headless, java19-runtime-headless, java2-runtime-headless, java20-runtime-headless, java21-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless, java9-runtime-headless
Depends: ca-certificates-java (>= 20190405~), java-common (>= 0.28), libcups2, liblcms2-2 (>= 2.8), libjpeg8 (>= 8c), libfontconfig1, libnss3 (>= 2:3.17.1), util-linux (>= 2.26.2-4), libasound2 (>= 1.0.16), libc6 (>= 2.29), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 3.0), libharfbuzz0b (>= 1.2.6), libpcsclite1 (>= 1.3.0), libstdc++6 (>= 5), zlib1g (>= 1:1.2.2)
Suggests: libnss-mdns, fonts-dejavu-extra, fonts-ipafont-gothic, fonts-ipafont-mincho, fonts-wqy-microhei | fonts-wqy-zenhei, fonts-indic
Conflicts: openjdk-11-jdk-headless (<< 11~18-2), oracle-java11-installer
Breaks: clojure1.8 (<= 1.8.0-7ubuntu1~)
Replaces: openjdk-11-jdk-headless (<< 11~18-2)
Filename: pool/universe/o/openjdk-21/openjdk-21-jre-headless_21.0.1+12-2~20.04.1_amd64.deb
Size: 41769012
MD5sum: 78f4240f9e7f80636c96dc19993f365d
SHA1: a0daa1cc3b6eff8f0b434b890b628b4e4e449038
SHA256: 0e9ef1e956043e0885137423d3ac8c4a09e9617306d896a998484171627bd9b8
SHA512: 501796effc420ac1197f8c4dddf3a7f120e9840b453691e46c78b2c1bdb7229034c69aceffe8ee427a3cf0560d0f9657b798364a1778f227fa782d79c1b59983
Homepage: https://openjdk.java.net/
Description: OpenJDK Java runtime, using Hotspot JIT (headless)
Description-md5: 62c2c9689e617c48cc4480926d2ca785