From owner-freebsd-questions@FreeBSD.ORG Sat Nov 17 22:18:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D871451 for ; Sat, 17 Nov 2012 22:18:27 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.120]) by mx1.freebsd.org (Postfix) with ESMTP id DDFB38FC08 for ; Sat, 17 Nov 2012 22:18:26 +0000 (UTC) X-Authority-Analysis: v=2.0 cv=KMfY/S5o c=1 sm=0 a=+L5dYfeubEW4PLvjDgtIXQ==:17 a=WAZfUmVf-EkA:10 a=05ChyHeVI94A:10 a=kj9zAlcOel0A:10 a=ayC55rCoAAAA:8 a=QPQBYx4QKYwA:10 a=pGLkceISAAAA:8 a=_JPhSfeDtclgf7tkCY0A:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=+L5dYfeubEW4PLvjDgtIXQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 76.184.157.127 Received: from [76.184.157.127] ([76.184.157.127:63230] helo=[10.0.0.7]) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 99/9F-01425-F2D08A05; Sat, 17 Nov 2012 22:18:25 +0000 Date: Sat, 17 Nov 2012 16:18:23 -0600 From: Paul Schmehl To: Alexander Kapshuk , freebsd@dreamchaser.org Subject: Re: ports: deinstall-all Message-ID: In-Reply-To: <50A800B7.7080809@gmail.com> References: <50A16467.6090406@dreamchaser.org> <50A1F06F.7080602@bananmonarki.se> <50A800B7.7080809@gmail.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: FreeBSD Mailing List , Bernt Hansson X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 22:18:27 -0000 --On November 17, 2012 11:25:11 PM +0200 Alexander Kapshuk wrote: > On 11/13/2012 09:02 AM, Bernt Hansson wrote: >> If you really want to remove all installed ports you can do as I do >> >> pkg_delete -f \* > Perhaps not an ideal solution, but rather an alternative one, which works > in bourn-derived shells: > ># for p > in `pkg_info -ao | grep '.*/.*' | sed 's;.*;/usr/ports/&;'` > { > cd $p && make deinstall > } > All that to accomplish this? pkg_deinstall -fa Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell