Skip to main content
2 of 2
added 6 characters in body
Marcus Müller
  • 52.7k
  • 4
  • 80
  • 123

You might simply build this yourself. If it worked before, chances are the build for Fedora works. You will need a Fedora 34+ host to cross-build this.

# Don't build as root. Only need root privileges to install `fedpkg`, sudo dnf install -y fedpkg # Now get the package description git clone https://src.fedoraproject.org/rpms/java-17-openjdk # Use fedpkg to kick off a mock build cd java-17-openjdk fedpkg mockbuild --root centos-7-x86_64 

This will take a while¹; and in the end, you should be getting a line that tells you where the RPMs you've just built were put.


¹ mock sets up a chroot, in which it installs a CentOS 7 base system, then EPEL, which you'll almost certainly will need, I think, then the tools necessary to build any RPM, then the build-time dependencies of the java-17-openjdk package. Then it will download all the necessary source code, hand off to rpm-build to do the build, which includes applying all patches, then compiling OpenJDK, then, running the OpenJDK installation, collecting the installed files, compressing them into valid RPMs.

Marcus Müller
  • 52.7k
  • 4
  • 80
  • 123