2017-10-13 15:42:02 +08:00
|
|
|
# update-alternatives
|
|
|
|
|
2017-10-22 19:54:39 +08:00
|
|
|
> A convenient tool for maintaining symbolic links to determin default commands.
|
2017-10-13 15:42:02 +08:00
|
|
|
|
|
|
|
- Add a symbolic link:
|
|
|
|
|
2017-10-22 19:54:39 +08:00
|
|
|
`sudo update-alternatives --install {{link}} {{name}} {{path}} {{priority}}`
|
2017-10-13 15:42:02 +08:00
|
|
|
|
2017-10-15 21:27:39 +08:00
|
|
|
- Configure a symbolic link:
|
2017-10-13 15:42:02 +08:00
|
|
|
|
2017-10-22 19:54:39 +08:00
|
|
|
`sudo update-alternatives --config {{name}}`
|
2017-10-13 15:42:02 +08:00
|
|
|
|
|
|
|
- Remove a symbolic link:
|
|
|
|
|
2017-10-22 19:54:39 +08:00
|
|
|
`sudo update-alternatives --remove {{name}} {{path}}`
|
2017-10-13 15:42:02 +08:00
|
|
|
|
2017-10-22 19:54:39 +08:00
|
|
|
- Display information about a specified command:
|
2017-10-13 15:42:02 +08:00
|
|
|
|
2017-10-22 19:54:39 +08:00
|
|
|
`update-alternatives --display {{name}}`
|