Update-alternatives: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
| Zeile 1: | Zeile 1: | ||
'''update-alternatives''' - Verwaltung symbolischer Links zur Bestimmung von Standardwerten für Befehle | '''update-alternatives''' - Verwaltung symbolischer Links zur Bestimmung von Standardwerten für Befehle | ||
== Beschreibung == | == Beschreibung == | ||
== Installation == | == Installation == | ||
== | <syntaxhighlight lang="bash" highlight="1" line copy> | ||
=== | </syntaxhighlight> | ||
== Aufruf == | |||
<syntaxhighlight lang="bash" highlight="1" line> | |||
update-alternatives [Option …] Befehl | |||
</syntaxhighlight> | |||
=== Optionen === | |||
{| class="wikitable sortable options gnu big" | |||
|- | |||
! Unix !! GNU !! Parameter !! Beschreibung | |||
|- | |||
| || || || | |||
|- | |||
|} | |||
=== Parameter === | |||
=== Umgebungsvariablen === | |||
=== Exit-Status === | |||
{| class="wikitable options col1center big" | |||
|- | |||
! Wert !! Beschreibung | |||
|- | |||
| 0 || Erfolg | |||
|- | |||
| >0 || Fehler | |||
|} | |||
== Anwendung == | |||
<syntaxhighlight lang="bash" highlight="1" line copy> | |||
</syntaxhighlight> | |||
<!-- output --> | |||
<syntaxhighlight lang="bash" highlight="" line> | |||
</syntaxhighlight> | |||
=== Einstellungen anzeigen === | |||
; get-selections | |||
sudo update-alternatives --get-selections | sudo update-alternatives --get-selections | ||
animate auto /usr/bin/animate-im6.q16 | animate auto /usr/bin/animate-im6.q16 | ||
| Zeile 20: | Zeile 58: | ||
[...] | [...] | ||
=== | === Einstellungen setzen === | ||
; config | |||
sudo update-alternatives --config vi | sudo update-alternatives --config vi | ||
There are 2 choices for the alternative vi (providing /usr/bin/vi). | There are 2 choices for the alternative vi (providing /usr/bin/vi). | ||
| Zeile 46: | Zeile 85: | ||
Press <enter> to keep the current choice[*], or type selection number: | Press <enter> to keep the current choice[*], or type selection number: | ||
== | === Problembehebung === | ||
== Konfiguration == | == Konfiguration == | ||
=== Dateien === | === Dateien === | ||
= | {| class="wikitable options big" | ||
== | |- | ||
=== | ! Datei !! Beschreibung | ||
=== | |- | ||
| || | |||
|- | |||
| || | |||
|} | |||
<noinclude> | |||
== Anhang == | |||
=== Siehe auch === | |||
<div style="column-count:2"> | |||
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree> | |||
</div> | |||
---- | |||
{{Special:PrefixIndex/{{BASEPAGENAME}}/}} | |||
---- | |||
# update-alternatives(1) | # update-alternatives(1) | ||
# dpkg suite | # dpkg suite | ||
# update-alternatives(1) 1.21.9 2022-10-15 | # update-alternatives(1) 1.21.9 2022-10-15 | ||
# ln(1) | # ln(1) | ||
# FHS (der Dateisystem-Hierarchie-Standard, Filesystem Hierarchy Standard) | # FHS (der Dateisystem-Hierarchie-Standard, Filesystem Hierarchy Standard) | ||
== | === Dokumentation === | ||
== | <!-- | ||
; Man-Page | |||
# [https://manpages.debian.org/stable/procps/pgrep.1.de.html prep(1)] | |||
; Info-Pages | |||
--> | |||
=== Links === | |||
==== Projekt ==== | |||
==== Weblinks ==== | |||
{{DEFAULTSORT:update-alternatives}} | {{DEFAULTSORT:update-alternatives}} | ||
{{DISPLAYTITLE:update-alternatives}} | |||
[[Kategorie:Linux/Software/Verwaltung]] | [[Kategorie:Linux/Software/Verwaltung]] | ||
[[Kategorie:Linux/Befehl]] | |||
</noinclude> | |||
Version vom 7. März 2026, 09:58 Uhr
update-alternatives - Verwaltung symbolischer Links zur Bestimmung von Standardwerten für Befehle
Beschreibung
Installation
Aufruf
update-alternatives [Option …] Befehl
Optionen
| Unix | GNU | Parameter | Beschreibung |
|---|---|---|---|
Parameter
Umgebungsvariablen
Exit-Status
| Wert | Beschreibung |
|---|---|
| 0 | Erfolg |
| >0 | Fehler |
Anwendung
Einstellungen anzeigen
- get-selections
sudo update-alternatives --get-selections animate auto /usr/bin/animate-im6.q16 animate-im6 auto /usr/bin/animate-im6.q16 aptitude auto /usr/bin/aptitude-curses arptables auto /usr/sbin/arptables-nft automake auto /usr/bin/automake-1.16 awk auto /usr/bin/gawk builtins.7.gz auto /usr/share/man/man7/bash-builtins.7.gz c++ auto /usr/bin/g++ c89 auto /usr/bin/c89-gcc c99 auto /usr/bin/c99-gcc cc auto /usr/bin/gcc [...]
Einstellungen setzen
- config
sudo update-alternatives --config vi There are 2 choices for the alternative vi (providing /usr/bin/vi). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/vim.basic 30 auto mode 1 /usr/bin/vim.basic 30 manual mode 2 /usr/bin/vim.tiny 15 manual mode Press <enter> to keep the current choice[*], or type selection number:
sudo update-alternatives --config editor [sudo] password for dirkwagner: There are 3 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ------------------------------------------------------------ 0 /bin/nano 40 auto mode 1 /bin/nano 40 manual mode * 2 /usr/bin/vim.basic 30 manual mode 3 /usr/bin/vim.tiny 15 manual mode Press <enter> to keep the current choice[*], or type selection number:
Problembehebung
Konfiguration
Dateien
| Datei | Beschreibung |
|---|---|
Anhang
Siehe auch
- update-alternatives(1)
- dpkg suite
- update-alternatives(1) 1.21.9 2022-10-15
- ln(1)
- FHS (der Dateisystem-Hierarchie-Standard, Filesystem Hierarchy Standard)
Dokumentation
Links
Projekt
Weblinks