Subject: Re: removing pkgs
To: None <netbsd-users@netbsd.org>
From: Wolfgang S. Rupprecht <wolfgang+gnus20050815@dailyplanet.dontspam.wsrcc.com>
List: netbsd-users
Date: 08/15/2005 13:50:44
Rick Kelly <rmk@toad.rmkhome.com> writes:
> Is there a clean way to remove all the packages on a system?

    cd /var/db/pkg
    pkg_delete *

I've seen cases where you have to repeat the last step once.

For yucks and grinds a find run over /usr/pkg will then find
everything that was either modified or wasn't registered correctly.

-wolfgang
-- 
Wolfgang S. Rupprecht                http://www.wsrcc.com/wolfgang/
      Microsoft Vista - because "Virus Installer" was too long.