pkgsrc-Users archive

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

Re: How to remove all packages?

On Mon, 11 Apr 2011 12:42:39 +0900, Andy Ruhl <> 

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 /

Home | Main Index | Thread Index | Old Index