On Sat, Feb 09, 2008 at 02:44:20AM +0100, Goswin von Brederlow wrote: > > If you really need to do this, you will need to divert the configuration > > files with dpkg-divert. However, you really don't want to do this. > > Rather than managing configuration files with a package, you really want > > to use something like Puppet or Cfengine to manage configuration. > > I tried this once and I setteled on writing a package that would fetch > my conffiles from a RCS. On initial install it would just check them > out and dump them in place. On updates it would update them to the tag > coresponding to the package version. If you have different configs per > host you can create branches for each host and fetch from there. > > You can also add a hook to run post dpkg that will compare the state > of conffiles with the RCS and warn you about changes.
Or just use etckeeper. Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
signature.asc
Description: Digital signature