[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Executables in pydl



* Vincent Prat [2016-09-15 17:54:15 +0200]:
> @Sergio: I have never used update-alternatives in a package. How does it
> work?

As mentioned in Appendix F of the Policy Manual, one calls update-alternatives
from postinst to install the alternatives and from prerm to remove them.
The update-alternatives(8) man page has some more details (such as the notion
of master and slave links), and finding examples is as easy as
	grep update-alternatives /var/lib/dpkg/info/*.postinst

Each package providing an alternative specifies a priority, and in automatic
mode the installed alternative with the highest priority wins. Sysadmins can
switch to manual mode by invoking update-alternatives with --config or --set.


Reply to: