---
name: "cdist-type__update_alternatives"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__update_alternatives"
---

# cdist-type\_\_update\_alternatives(7)

Configure alternatives

## NAME

cdist-type\_\_update\_alternatives - Configure alternatives

## DESCRIPTION

On Debian and alike systems [update-alternatives(1)](/update-alternatives/1.md) can be used to setup alternatives for various programs. One of the most common used targets is the "editor".

## REQUIRED PARAMETERS

- **path**

  Use this path for the given alternative

## BOOLEAN PARAMETERS

- **install**

  Add (**update-alternatives --install**) missing path to alternatives.

## EXAMPLES

```
# Setup vim as the default editor
__update_alternatives editor --path /usr/bin/vim.basic
```

## SEE ALSO

[**cdist-type\_\_debconf\_set\_selections**(7)](/cdist-type__debconf_set_selections/7.md), [**update-alternatives**(8)](/update-alternatives/8.md)

## AUTHORS

Nico Schottelius \<*nico-cdist--@--schottelius.org*\> Ander Punnar \<*ander@kvlt.ee*\>

## COPYING

Copyright (C) 2013 Nico Schottelius and 2020 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
