How to Install and Uninstall default-jdk-headless Package on Debian 12 (Bookworm)

Last updated: December 23,2024

1. Install "default-jdk-headless" package

This is a short guide on how to install default-jdk-headless on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install default-jdk-headless

2. Uninstall "default-jdk-headless" package

Learn how to uninstall default-jdk-headless on Debian 12 (Bookworm):

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

3. Information about the default-jdk-headless package on Debian 12 (Bookworm)

Package: default-jdk-headless
Source: java-common (0.74)
Version: 2:1.17-74
Installed-Size: 6
Maintainer: Debian Java Maintainers
Architecture: amd64
Provides: java-sdk-headless, java10-sdk-headless, java11-sdk-headless, java12-sdk-headless, java13-sdk-headless, java14-sdk-headless, java15-sdk-headless, java16-sdk-headless, java17-sdk-headless, java2-sdk-headless, java5-sdk-headless, java6-sdk-headless, java7-sdk-headless, java8-sdk-headless, java9-sdk-headless
Depends: default-jre-headless (= 2:1.17-74), openjdk-17-jdk-headless
Description: Standard Java or Java compatible Development Kit (headless)
Description-md5: 30ba010381e170873e2173516f35326f
Homepage: https://wiki.debian.org/Java/
Section: java
Priority: optional
Filename: pool/main/j/java-common/default-jdk-headless_1.17-74_amd64.deb
Size: 1108
MD5sum: 835880a1e085bd145effef7fc975bbf2
SHA256: 0186f682e5ec8929b9e9e8eb0bedceb57674976ab4656d5874892ab6395da6aa