From owner-freebsd-ports@FreeBSD.ORG Fri Apr 8 03:00:11 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96776106566B for ; Fri, 8 Apr 2011 03:00:11 +0000 (UTC) (envelope-from erich@alogreentechnologies.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id 4F05E8FC12 for ; Fri, 8 Apr 2011 03:00:11 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id p382PNpt018241; Thu, 7 Apr 2011 20:25:26 -0600 From: Erich Dollansky Organization: ALO Green Technologies Pte Ltd To: freebsd-ports@freebsd.org Date: Fri, 8 Apr 2011 09:25:34 +0700 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.5.4; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104080925.34202.erich@alogreentechnologies.com> Cc: Attos Subject: Re: Best way to uninstall X X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 03:00:11 -0000 Hi, On Thursday 07 April 2011 23:59:04 Attos wrote: > Hello all, > > What is the best way to uninstall X and all the applications that run under > X? just redirect the outout if pkg_info into a file and edit it is my way of doing things like this. I basically create with this a script which deletes all ports I do not want to pull through an upgrade from X.y to Y.x. It will take some time to edit it but I did not find a better way excpet of pkg_delete -a which deletes all ports. This can be dangerous if you have only remote access to the machine depending on how you access the machine. Erich