pkgsrc-Users archive

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

Re: How to remove all packages?



"OBATA Akio" <obache%netbsd.org@localhost> writes:

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

I think that this is good place to apply some extra force:

pkg_delete -rf "*"


-- 
HE CE3OH...



Home | Main Index | Thread Index | Old Index