From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 12:35: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 D695A1065670 for ; Tue, 2 Dec 2008 12:35:46 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id A7CF28FC17 for ; Tue, 2 Dec 2008 12:35:46 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id CFD99AFC1C6; Tue, 2 Dec 2008 03:35:45 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 2 Dec 2008 13:35:40 +0100 User-Agent: KMail/1.9.7 References: <4934E5DA.6040308@eskk.nu> In-Reply-To: <4934E5DA.6040308@eskk.nu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812021335.42120.fbsd.questions@rachie.is-a-geek.net> Cc: Leslie Jensen 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: Tue, 02 Dec 2008 12:35:46 -0000 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. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.