How to Install and Uninstall default-jdk Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 29,2024

1. Install "default-jdk" package

Please follow the guidelines below to install default-jdk on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install default-jdk

2. Uninstall "default-jdk" package

Please follow the step by step instructions below to uninstall default-jdk on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove default-jdk $ sudo apt autoclean && sudo apt autoremove

3. Information about the default-jdk package on Ubuntu 20.04 LTS (Focal Fossa)

Package: default-jdk
Architecture: amd64
Version: 2:1.11-72
Priority: optional
Section: devel
Source: java-common (0.72)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Java Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6
Provides: java-sdk, java10-sdk, java11-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk, java9-sdk
Depends: default-jre (= 2:1.11-72), default-jdk-headless (= 2:1.11-72), openjdk-11-jdk
Filename: pool/main/j/java-common/default-jdk_1.11-72_amd64.deb
Size: 1096
MD5sum: 9726c7eef1b828953f7b607d422451f9
SHA1: 55d30fccae0b9ba105d4944bd36b3c6e2a874e90
SHA256: be42655647b35d356b73482c638c3bd23ba7e7afedd744bb3048803cedbe909f
Homepage: https://wiki.debian.org/Java/
Description: Standard Java or Java compatible Development Kit
Description-md5: c597cf36981d7716553d93e4f6672569
Cnf-Extra-Commands: javac,javadoc,jar