User Tools

Site Tools


packages:alternatives

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packages:alternatives [2016-02-01 06:21] glenpackages:alternatives [2016-02-01 06:25] (current) glen
Line 1: Line 1:
 ====== alternatives ====== ====== alternatives ======
  
-[[http://linux.die.net/man/8/update-alternatives|update-alternatives]] - maintain symbolic links determining default commands+[[http://linux.die.net/man/8/update-alternatives|update-alternatives]] - maintain symbolic links determining default commands
 + 
 +Default implementation in PLD Linux is provided by ''alternatives'' package from [[package>chkconfig]]. 
 + 
 +===== switching alternative ===== 
 + 
 +By default ''alternatives'' uses ''auto'' mode picking the "best" alternative. 
 + 
 +//TODO: how to enforce sysadmin preference//
  
 ===== integrating ===== ===== integrating =====
Line 39: Line 47:
   - the ''%%--slave%%'' option is optional and may be repeated, use if you wish to "group" alternatives   - the ''%%--slave%%'' option is optional and may be repeated, use if you wish to "group" alternatives
   - use proper ''%postun'' to remove alternative on package uninstall   - use proper ''%postun'' to remove alternative on package uninstall
 +
 +<note warning>
 +Currently it remains unclear how to handle optional files, as for above example:
 +  - ''%{_mandir}'' path can be missing if ''%_excludedocs'' is set
 +  - ''%{_mandir}'' path could be ''.gz'' compressed or not, it's currently solved with a glob: ''%{_mandir}/man1/phar%{ver_suffix}.1*''
 +</note>
packages/alternatives.1454304092.txt.gz · Last modified: 2016-02-01 06:21 by glen

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS PLD Linux Driven by DokuWiki