This will list available versions (e.g., java-1.8.0-openjdk , java-11-openjdk , etc.).
Apply the changes:
sudo alternatives --config java
While newer versions of these operating systems often use dnf , the yum command is typically aliased and remains fully functional for installing Java packages. Prerequisites Before starting, ensure you have: install java yum
dirname $(dirname $(readlink -f $(which java))) This will list available versions (e
Before installing, refresh the repository metadata: This will list available versions (e.g.
Subscribe now to keep reading and get access to the full archive.