Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2001 08:41:29 +0200
From:      Andreas Klemm <andreas@FreeBSD.ORG>
To:        parv <parv_@yahoo.com>
Cc:        abram olson <dacia_icarus@yahoo.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: mass uninstall all ports?
Message-ID:  <20010716084129.A504@titan.klemm.gtn.com>
In-Reply-To: <20010712191017.B29406@moo.holy.cow>; from parv_@yahoo.com on Thu, Jul 12, 2001 at 07:10:17PM -0400
References:  <20010712182844.A26646@moo.holy.cow> <20010712224021.95596.qmail@web13502.mail.yahoo.com> <20010712191017.B29406@moo.holy.cow>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Jul 12, 2001 at 07:10:17PM -0400, parv wrote:
> ...in the end both will do the same thing: remove/delete all the
> installed software as listed in /var/db/pkg. if you go the 'pkg_info' 
> route, you should add '-f' and or '-d' flag. 
> 
> if pkg_delete/xargs/shell complain that 'pipe broken', 'too many 
> arguments', or some such, then you can try this...
> 
> # find /var/db/pkg -type d -execdir pkg_delete -fd {} \;

This forks a pkg_delete command for every port found, thats expensive.
Why not use find/xargs combination in this case as well ?

( cd /var/db/pkg; find . -type d | xargs pkg_delete )

	Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 4.3
Need a magic printfilter today ? -> http://www.apsfilter.org/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE7UoyYd3o+lGxvbLoRAuvyAJ9gd6a/5/mdEWmROsMBrRP53hQedQCfT4A/
CzjRZo1kuNDlYWy/HAdPzj4=
=EBj0
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010716084129.A504>