mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-22 05:01:25 +00:00
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:
parent
062f6c44bd
commit
716c0ac89c
@ -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/).
|
||||
|
Loading…
Reference in New Issue
Block a user