Please help to explain the syntax for 'update-alternatives'
Usage: update-alternatives --install <link> <name> <path> <priority>
[--slave <link> <name> <path>] ...
<name> is the name in /etc/alternatives.
<path> is the name referred to.
<link> is the link pointing to /etc/alternatives/<name>.
<priority> is an integer; options with higher numbers are chosen.
I'm trying to update my /usr/bin/vi to use gvim instead of vim. Currently, /usr/bin/vi is a symbolic link pointing to /etc/alternatives/vi.
david:/home/david# ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 20 Apr 3 11:49 /usr/bin/vi -> /etc/alternatives/vi
david:/home/david# update-alternatives --display vi
vi - status is auto.
link currently points to /usr/bin/vim
/usr/bin/nvi - priority 30
slave vi.1.gz: /usr/share/man/man1/nvi.1.gz
/usr/bin/vim - priority 120
slave vi.1.gz: /usr/share/man/man1/vim.1.gz
Current `best' version is /usr/bin/vim.
So, I tried this command
I've read the man pages, but it doesn't elaborate further on the usage of the --slave arguement.
Update: In addition to the above, I also changed the symbolic link in /etc/alternatives by hand, without using update-alternatives :
Any advice, please?
PS. Can't seem to find anything that elaborate on update-alternatives at Debian homepage.
|All times are GMT -5. The time now is 09:20 PM.|