Where do I get the 'update-java-alternatives' command. What package does it come from? My understanding is that you use 'update-alternatives' to initially add a Java instance to your system but once you have multiple instances added you can use the 'update-java-alternatives' command to flip all the symlinks using a single command.

Can anyone provide insight on where I can get this command on ANY Debian system or even a Redhat system?

  • Just use the update-alternatives command: sudo update-alternatives --config java
    – konapun
    Dec 20 '13 at 18:14
  • Thanks @konapun but that isn't my question. I am asking about the 'update-java-alternatives' command.
    – djangofan
    Dec 20 '13 at 18:38

The update-java-alternatives command is in the java-common package. Red Hat systems don't seem to have it.

By the way, if you ever want to use a command but you don't know what package provides it, try installing apt-file and use its searching powers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.