From owner-freebsd-ports@FreeBSD.ORG Wed Oct 31 02:24:46 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EDC816A46E for ; Wed, 31 Oct 2007 02:24:46 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id B762213C4BB for ; Wed, 31 Oct 2007 02:24:45 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 20968 invoked by uid 399); 31 Oct 2007 01:24:13 -0000 Received: from localhost (HELO ?8.193.47.115?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 31 Oct 2007 01:24:13 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <4727D95E.2080602@FreeBSD.org> Date: Tue, 30 Oct 2007 18:24:46 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: TooMany Secrets References: In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: Deinstalling KDE. 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: Wed, 31 Oct 2007 02:24:46 -0000 TooMany Secrets wrote: > Hi! > > First, excuse me if thi isn't the right place to make this question. > > I need to deinstall all kde, but without touch k3b and QT. I'm > thinking to use "pkd_delete -f", but all libraries will remain in > system. If I use a "pkg_delete -rf", QT library could be deleted. > > Any idea to make this? portmaster has an "expunge" option to handle this. You can use the following procedure to eliminate all the leaf ports for kde, and all of their dependencies (that you don't want to keep) in an orderly fashion: cd /usr/ports/ports-mgmt/portmaster make clean ; make install clean portmaster -l Now take a look at all of the ports in the last category (leaves) and pick one to deinstall. Then do: portmaster -e If you're sure that you want to eliminate all the distfiles for the ports you're deleting, add the -d option. If you're sure you don't want to delete them, use the -D option, and if you want to do it on a case by case basis, don't use either. :) After the first leaf port is deleted portmaster will recurse looking for its dependencies that are no longer required. When that cycle ends, do 'portmaster -l' again and pick the next leaf port that you want to delete. Keep going till you've deleted everything you wanted to get rid of. hope this helps, Doug -- This .signature sanitized for your protection