How to add a program to update-alternatives
My preferred editor is not listed when I run
Code:
sudo update-alternatives --config gnome-text-editor |
Don't know. Never heard of it.
Which GNU/Linux distro are you using? What application are you trying to run? etc, etc, etc. Give more information relative to the problem, and you are more likely to get an answer. |
Quote:
I want to use SciTE text editor as my gnome-text-editor, but after installing SciTE using Synaptics, I do not have an option to select it when I run this code Code:
sudo update-alternatives --config gnome-text-editor |
This might help: http://blog.stevenkroon.com/2006/08/...-alternatives/
|
Quote:
The man-page for the tool suggests two directories for you to look at (you did read the man-page, right?). Number 1: /etc/alternatives (holds links to the actual program to use, eg. editor is a symlink to /usr/bin/vim) Not a good place to start futzing around ... Number 2: /var/lib/dpkg/alternatives Hmmm ... text-files, with content like: Code:
auto NO idea whether the maintainers of deb/*bunut share that view ;} Cheers, Tink |
Add new option to update-alternatives link, Correct Answer
To add a new item to update-alternatives, use the following options.
Code:
update-alternatives --install /usr/bin/$LINK $PROVIDES /usr/bin/$BIN $XX If The link I'm updating is /usr/bin/lua, which provides lua-interpreter. I want to add Luajit, with a priority of 90, to the /usr/bin/lua link. Code:
update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/luajit-2.0.0-beta8 90 I'm providing the correct answer so it will be available, for anyone who lands here from Google. I hate having high relevancy results, not provide the appropriate information. I'm aware this is a 3+ years old thread. BTW, update-alternatives is a Debian family specific command. I wouldn't need to be told explicitly which distro someone uses, to address something implicitly distro specific. |
I have a doubt, is there a way to add man pages particularly for eg like the java man page using update-alternatives for curiousity sake? :)
|
And in 2013 I thank you gnuzilla :-)
It's like when you go to the hardware store and ask where the hammers are and the (insert rediculous job title like Industrial systems technical sales associate)says "duh... what are you going to do with it?" instead of the correct answer which would be "I don't know" or "isle 4" |
Aaaaaaand... in 2014, thank you gnuzilla!
|
Aaand in 2015, thank you, gnuzilla..
|
thanks gunzilla
|
And in 2016, thank you gnuzilla
|
2017, thanks gnuzilla!
|
In 2020, thanks gnuzilla!
|
In 2023, Thanks gnuzilla. A true hero in our time of need.
|
All times are GMT -5. The time now is 08:59 PM. |