How to Install and Uninstall openjdk-21-jre Package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Last updated: November 14,2024
Notice
You can also install and uninstall the openjdk-21-jre on the following distributions in the same way, as they are all based on the Ubuntu system
- Kubuntu 22.04 LTS
- Lubuntu 22.04 LTS
- Xubuntu 22.04 LTS
- Ubuntu MATE 22.04 LTS
- Ubuntu Studio 22.04 LTS
- Pop!_OS 22.04 LTS
- Zorin OS 16 / Zorin OS 17
- Ubuntu Budgie 22.04
1. Install "openjdk-21-jre" package
This tutorial shows how to install openjdk-21-jre on Ubuntu 22.04 LTS (Jammy Jellyfish)
$
sudo apt update
Copied
$
sudo apt install
openjdk-21-jre
Copied
2. Uninstall "openjdk-21-jre" package
Please follow the guidelines below to uninstall openjdk-21-jre on Ubuntu 22.04 LTS (Jammy Jellyfish):
$
sudo apt remove
openjdk-21-jre
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the openjdk-21-jre package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Package: openjdk-21-jre
Architecture: amd64
Version: 21.0.2+13-1~22.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: 701
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-1~22.04.1), libglib2.0-0 (>= 2.24), libgtk2.0-0 | libgtk-3-0, libxrandr2, libxinerama1, libgl1, libharfbuzz0b, libc6 (>= 2.34), libgif7 (>= 5.1), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), 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/universe/o/openjdk-21/openjdk-21-jre_21.0.2+13-1~22.04.1_amd64.deb
Size: 232242
MD5sum: f36d146f84fca9af828997a376bc7f0d
SHA1: 35262ae8dbf61e48b54c2eb34aa835054da5ee83
SHA256: 193aad1495c561e7d0cbec76195d3efa15abb8a72477f8cbf420938ca874315f
SHA512: 9a943fb18912090a24289ca274bd869332773ee89936149b9c47ccc7dc59b430d8e68fdbeff5ef49b917fec047ecf9ed0e187c9fd10fc1195467c36e3a161fe7
Homepage: https://openjdk.java.net/
Description: OpenJDK Java runtime, using Hotspot JIT
Description-md5: 13097853553de1ab39cc189225a9cbaa
Architecture: amd64
Version: 21.0.2+13-1~22.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: 701
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-1~22.04.1), libglib2.0-0 (>= 2.24), libgtk2.0-0 | libgtk-3-0, libxrandr2, libxinerama1, libgl1, libharfbuzz0b, libc6 (>= 2.34), libgif7 (>= 5.1), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), 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/universe/o/openjdk-21/openjdk-21-jre_21.0.2+13-1~22.04.1_amd64.deb
Size: 232242
MD5sum: f36d146f84fca9af828997a376bc7f0d
SHA1: 35262ae8dbf61e48b54c2eb34aa835054da5ee83
SHA256: 193aad1495c561e7d0cbec76195d3efa15abb8a72477f8cbf420938ca874315f
SHA512: 9a943fb18912090a24289ca274bd869332773ee89936149b9c47ccc7dc59b430d8e68fdbeff5ef49b917fec047ecf9ed0e187c9fd10fc1195467c36e3a161fe7
Homepage: https://openjdk.java.net/
Description: OpenJDK Java runtime, using Hotspot JIT
Description-md5: 13097853553de1ab39cc189225a9cbaa