Subject: Re: removing pkgs
To: None <rmk@rmkhome.com>
From: segv <segv@netctl.net>
List: netbsd-users
Date: 08/15/2005 19:56:42
On Mon, 15 Aug 2005 12:37:13 -0600 (MDT)
Rick Kelly <rmk@toad.rmkhome.com> wrote:

> 
> Is there a clean way to remove all the packages on a system?

Depends on where your package tree and package database are located...

rm -rf /usr/pkg/* /var/db/pkg/*

or

for i in `pkg_info -a | awk '{print $1}'`
do
	pkg_delete -f $i
done