From owner-freebsd-stable Thu Jul 12 16: 6:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by hub.freebsd.org (Postfix) with ESMTP id C461937B401 for ; Thu, 12 Jul 2001 16:06:22 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.122]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010712230621.BARS13460.mtiwmhc22.worldnet.att.net@worldnet.att.net>; Thu, 12 Jul 2001 23:06:21 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id A147550D5F; Thu, 12 Jul 2001 19:10:17 -0400 (EDT) Date: Thu, 12 Jul 2001 19:10:17 -0400 From: parv To: abram olson Cc: freebsd-stable@FreeBSD.org Subject: Re: mass uninstall all ports? Message-ID: <20010712191017.B29406@moo.holy.cow> Mail-Followup-To: abram olson , freebsd-stable@FreeBSD.org References: <20010712182844.A26646@moo.holy.cow> <20010712224021.95596.qmail@web13502.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010712224021.95596.qmail@web13502.mail.yahoo.com>; from dacia_icarus@yahoo.com on Thu, Jul 12, 2001 at 03:40:21PM -0700 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 on Jul 12 18:48, i got this from abram... > I have updated the ports using cvsup. So, this: > > cd /var/db/pkg && pkg_delete -fd * > > will remove all the packages and ports that are > installed? > > I really want to understand what I'm doing here ;-) > > Another person suggested I do: > > pkg_info | cut -d\ -f1 | xargs pkg_delete > > what is the difference between what these two commands > will do? > > Abe you know, in perl, there is a saying: there is more than one way to do it. ...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 {} \; in any case, don't miss to read the pkg_delete & find manpages. -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message