pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to remove all packages?



Hi folks
 
This work also.
 
# pkg_delete -ff '*-*'
Regards,

On Sun, Apr 10, 2011 at 10:55 PM, OBATA Akio <obache%netbsd.org@localhost> wrote:
On Mon, 11 Apr 2011 12:42:39 +0900, Andy Ruhl <acruhl%gmail.com@localhost> wrote:

You can do this a few times, assuming you're using a bourne shell:

# for pkg in `pkg_info | awk '{print $1}'` ; do pkg_delete $pkg ; done

You'll probably have to run through that a few times while it figures
out dependencies. You can use one of the "force" options with
pkg_delete, but I prefer not to.

# pkg_delete -r '*'

--
OBATA Akio / obache%NetBSD.org@localhost



--
Francisco Valladolid H.
 -- http://bsdguy.net - Jesus Christ follower.


Home | Main Index | Thread Index | Old Index