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>

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

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




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