Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libX11, fonts and alsa in -headless variants #187

Open
dansd opened this issue Nov 24, 2023 · 1 comment
Open

libX11, fonts and alsa in -headless variants #187

dansd opened this issue Nov 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dansd
Copy link

dansd commented Nov 24, 2023

Hi, I have been wondering why the headless variants of corretto include packages that I remember to be for a GUI such as alsa, fonts and libraries for X11.

The documentation states that these are only included in the headful variants: https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/amazon-linux-install.html

Trying to remove them is not possible due to dependencies to corretto itself:

$ docker run --platform linux/amd64 public.ecr.aws/amazoncorretto/amazoncorretto:17-al2023-headless dnf remove alsa-lib
Unable to find image 'public.ecr.aws/amazoncorretto/amazoncorretto:17-al2023-headless' locally
17-al2023-headless: Pulling from amazoncorretto/amazoncorretto
a98bc98bb91a: Pull complete 
0899efd2a031: Pull complete 
Digest: sha256:bab4fbacc0dd19b10bb38c39225f8c7acd9c12353e28290e1141518ff55d2784
Status: Downloaded newer image for public.ecr.aws/amazoncorretto/amazoncorretto:17-al2023-headless
Dependencies resolved.
=========================================================================================
 Package                            Arch    Version                  Repository      Size
=========================================================================================
Removing:
 alsa-lib                           x86_64  1.2.7.2-1.amzn2023.0.2   @amazonlinux   1.4 M
Removing dependent packages:
 java-17-amazon-corretto-headless   x86_64  1:17.0.9+8-1.amzn2023.1  @@commandline  235 M
Removing unused dependencies:
 cairo                              x86_64  1.17.6-2.amzn2023.0.1    @amazonlinux   1.7 M
 chkconfig                          x86_64  1.15-2.amzn2023.0.2      @amazonlinux   756 k
 dejavu-sans-fonts                  noarch  2.37-16.amzn2023.0.2     @amazonlinux   5.7 M
 dejavu-sans-mono-fonts             noarch  2.37-16.amzn2023.0.2     @amazonlinux   1.2 M
 dejavu-serif-fonts                 noarch  2.37-16.amzn2023.0.2     @amazonlinux   3.4 M
 fontconfig                         x86_64  2.13.94-2.amzn2023.0.2   @amazonlinux   826 k
 fonts-filesystem                   noarch  1:2.0.5-12.amzn2023.0.2  @amazonlinux     0  
 freetype                           x86_64  2.13.0-2.amzn2023.0.1    @amazonlinux   891 k
 google-noto-fonts-common           noarch  20201206-2.amzn2023.0.2  @amazonlinux    15 k
 google-noto-sans-vf-fonts          noarch  20201206-2.amzn2023.0.2  @amazonlinux   1.1 M
 graphite2                          x86_64  1.3.14-7.amzn2023.0.2    @amazonlinux   201 k
 harfbuzz                           x86_64  7.0.0-2.amzn2023.0.1     @amazonlinux   2.2 M
 javapackages-filesystem            noarch  6.0.0-7.amzn2023.0.6     @amazonlinux   1.9 k
 langpacks-core-font-en             noarch  3.0-21.amzn2023.0.4      @amazonlinux   351  
 libX11                             x86_64  1.7.2-3.amzn2023.0.4     @amazonlinux   1.3 M
 libX11-common                      noarch  1.7.2-3.amzn2023.0.4     @amazonlinux   1.3 M
 libXau                             x86_64  1.0.9-6.amzn2023.0.2     @amazonlinux    64 k
 libXext                            x86_64  1.3.4-6.amzn2023.0.2     @amazonlinux    98 k
 libXrender                         x86_64  0.9.10-14.amzn2023.0.2   @amazonlinux    50 k
 libbrotli                          x86_64  1.0.9-4.amzn2023.0.2     @amazonlinux   771 k
 libjpeg-turbo                      x86_64  2.1.4-2.amzn2023.0.5     @amazonlinux   673 k
 libpng                             x86_64  2:1.6.37-10.amzn2023.0.6 @amazonlinux   251 k
 libxcb                             x86_64  1.13.1-7.amzn2023.0.2    @amazonlinux   1.1 M
 pixman                             x86_64  0.40.0-3.amzn2023.0.3    @amazonlinux   747 k
 xml-common                         noarch  0.6.3-56.amzn2023.0.2    @amazonlinux    78 k

Transaction Summary
=========================================================================================
Remove  27 Packages

Freed space: 261 M
@dansd dansd added the enhancement New feature or request label Nov 24, 2023
@tomikpik
Copy link

+1 for this issue (observed for corretto 21)
The documentation says that it omits runtime dependencies that are typically associated with GUI applications such as X11 and ALSA and is worth considering for server-oriented workloads

The fact that the java-21-amazon-corretto-headless package requires these packages means there is no difference between headless and headful variants.

Can you please fix the headless package dependencies?

Thanks
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants