OCI: How to update OpenJDK Java on Oracle Linux 7 or Later
In order to update the version of OpenJDK installed on an instance running Oracle Linux (OL) 7 or later, use the following steps:
1). Ensure the yum repository or software source for package updates for the version of Oracle Linux being used is enabled. The repositories that need to be enabled are the following:
OL7: [ol7_latest] or [ol7_latest-x86_64] OL8: [ol8_appstream] or [ol8_appstream-x86_64] OL9: [ol9_appstream] or [ol9_appstream-x86_64]
To check if the appropriate repositories are enabled, run the following commands:
For OL7, do:
[root@Serverxx~]# yum repolist
For OL8 and higher, do:
[root@Serverxx~]# dnf repolist
2). Install the desired OpenJDK version by running
Tagged:
0