From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 03:18:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32ED81065676 for ; Wed, 3 Dec 2008 03:18:46 +0000 (UTC) (envelope-from fbsd06+4I=f88667b1@mlists.homeunix.com) Received: from fallback-in1.mxes.net (fallback-out1.mxes.net [216.86.168.190]) by mx1.freebsd.org (Postfix) with ESMTP id 01CA48FC0A for ; Wed, 3 Dec 2008 03:18:45 +0000 (UTC) (envelope-from fbsd06+4I=f88667b1@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by fallback-in1.mxes.net (Postfix) with ESMTP id 7E7D81648E5 for ; Tue, 2 Dec 2008 22:02:59 -0500 (EST) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 147C123E3E6 for ; Tue, 2 Dec 2008 22:02:57 -0500 (EST) Date: Wed, 3 Dec 2008 03:02:55 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20081203030255.6afb9d7e@gumby.homeunix.com> In-Reply-To: <200812021335.42120.fbsd.questions@rachie.is-a-geek.net> References: <4934E5DA.6040308@eskk.nu> <200812021335.42120.fbsd.questions@rachie.is-a-geek.net> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Uninstalling kde3 meta-port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 03:18:46 -0000 On Tue, 2 Dec 2008 13:35:40 +0100 Mel wrote: > On Tuesday 02 December 2008 08:38:02 Leslie Jensen wrote: > > > How would you guys uninstall a meta-port? > > > > I'm considering a move to kde4 but I want a clean install, so I > > want to remove the kde3 meta-port first. > > cd /usr/ports/x11/kde3 > for dep in `make -V RUN_DEPENDS`; do > origin=${dep##*:}; > portname=`make -C ${origin} -V PORTNAME`; > pkg_delete -Xf "^${portname}-[0-9\.,_]+\$"; > done > cd /usr/ports/ports-mgmt/pkg_cutleaves > make install > pkg_cutleaves -xg > > Delete all leaves you are sure you don't need anymore, till no leaves > are left. If I were you I'd skip the loop at the top and just run the pkg_cutleaves command, delete kde3 and work down through the new leaf-dependencies. The loop takes out the first level of kde3 dependencies, saving you a few seconds in pkg_cutleaves, but also deletes x11-toolkits/qt33, which is required by some non-kde apps such as Opera.