This reminds me of the alternatives system that ships with Red
Hat-based distros. I seem to recall seeing it installed in Ubuntu, but
a little Googling finds me dpkg-reconfigure for Debian-based distros
such as Ubuntu.
It feels more salty to me to have a single module name which performs
the appropriate functionality depending on which distro it's run on
(such as pkg running yum, apt, pacman, etc, depending on what it finds
available). But from the looks of it, the usages between alternatives
and dpkg-reconfigure are probably very different.
That said, while I can't speak any further for dpkg-reconfigure, it
looks like alternatives does have a somewhat modular nature about it.
I installed sendmail, and then exim, on a CentOS 6 box just now, and
each individually populated parts of /var/lib/alternatives/mta.
Presumably, if I removed sendmail, exim and postfix, that file would
disappear entirely.
Is eselect similar in nature to this?
> --
>
>
--
"In order to create, you have to have the willingness, the desire to
be challenged, to be learning." -- Ferran Adria (speaking at Harvard,
2011)