Posts

Showing posts with the label Oracle linux

Yum install not recognizing specific version of JDK package on Oracle Linux 7.9

 If `yum install` is not recognizing a specific version of the JDK (Java Development Kit) package on Oracle Linux 7.9, it could be due to various reasons. Here are steps to troubleshoot and resolve this issue: 1. **Update the YUM Repositories**:    Make sure your YUM repositories are up to date. Run the following command to refresh the repositories:    ```bash    sudo yum clean all    sudo yum update    ``` 2. **Check Available JDK Versions**:    Verify which JDK versions are available in the repositories. Use the following command to list the available OpenJDK packages:    ```bash    yum list available 'java*'    ```    You should see a list of available Java packages. 3. **Specify the Exact Version**:    When installing a specific version of a package, you can specify the version in the `yum install` command. For example, to install OpenJDK 8:    ```bash    sudo yum install java-1.8.0-openjdk    ```    Ensure that you use the correct package name for the version you want. 4.