You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: How to update OpenJDK Java on Oracle Linux 7 or Later

edited Apr 15, 2024 9:58PM in Linux

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 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!