How to Install and Uninstall openjdk-21-jdk Package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Last updated: November 23,2024
Notice
You can also install and uninstall the openjdk-21-jdk 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-jdk" package
Here is a brief guide to show you how to install openjdk-21-jdk on Ubuntu 22.04 LTS (Jammy Jellyfish)
$
sudo apt update
Copied
$
sudo apt install
openjdk-21-jdk
Copied
2. Uninstall "openjdk-21-jdk" package
This guide covers the steps necessary to uninstall openjdk-21-jdk on Ubuntu 22.04 LTS (Jammy Jellyfish):
$
sudo apt remove
openjdk-21-jdk
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the openjdk-21-jdk package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Package: openjdk-21-jdk
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: 3515
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-1~22.04.1), openjdk-21-jdk-headless (= 21.0.2+13-1~22.04.1), libc6 (>= 2.34), zlib1g (>= 1:1.1.4)
Recommends: libxt-dev
Suggests: openjdk-21-demo, openjdk-21-source, visualvm
Filename: pool/universe/o/openjdk-21/openjdk-21-jdk_21.0.2+13-1~22.04.1_amd64.deb
Size: 3323490
MD5sum: 11c5d05ed7b2c7cb894f92614a44a8a3
SHA1: 5e43b9715ef098826908adfb6a159013b38116ff
SHA256: 35073ffe12f1df94a676b50e21664134a8153463e72319fc820ca7a21686c538
SHA512: 282a0800624a9402f67185cdff484ba6cb7b7cbe9ed18c188f95be66f32f05ea103ac1eb34c181b9371b248e5741fde3512cea7ee05b6a8334085d8820586ad6
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: b9e7f4837238c34971e4a8b72ab7d045
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: 3515
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-1~22.04.1), openjdk-21-jdk-headless (= 21.0.2+13-1~22.04.1), libc6 (>= 2.34), zlib1g (>= 1:1.1.4)
Recommends: libxt-dev
Suggests: openjdk-21-demo, openjdk-21-source, visualvm
Filename: pool/universe/o/openjdk-21/openjdk-21-jdk_21.0.2+13-1~22.04.1_amd64.deb
Size: 3323490
MD5sum: 11c5d05ed7b2c7cb894f92614a44a8a3
SHA1: 5e43b9715ef098826908adfb6a159013b38116ff
SHA256: 35073ffe12f1df94a676b50e21664134a8153463e72319fc820ca7a21686c538
SHA512: 282a0800624a9402f67185cdff484ba6cb7b7cbe9ed18c188f95be66f32f05ea103ac1eb34c181b9371b248e5741fde3512cea7ee05b6a8334085d8820586ad6
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: b9e7f4837238c34971e4a8b72ab7d045