Subject: Re: Removing All Packages
To: Ian Zagorskih <ianzag@megasignal.com>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-pkg
Date: 10/29/2004 08:38:24
On Fri, 29 Oct 2004 19:02:45 +0700
Ian Zagorskih <ianzag@megasignal.com> wrote:
> On Friday 29 October 2004 18:53, D'Arcy J.M. Cain wrote:
> > > # pkg_delete -r \*
> >
> > Make damn sure that you are in the right directory and that you get
> > the direction of that slash correct. Safer is just "rm -rf /usr/pkg
> > /var/db/pkg" as someone else suggested.
>
> Just don't forget one thing: packages sometimes keep variable
> configuration files in /usr/pkg/etc. Among them are cups, samba, ldap
> and other servers, mc keeps modifiable files in /usr/pkg/share/mc and
> so so on.
I always make sure that I move the configs elsewhere and change the
startup to use the new place. If that isn't possible then I at least
move it and symlink it. That way I can at least reinstall the symlink
after a clean install.
--
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/