From owner-freebsd-stable Sun Jul 15 23:50:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id 93E3C37B403 for ; Sun, 15 Jul 2001 23:50:11 -0700 (PDT) (envelope-from andreas@klemm.gtn.com) Received: (from uucp@localhost) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) id f6G6o4707108; Mon, 16 Jul 2001 08:50:04 +0200 (MET DST) >Received: (from andreas@localhost) by klemm.gtn.com (8.11.4/8.11.3) id f6G6fTE01183; Mon, 16 Jul 2001 08:41:29 +0200 (CEST) (envelope-from andreas) Date: Mon, 16 Jul 2001 08:41:29 +0200 From: Andreas Klemm To: parv Cc: abram olson , freebsd-stable@FreeBSD.ORG Subject: Re: mass uninstall all ports? Message-ID: <20010716084129.A504@titan.klemm.gtn.com> References: <20010712182844.A26646@moo.holy.cow> <20010712224021.95596.qmail@web13502.mail.yahoo.com> <20010712191017.B29406@moo.holy.cow> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010712191017.B29406@moo.holy.cow>; from parv_@yahoo.com on Thu, Jul 12, 2001 at 07:10:17PM -0400 X-Operating-System: FreeBSD 4.3-STABLE SMP X-Disclaimer: A free society is one where it is safe to be unpopular Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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'=20 > route, you should add '-f' and or '-d' flag.=20 >=20 > if pkg_delete/xargs/shell complain that 'pipe broken', 'too many=20 > arguments', or some such, then you can try this... >=20 > # 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 /// --=20 Andreas Klemm - Powered by FreeBSD 4.3 Need a magic printfilter today ? -> http://www.apsfilter.org/ --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --AqsLC8rIMeq19msA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message