How to Install and Uninstall openjdk-21-jdk Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: December 24,2024

1. Install "openjdk-21-jdk" package

Please follow the instructions below to install openjdk-21-jdk on Ubuntu 24.04 LTS (Noble Numbat)

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

2. Uninstall "openjdk-21-jdk" package

This guide let you learn how to uninstall openjdk-21-jdk on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the openjdk-21-jdk package on Ubuntu 24.04 LTS (Noble Numbat)

Package: openjdk-21-jdk
Architecture: amd64
Version: 21.0.2+13-2
Multi-Arch: same
Priority: optional
Section: java
Source: openjdk-21
Origin: Ubuntu
Maintainer: OpenJDK Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3511
Provides: java-compiler, java-sdk (= 21), java10-sdk, java11-sdk, java12-sdk, java13-sdk, java14-sdk, java15-sdk, java16-sdk, java17-sdk, java18-sdk, java19-sdk, java2-sdk, java20-sdk, java21-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk, java9-sdk
Depends: openjdk-21-jre (= 21.0.2+13-2), openjdk-21-jdk-headless (= 21.0.2+13-2), libc6 (>= 2.34), zlib1g (>= 1:1.1.4)
Recommends: libxt-dev
Suggests: openjdk-21-demo, openjdk-21-source, visualvm
Filename: pool/main/o/openjdk-21/openjdk-21-jdk_21.0.2+13-2_amd64.deb
Size: 3366492
MD5sum: 5a1c548d312cdb006508d4ef2903ec1c
SHA1: 16544ee9808ab6643ab7664ad61fc7ea1ba102f5
SHA256: b0522e313b11b2ad751ef46da8aa7cf4826d3aeed42bf6b6bdacb16af0d97c32
SHA512: c0a982701803f0f15e0b95ebf2b2f80cc3f3882564bcac08508b9b8ab5cb8ade87bcebf1c417c4a8343ea8b0fc917a1aa28c6aedd2061a4401492b84c973d16e
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: b9e7f4837238c34971e4a8b72ab7d045