# salt.modules.alternatives

Support for Alternatives system

codeauthor: | Radek Rada <radek.rada@gmail.com>
copyright: | © 2012 by the SaltStack Team, see AUTHORS for more details.
license: | Apache 2.0, see LICENSE for more details.

`salt.modules.alternatives.` `auto`(name)

  Trigger alternatives to set the path for <name> as specified by priority.

  CLI Example:

      salt '*' alternatives.auto name

`salt.modules.alternatives.` `check_installed`(name, path)

  Check if the current highest-priority match for a given alternatives link is set to the desired path

  CLI Example:

      salt '*' alternatives.check_installed name path

`salt.modules.alternatives.` `display`(name)

  Display alternatives settings for defined command name

  CLI Example:

      salt '*' alternatives.display editor

`salt.modules.alternatives.` `install`(name, link, path, priority)

  Install symbolic links determining default commands

  CLI Example:

      salt '*' alternatives.install editor /usr/bin/editor /usr/bin/emacs23 50

`salt.modules.alternatives.` `remove`(name, path)

  Remove symbolic links determining the default commands.

  CLI Example:

      salt '*' alternatives.remove name path

`salt.modules.alternatives.` `set_`(name, path)

  Manually set the alternative <path> for <name>.

  CLI Example:

      salt '*' alternatives.set name path

`salt.modules.alternatives.` `show_current`(name)

  Display the current highest-priority alternative for a given alternatives link

  CLI Example:

      salt '*' alternatives.show_current editor

Current Salt release: 0.17.1

#### Previous topic

salt.modules.aliases

#### Next topic

salt.modules.apache

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd