How to add a link group to update-alternatives?

Posted by Kurtosis on Ask Ubuntu See other posts from Ask Ubuntu or by Kurtosis
Published on 2012-05-30T16:18:13Z Indexed on 2012/05/30 17:00 UTC
Read the original article Hit count: 291

Filed under:
|
|

Is it possible to add a custom link group to update-alternatives that is not already there by default?

For example, I want to add Scala and all its supporting binaries as a link group 'scala'. I'm trying using this script, but keep getting the error:

update-alternatives: error: unknown argument `'

I'm not sure what that means, but after troubleshooting the script a bit with no luck, I'm wondering if update-alternatives has a hard-coded list of link groups, that can't be added to, and that doesn't include scala.

PS - any chance someone with higher karma can create an update-alternatives tag? Seems this topic gets a decent number of questions, but no tag for it.

© Ask Ubuntu or respective owner

Related posts about applications

Related posts about system