What happened to OpenJDK 17?

General support questions
Post Reply
kr.st.je
Posts: 3
Joined: 2022/05/23 10:27:31

What happened to OpenJDK 17?

Post by kr.st.je » 2022/05/23 10:37:38

Hi,
since some time I cannot install OpenJDK 17 on a CentOS 7 system. When I call

Code: Select all

sudo yum install java-17-openjdk
I get

Code: Select all

No package java-17-openjdk available.
On the other side, I can install a package like java-latest-openjdk. But I need OpenJDK 17.

This was not always the case. There must be happened something recently so I cannot install java-17-openjdk now anymore.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: What happened to OpenJDK 17?

Post by TrevorH » 2022/05/23 10:43:32

What is the output from yum list java-17\* on a system that you were previously able to install this on?

I see java-17 packages are in AppStream (and powertools) on el8.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

kr.st.je
Posts: 3
Joined: 2022/05/23 10:27:31

Re: What happened to OpenJDK 17?

Post by kr.st.je » 2022/05/23 11:01:25

TrevorH wrote:
2022/05/23 10:43:32
I see java-17 packages are in AppStream (and powertools) on el8.
el8, what's that ?

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: What happened to OpenJDK 17?

Post by tunk » 2022/05/23 13:19:37

Enterprise Linux, as in RHEL and all clones/rebuilds like rocky/alma/oel/springdale/etc.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: What happened to OpenJDK 17?

Post by TrevorH » 2022/05/23 14:38:29

CentOS 7 is el7, Rocky/alma/RHEL 8 are el8, RHEL 9 is el9 (there aren't any rebuilds yet).

I wanted the yum list output so that I could see which repo the installed packages previously came from.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

kr.st.je
Posts: 3
Joined: 2022/05/23 10:27:31

Re: What happened to OpenJDK 17?

Post by kr.st.je » 2022/05/23 15:11:58

I had to search for some log files which could give some hints. I could find a file where I logged what was installed at the time. This is from March 23rd according to file stats:

Code: Select all

  File: installation.log
  Size: 296292          Blocks: 584        IO Block: 4096   regular file
Device: 811h/2065d      Inode: 78768       Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-05-23 15:00:36.987562842 +0000
Modify: 2022-03-23 18:19:50.678045311 +0000
Change: 2022-03-23 18:19:50.678045311 +0000
 Birth: -

In that file you can see that I am installing java-17-openjdk. The command which is used is

Code: Select all

yum install -y java-17-openjdk
. But as far as I can see java-17-openjdk is just an alias for java-latest-openjdk.

Code: Select all

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.mijn.host
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: ftp.nluug.nl
 * updates: centos.mirror.triple-it.nl
http://mirror.es.its.nyu.edu/epel/7/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.es.its.nyu.edu/epel/7/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package java-latest-openjdk.x86_64 1:17.0.1.0.12-1.rolling.el7 will be installed
--> Processing Dependency: java-latest-openjdk-headless(x86-64) = 1:17.0.1.0.12-1.rolling.el7 for package: 1:java-latest-openjdk-17.0.1.0.12-1.rolling.el7.x86_64
--> Running transaction check
---> Package java-latest-openjdk-headless.x86_64 1:17.0.1.0.12-1.rolling.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                       Arch    Version                      Repository
                                                                           Size
================================================================================
Installing:
 java-latest-openjdk           x86_64  1:17.0.1.0.12-1.rolling.el7  epel  210 k
Installing for dependencies:
 java-latest-openjdk-headless  x86_64  1:17.0.1.0.12-1.rolling.el7  epel   40 M

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 40 M
Installed size: 179 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                               19 MB/s |  40 MB  00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:java-latest-openjdk-headless-17.0.1.0.12-1.rolling.el7.x   1/2 
  Installing : 1:java-latest-openjdk-17.0.1.0.12-1.rolling.el7.x86_64       2/2 
  Verifying  : 1:java-latest-openjdk-headless-17.0.1.0.12-1.rolling.el7.x   1/2 
  Verifying  : 1:java-latest-openjdk-17.0.1.0.12-1.rolling.el7.x86_64       2/2 

Installed:
  java-latest-openjdk.x86_64 1:17.0.1.0.12-1.rolling.el7                        

Dependency Installed:
  java-latest-openjdk-headless.x86_64 1:17.0.1.0.12-1.rolling.el7               

Complete!
Also, trying to list java-17\* packages gives me:

Code: Select all

Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Loading mirror speeds from cached hostfile
 * base: mirror.serverius.net
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: mirror.widexs.nl
 * updates: mirror.widexs.nl
Error: No matching Packages to list
But listing java-latest\* packages is giving me more
java-17-openjdk-centos-7.png
java-17-openjdk-centos-7.png (175.58 KiB) Viewed 24296 times

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: What happened to OpenJDK 17?

Post by TrevorH » 2022/05/23 16:35:11

java-latest is an EPEL package set and they have moved to 18. 17 was never supplied by CentOS, only by EPEL and they only track $latest. RHEL 8 has specific java-17 packages in appstream, probably as modules so Rocky/Alma/OE will also have them if moving to el8 is a possibility. I don't have enough RAM on my VM host to have RHEL 9 running permanently yet so can't check what's available there.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: What happened to OpenJDK 17?

Post by jlehtone » 2022/05/23 19:34:51

TrevorH wrote:
2022/05/23 16:35:11
I don't have enough RAM on my VM host to have RHEL 9 running permanently yet so can't check what's available there.
A mirror of AlmaLinux 9 beta has:

Code: Select all

java-1.8.0-openjdk-1.8.0.322.b06-2.el9.x86_64.rpm
java-11-openjdk-11.0.12.0.7-3.el9.x86_64.rpm
java-17-openjdk-17.0.2.0.8-2.el9.x86_64.rpm
I'd guess that is not far from RHEL 9 offering. CentOS Stream 9 has the 1.8.0, 11, and 17, with slightly newer minor versions/builds.

Post Reply