Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2008 13:35:40 +0100
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        Leslie Jensen <leslie@eskk.nu>
Subject:   Re: Uninstalling kde3 meta-port
Message-ID:  <200812021335.42120.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <4934E5DA.6040308@eskk.nu>
References:  <4934E5DA.6040308@eskk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812021335.42120.fbsd.questions>