This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
packages:alternatives [2016-02-01 06:21] glen |
packages:alternatives [2016-02-01 06:24] glen [integrating] |
||
---|---|---|---|
Line 2: | Line 2: | ||
[[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 | ||
+ | |||
+ | ===== switching alternative ===== | ||
+ | |||
+ | By default ''alternatives'' uses ''auto'' mode picking the "best" alternative. | ||
+ | |||
+ | //TODO: how to enforce sysadmin preference// | ||
===== integrating ===== | ===== integrating ===== | ||
Line 39: | Line 45: | ||
- 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> |