tldr/pages/linux/update-alternatives.md

20 lines
456 B
Markdown
Raw Normal View History

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