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 '*-*'

On Sun, Apr 10, 2011 at 10:55 PM, OBATA Akio <> wrote:
On Mon, 11 Apr 2011 12:42:39 +0900, Andy Ruhl <> 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 /

Francisco Valladolid H.
 -- - Jesus Christ follower.

Home | Main Index | Thread Index | Old Index