Difference between revisions of "Update-alternatives"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
<code>update-alternatives</code> command provided by <code>[[dpkg]]</code> package.
 
<code>update-alternatives</code> command provided by <code>[[dpkg]]</code> package.
 +
* https://manpages.ubuntu.com/manpages/trusty/en/man8/update-alternatives.8.html
  
  

Revision as of 18:09, 17 August 2023

update-alternatives command provided by dpkg package.


  • sudo update-alternatives --config editor
  • sudo update-alternatives --config vi
  • sudo update-alternatives --config java
  • sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10


sudo update-alternatives --config editor
 Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/ed             -100       manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic   30        manual mode
  4            /usr/bin/vim.tiny    15        manual mode


sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
update-alternatives: using /usr/bin/python3 to provide /usr/bin/python (python) in auto mode

See also

  • https://linux.die.net/man/8/update-alternatives
  • Advertising: