adoptium / installer

Installer scripts for Eclipse Temurin binaries
Apache License 2.0
150 stars 75 forks source link

Complete new `linuxNew` based packaging #330

Closed karianna closed 2 years ago

karianna commented 3 years ago

Initial List before we split into an Epic etc.

gdams commented 2 years ago

nvm, it's working now. I guess it's because the release was not fully uploaded before everyone started downloading it

I rebuilt the repo which probably broke the index. Recalculating it seemed to fix this issue

SekiBetu commented 2 years ago

another question: will openj9 version be added in the future? i didn't see any information about openj9 here https://github.com/adoptium/adoptium/issues/68

jerboaa commented 2 years ago

another question: will openj9 version be added in the future? i didn't see any information about openj9 here adoptium/adoptium#68

No.

There are RPM downloads here (the semeru open edition is the successor of openj9 builds from adoptopenjdk): https://developer.ibm.com/languages/java/semeru-runtimes/downloads/

sophia-guo commented 2 years ago

Fedora 33 removed. Fedora 34, 35 added.

evgenkisel commented 2 years ago

Hi! is it possible to get Java 17 as RPM for CentOS 7?

sfc-gh-pbennes commented 2 years ago

@evgenkisel it looks like the CentOS 8 repo also works for CentOS 7 based on a quick docker smoke test, though IDK if there are any potential issues doing that. It looked like there was a CentOS 7 repo last week, not sure what happened to it. Also unsure where the repository key is for importing. This is the repo I was using for testing: https://adoptium.jfrog.io/artifactory/rpm/centos/8/x86_64/. Unsure if it's actually ready to be used but:

$ docker run -it --rm centos:7
[root@91dd8f25fe3d /]# yum-config-manager --add-repo https://adoptium.jfrog.io/artifactory/rpm/centos/8/x86_64/
Loaded plugins: fastestmirror, ovl
adding repo from: https://adoptium.jfrog.io/artifactory/rpm/centos/8/x86_64/

[adoptium.jfrog.io_artifactory_rpm_centos_8_x86_64_]
name=added from: https://adoptium.jfrog.io/artifactory/rpm/centos/8/x86_64/
baseurl=https://adoptium.jfrog.io/artifactory/rpm/centos/8/x86_64/
enabled=1

[root@91dd8f25fe3d yum.repos.d]# yum --nogpgcheck install temurin-11-jdk
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: centos.s.uw.edu
 * extras: or-mirror.iwebfusion.net
 * updates: ftp.osuosl.org
Resolving Dependencies
--> Running transaction check
---> Package temurin-11-jdk.x86_64 0:11.0.13.0.0.8-1 will be installed
--> Processing Dependency: libXtst(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: libXrender(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: libXi(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: libXext(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: libX11(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: freetype(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: fontconfig(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: dejavu-sans-fonts for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Processing Dependency: alsa-lib(x86-64) for package: temurin-11-jdk-11.0.13.0.0.8-1.x86_64
--> Running transaction check
---> Package alsa-lib.x86_64 0:1.1.8-1.el7 will be installed
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
---> Package freetype.x86_64 0:2.8-14.el7_9.1 will be installed
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: freetype-2.8-14.el7_9.1.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: freetype-2.8-14.el7_9.1.x86_64
---> Package libX11.x86_64 0:1.6.7-4.el7_9 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-4.el7_9 for package: libX11-1.6.7-4.el7_9.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-4.el7_9.x86_64
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package libX11-common.noarch 0:1.6.7-4.el7_9 will be installed
---> Package libpng.x86_64 2:1.5.13-8.el7 will be installed
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
--> Running transaction check
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================
 Package                                  Arch                    Version                           Repository                                                           Size
==============================================================================================================================================================================
Installing:
 temurin-11-jdk                           x86_64                  11.0.13.0.0.8-1                   adoptium.jfrog.io_artifactory_rpm_centos_8_x86_64_                  157 M
Installing for dependencies:
 alsa-lib                                 x86_64                  1.1.8-1.el7                       base                                                                425 k
 dejavu-fonts-common                      noarch                  2.33-6.el7                        base                                                                 64 k
 dejavu-sans-fonts                        noarch                  2.33-6.el7                        base                                                                1.4 M
 fontconfig                               x86_64                  2.13.0-4.3.el7                    base                                                                254 k
 fontpackages-filesystem                  noarch                  1.44-8.el7                        base                                                                9.9 k
 freetype                                 x86_64                  2.8-14.el7_9.1                    updates                                                             380 k
 libX11                                   x86_64                  1.6.7-4.el7_9                     updates                                                             607 k
 libX11-common                            noarch                  1.6.7-4.el7_9                     updates                                                             164 k
 libXau                                   x86_64                  1.0.8-2.1.el7                     base                                                                 29 k
 libXext                                  x86_64                  1.3.3-3.el7                       base                                                                 39 k
 libXi                                    x86_64                  1.7.9-1.el7                       base                                                                 40 k
 libXrender                               x86_64                  0.9.10-1.el7                      base                                                                 26 k
 libXtst                                  x86_64                  1.2.3-1.el7                       base                                                                 20 k
 libpng                                   x86_64                  2:1.5.13-8.el7                    base                                                                213 k
 libxcb                                   x86_64                  1.13-1.el7                        base                                                                214 k

Transaction Summary
==============================================================================================================================================================================
Install  1 Package (+15 Dependent packages)

Total download size: 161 M
Installed size: 319 M
Is this ok [y/d/N]: y
Downloading packages:
(1/16): dejavu-fonts-common-2.33-6.el7.noarch.rpm                                                                                                      |  64 kB  00:00:05     
(2/16): alsa-lib-1.1.8-1.el7.x86_64.rpm                                                                                                                | 425 kB  00:00:05     
(3/16): fontconfig-2.13.0-4.3.el7.x86_64.rpm                                                                                                           | 254 kB  00:00:00     
(4/16): fontpackages-filesystem-1.44-8.el7.noarch.rpm                                                                                                  | 9.9 kB  00:00:00     
(5/16): dejavu-sans-fonts-2.33-6.el7.noarch.rpm                                                                                                        | 1.4 MB  00:00:00     
(6/16): freetype-2.8-14.el7_9.1.x86_64.rpm                                                                                                             | 380 kB  00:00:05     
(7/16): libX11-1.6.7-4.el7_9.x86_64.rpm                                                                                                                | 607 kB  00:00:05     
(8/16): libX11-common-1.6.7-4.el7_9.noarch.rpm                                                                                                         | 164 kB  00:00:00     
(9/16): libXau-1.0.8-2.1.el7.x86_64.rpm                                                                                                                |  29 kB  00:00:00     
(10/16): libXi-1.7.9-1.el7.x86_64.rpm                                                                                                                  |  40 kB  00:00:00     
(11/16): libXrender-0.9.10-1.el7.x86_64.rpm                                                                                                            |  26 kB  00:00:00     
(12/16): libXtst-1.2.3-1.el7.x86_64.rpm                                                                                                                |  20 kB  00:00:00     
(13/16): libpng-1.5.13-8.el7.x86_64.rpm                                                                                                                | 213 kB  00:00:00     
(14/16): libxcb-1.13-1.el7.x86_64.rpm                                                                                                                  | 214 kB  00:00:00     
(15/16): libXext-1.3.3-3.el7.x86_64.rpm                                                                                                                |  39 kB  00:00:05     
(16/16): temurin-11-jdk-11.0.13.0.0.8-1.x86_64.rpm                                                                                                     | 157 MB  00:00:15     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                         5.9 MB/s | 161 MB  00:00:27     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                                                                                                                 1/16 
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                                                                                                                     2/16 
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                                                                                                                       3/16 
  Installing : libX11-common-1.6.7-4.el7_9.noarch                                                                                                                        4/16 
  Installing : 2:libpng-1.5.13-8.el7.x86_64                                                                                                                              5/16 
  Installing : freetype-2.8-14.el7_9.1.x86_64                                                                                                                            6/16 
  Installing : fontconfig-2.13.0-4.3.el7.x86_64                                                                                                                          7/16 
  Installing : libXau-1.0.8-2.1.el7.x86_64                                                                                                                               8/16 
  Installing : libxcb-1.13-1.el7.x86_64                                                                                                                                  9/16 
  Installing : libX11-1.6.7-4.el7_9.x86_64                                                                                                                              10/16 
  Installing : libXext-1.3.3-3.el7.x86_64                                                                                                                               11/16 
  Installing : libXi-1.7.9-1.el7.x86_64                                                                                                                                 12/16 
  Installing : libXtst-1.2.3-1.el7.x86_64                                                                                                                               13/16 
  Installing : libXrender-0.9.10-1.el7.x86_64                                                                                                                           14/16 
  Installing : alsa-lib-1.1.8-1.el7.x86_64                                                                                                                              15/16 
  Installing : temurin-11-jdk-11.0.13.0.0.8-1.x86_64                                                                                                                    16/16 
  Verifying  : libXext-1.3.3-3.el7.x86_64                                                                                                                                1/16 
  Verifying  : alsa-lib-1.1.8-1.el7.x86_64                                                                                                                               2/16 
  Verifying  : libXi-1.7.9-1.el7.x86_64                                                                                                                                  3/16 
  Verifying  : fontconfig-2.13.0-4.3.el7.x86_64                                                                                                                          4/16 
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                                                                                                               5/16 
  Verifying  : temurin-11-jdk-11.0.13.0.0.8-1.x86_64                                                                                                                     6/16 
  Verifying  : libXrender-0.9.10-1.el7.x86_64                                                                                                                            7/16 
  Verifying  : libX11-1.6.7-4.el7_9.x86_64                                                                                                                               8/16 
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                                                                                                                     9/16 
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                                                                                                                      10/16 
  Verifying  : libXtst-1.2.3-1.el7.x86_64                                                                                                                               11/16 
  Verifying  : 2:libpng-1.5.13-8.el7.x86_64                                                                                                                             12/16 
  Verifying  : libxcb-1.13-1.el7.x86_64                                                                                                                                 13/16 
  Verifying  : freetype-2.8-14.el7_9.1.x86_64                                                                                                                           14/16 
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                                                                                                                15/16 
  Verifying  : libX11-common-1.6.7-4.el7_9.noarch                                                                                                                       16/16 

Installed:
  temurin-11-jdk.x86_64 0:11.0.13.0.0.8-1                                                                                                                                     

Dependency Installed:
  alsa-lib.x86_64 0:1.1.8-1.el7                  dejavu-fonts-common.noarch 0:2.33-6.el7    dejavu-sans-fonts.noarch 0:2.33-6.el7    fontconfig.x86_64 0:2.13.0-4.3.el7     
  fontpackages-filesystem.noarch 0:1.44-8.el7    freetype.x86_64 0:2.8-14.el7_9.1           libX11.x86_64 0:1.6.7-4.el7_9            libX11-common.noarch 0:1.6.7-4.el7_9   
  libXau.x86_64 0:1.0.8-2.1.el7                  libXext.x86_64 0:1.3.3-3.el7               libXi.x86_64 0:1.7.9-1.el7               libXrender.x86_64 0:0.9.10-1.el7       
  libXtst.x86_64 0:1.2.3-1.el7                   libpng.x86_64 2:1.5.13-8.el7               libxcb.x86_64 0:1.13-1.el7              

Complete!
[root@91dd8f25fe3d yum.repos.d]# java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
[root@91dd8f25fe3d yum.repos.d]# 
maksymgendin commented 2 years ago

@evgenkisel This worked for me on RHEL 8 for example:

cat <<'EOF' > /etc/yum.repos.d/adoptium.repo
[Adoptium]
name=Adoptium
baseurl=https://adoptium.jfrog.io/artifactory/rpm/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://adoptium.jfrog.io/artifactory/api/security/keypair/default-gpg-key/public
EOF
yum install temurin-17-jdk

(and yeah, the CentOS 7 repository has recently disappeared 😮)

theofficialgman commented 2 years ago

are there plans on adding jre only packages to this repo? or will it always be the full jdk only

wwuck commented 2 years ago

When will the APT installation instructions be added to https://adoptium.net/installation.html#packages? I can already see it on the blog at https://blog.adoptium.net/2021/12/eclipse-temurin-linux-installers-available/.

gdams commented 2 years ago

@wwuck i’ll be adding the instructions to the website shortly

juozaspo commented 2 years ago

Ubuntu 21.10 deb version is missing from repository. As @Pokegamer129 has a problem setting up a repository on his system, I found out that by troubleshouting his process as described in comments of Moresteck/BetaCraft-Launcher-Java#114 and I'm not sure if package for 21.04 might be compatible. Edit: The mentioned user has solved the problem, it appears versions for hirsute works fine on impish so far. The user didn't report a problem yet while using this java package version.

StrangeNoises commented 2 years ago

can confirm the above. Following the instructions to the letter from the blogpost on 21.10 (impish indri) fails because there is no release for that version. Changing the source file to use hirsute does work. There are some minor (non-showstopper) issues with using update-java-alternatives but at this point we probably should be raising new issues for them if we think they're important enough.

sxa commented 2 years ago

at this point we probably should be raising new issues for them

Yep raising subsequent issues for that would be the right thing to do.

Ubuntu 21.10 deb version is missing from repository

We've got some discussions at PMC level about how to support newer (and "legacy") distributions so we'll hope to sort that out shortly :-)

StrangeNoises commented 2 years ago

well, matching which distro versions are actually supported by their own vendors seems a good start. 😀 21.04 is going to EOL very shortly; 21.10 is the current non-LTS release, although I don't think it was when JDK 17.0.1 came out 😜

But honestly assuming it's the same actual binary build being installed in each case - as opposed to, say, compiled against the extant library versions in that exact distro version - then it could probably be simplified by not making the distro version a part of the repo url.

Or in Ubuntu's sake (and its own downstream derivatives), basing it off the upstream debian version instead, as there are fewer of those and they last longer. via /etc/debian_version.

I imagine you might have similar issues with Fedora, where releases are also frequent and short-lived, vs. RHEL and what's stepped into CentOS's shoes.

sxa commented 2 years ago

well, matching which distro versions are actually supported by their own vendors seems a good start.

Absolutely and I will be attempting to ensure we have that as a minimum ;-)

pho3nixx commented 2 years ago

Now that there are JRE builds back (yay!), are there plans to provide them as Debian packages via the repository, too? Right now, only JDK packages are available there.

maksymgendin commented 2 years ago

I have also a question about crypto-policies: Is it planned to autoconfigure the installed Eclipse Temurin JDK to use the system-wide configured crypto-policies?

drm00 commented 2 years ago

The blog post mentions linux package support for SLES 12, but I cannot find any folder with sles packages in the jfrog repository. Is support for SLES still planned? And will the installation documantion be put on the adoptium.net page?

jerboaa commented 2 years ago

The blog post mentions linux package support for SLES 12, but I cannot find any folder with sles packages in the jfrog repository. Is support for SLES still planned? And will the installation documantion be put on the adoptium.net page?

https://blog.adoptium.net/2021/12/eclipse-temurin-linux-installers-available/

sxa commented 2 years ago

I have also a question about crypto-policies: Is it planned to autoconfigure the installed Eclipse Temurin JDK to use the system-wide configured crypto-policies?

We do not have that in the plan at the moment.

maksymgendin commented 2 years ago

I have also a question about crypto-policies: Is it planned to autoconfigure the installed Eclipse Temurin JDK to use the system-wide configured crypto-policies?

We do not have that in the plan at the moment.

Thanks, @sxa.

The Red Hat distribution of OpenJDK (java-11-openjdk package) on RHEL is automatically using the system-wide crypto-policies as far as I know. Probably they configure this behavior in a similar way like you configure the usage of the system certificate store here.

If it's currently not on the plan - how can I request a feature for this?

drm00 commented 2 years ago

The blog post mentions linux package support for SLES 12, but I cannot find any folder with sles packages in the jfrog repository. Is support for SLES still planned? And will the installation documantion be put on the adoptium.net page?

https://blog.adoptium.net/2021/12/eclipse-temurin-linux-installers-available/

@jerboaa Yes, that's the blog post I was referring to. It mentions SLES:

openSUSE/SLES Instructions

  1. Import the RPM repo making sure to change the openSUSE version if you are not using OpenSUSE 15.2. RPM’s are also available for SLES 12 and 15. To check the full list of versions supported take a look at https://packages.adoptium.net/ui/repos/tree/General/rpm.

But there is no folder for SLES in the jfrog repo:

grafik

Am I missing something obvious?

karianna commented 2 years ago

See #426

drm00 commented 2 years ago

@karianna Great, thanks!

drm00 commented 2 years ago

@karianna The jfrog-repo lists sles 12 and 15 now, which is great! Thanks 👍 Currently, there is only temurin 17.0.2 available - will packages for jdk 11 be provided as well?

karianna commented 2 years ago

Yes they should be arriving AFAIK

karianna commented 2 years ago

@gdams - LMK when the installers are out and I think we can close this one and raise specific tickets for anything extra we want to add

karianna commented 2 years ago

Closing this issue now that the docs are up on the website.

sfc-gh-pbennes commented 2 years ago

Thanks everyone.