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

Last updated: December 25,2024

1. Install "openjdk-21-jre" package

This guide covers the steps necessary to install openjdk-21-jre on Ubuntu 24.04 LTS (Noble Numbat)

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

2. Uninstall "openjdk-21-jre" package

Please follow the guidelines below to uninstall openjdk-21-jre on Ubuntu 24.04 LTS (Noble Numbat):

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

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

Package: openjdk-21-jre
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: 705
Provides: java-runtime (= 21), java10-runtime, java11-runtime, java12-runtime, java13-runtime, java14-runtime, java15-runtime, java16-runtime, java17-runtime, java18-runtime, java19-runtime, java2-runtime, java20-runtime, java21-runtime, java5-runtime, java6-runtime, java7-runtime, java8-runtime, java9-runtime
Depends: openjdk-21-jre-headless (= 21.0.2+13-2), libglib2.0-0 (>= 2.24), libgtk2.0-0 | libgtk-3-0, libxrandr2, libxinerama1, libgl1, libharfbuzz0b, libc6 (>= 2.38), libgif7 (>= 5.1), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2), libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g (>= 1:1.1.4)
Recommends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2), fonts-dejavu-extra
Breaks: openjdk-17-jre-headless (<< 17~10)
Replaces: openjdk-17-jre-headless (<< 17~10)
Filename: pool/main/o/openjdk-21/openjdk-21-jre_21.0.2+13-2_amd64.deb
Size: 227384
MD5sum: 14e27af259069458749d2ba5eef478c4
SHA1: 572f38a0d0b56f3e836976be5486186e67f11054
SHA256: eccc41cd49fc27963594bcd7957eef7f154bf9b99a5d53ffe7109ec692d66f10
SHA512: 46fcefe951f2fde7829b3b20295dab281a2dc05f2cfdc2a69eff322e05d5cbec6122100e42ca1027a7b4a1bc0814be3249f2c05bd79aacdffacf862c5db65bc4
Homepage: https://openjdk.java.net/
Description: OpenJDK Java runtime, using Hotspot JIT
Description-md5: 13097853553de1ab39cc189225a9cbaa
Task: edubuntu-desktop-gnome, edubuntu-desktop-gnome-raspi