How to Install and Uninstall openjdk-21-jdk Package on Ubuntu 20.04 LTS (Focal Fossa)
Last updated: November 23,2024
1. Install "openjdk-21-jdk" package
This is a short guide on how to install openjdk-21-jdk on Ubuntu 20.04 LTS (Focal Fossa)
$
sudo apt update
Copied
$
sudo apt install
openjdk-21-jdk
Copied
2. Uninstall "openjdk-21-jdk" package
Learn how to uninstall openjdk-21-jdk on Ubuntu 20.04 LTS (Focal Fossa):
$
sudo apt remove
openjdk-21-jdk
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the openjdk-21-jdk package on Ubuntu 20.04 LTS (Focal Fossa)
Package: openjdk-21-jdk
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: 54
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.1+12-2~20.04.1), openjdk-21-jdk-headless (= 21.0.1+12-2~20.04.1), libc6 (>= 2.2.5), 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.1+12-2~20.04.1_amd64.deb
Size: 10688
MD5sum: 1eee44e462d52f25b1257d6fbfe77cab
SHA1: 786c5bd021916291633ae07af56eb6109e73a615
SHA256: f2b89180c1e726d7b04fe138e7df2b637f369f29d71597012f2dc73ae9d3ac63
SHA512: b6314d9eaeb7a7d17c571ccff863ac899cb4207ac5d198f8949279468bb05da59e069dac049e2300ab0bbfb1455b367a9c3ecd4955d6a7c950b43e4170816e75
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: b9e7f4837238c34971e4a8b72ab7d045
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: 54
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.1+12-2~20.04.1), openjdk-21-jdk-headless (= 21.0.1+12-2~20.04.1), libc6 (>= 2.2.5), 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.1+12-2~20.04.1_amd64.deb
Size: 10688
MD5sum: 1eee44e462d52f25b1257d6fbfe77cab
SHA1: 786c5bd021916291633ae07af56eb6109e73a615
SHA256: f2b89180c1e726d7b04fe138e7df2b637f369f29d71597012f2dc73ae9d3ac63
SHA512: b6314d9eaeb7a7d17c571ccff863ac899cb4207ac5d198f8949279468bb05da59e069dac049e2300ab0bbfb1455b367a9c3ecd4955d6a7c950b43e4170816e75
Homepage: https://openjdk.java.net/
Description: OpenJDK Development Kit (JDK)
Description-md5: b9e7f4837238c34971e4a8b72ab7d045