What is the difference between 'openjdk-headless', 'openjdk', 'openjdk-devel' packages ?

Solution Verified - Updated -

Issue

  • I found 3 different kinds of OpenJDK packages such as 'openjdk-headless', 'openjdk', 'openjdk-devel'.
  • What is the role of each package?
  • When I tried to install OpenJDK with yum, it seems that some dependencies were found like the below.
$ sudo yum install java-11
Updating Subscription Management repositories.
This system is receiving updates from Red Hat Satellite or Spacewalk server.
Repository google-chrome is listed more than once in the configuration
Dependencies resolved.
================================================================================================================
 Package                                Architecture         Version                           Repository                                
================================================================================================================
Installing:
 java-11-openjdk                        x86_64               1:11.0.8.10-0.el8_2               rhel-8-for-x86_64-appstream-rpms           

Installing dependencies:
 java-11-openjdk-headless               x86_64               1:11.0.8.10-0.el8_2               rhel-8-for-x86_64-appstream-rpms           
================================================================================================================
  • Unlike version 1.7, 1.8, and 11, the headless package is not found in version 1.6.

Environment

  • OpenJDK 7
  • OpenJDK 8
  • OpenJDK 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In