rocky-linux/rocky-tools#41 Add note to README about OpenJDK packages (#47)

* rocky-linux/rocky-tools#41 Add note to README about OpenJDK packages

* rocky-linux/rocky-tools#41 Add note to README about OpenJDK packages

- add link to bugzilla entry
- add workaround script
This commit is contained in:
Klaus Sperner 2021-06-25 09:43:19 +02:00 committed by GitHub
parent 062f6c44bd
commit 716c0ac89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -56,6 +56,18 @@ on reboot but the other ones will remain until they are removed or replaced by
newer kernels. If you want you can manually remove the old kernels after reboot
with dnf or rpm.
#### Symbolic links to Java programs in `/etc/alternatives` are gone
After migrating a system with an OpenJDK package installed you might encounter
that java does not work any more. There is a bug in the OpenJDK packages that
leads to losing the symbolic links in `/etc/alternatives` during the migration.
A bug report against the upstream packages has been filed
[here](https://bugzilla.redhat.com/show_bug.cgi?id=1976053). As a workaround
you can use the following script to recreate the package default alternatives:
```
rpm -qa --scripts java-{1.8.0,11}-openjdk-{headless,devel} | sed -n '/postinstall/, /exit/{ /postinstall/! { /exit/ ! p} }' | sh
```
### Latest Version
The latest version of this script can be found [here](https://github.com/rocky-linux/rocky-tools/).