Subject: Re: 'make update'
To: Wayne Cuddy <>
From: Martin Weber <>
List: tech-pkg
Date: 01/25/2002 16:19:38
On Fri, Jan 25, 2002 at 10:00:26AM -0500, Wayne Cuddy wrote:
> If look at the package source how could I tell if the package supports this
> behavior?
> On Fri, Jan 25, 2002 at 01:44:26PM +0100, Ignatios Souvatzis wrote:
> > On Thu, Jan 24, 2002 at 05:39:27PM -0500, Wayne Cuddy wrote:
> > > I see in the Readme that a 'make update' should upgrade my installed package
> > > but will in turn perform a pkg_delete followed by a pkg_add.  Does this mean
> > > that configuration files that I have modified will be destroyed?
> > 
> > Depends on the package. Some are wise enough to leave configuration
> > files alone when pkg_deleteing and when pkg_adding.
> > 	
> > 	-is

<warning> No PKG Guru, yell if errant :) </warning>

Look at the PLIST file in the corresponding directory. I think if the
configuration file is given there, it will be deleted on deinstall. If
there is a DEINSTALL file, look at it too, it can contain the logic to
leave the file intact.

You may want to have a look on pkg_tarup (from pkgsrc/pkgtools) anyways,
you can do sane backups of an existing package (actually creating a package)
with it, out of which you can copy in your old config file (with tar xzf).

In fact I've written some patch to pkg_chk (which can be used to upgrade
outdated packages automagically) which keeps backups of existing packages
via pkg_tarup - but those aren't in the pkgsrc version yet as there's a
nifty bug left (or not ? Still being checked)

HTH, Martin Weber