From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 03:21:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8268F16A7A7 for ; Fri, 26 Jan 2007 03:21:22 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 3AAA913C4B0 for ; Fri, 26 Jan 2007 03:21:22 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 25 Jan 2007 22:04:03 -0500 X-IronPort-AV: i="4.13,240,1167627600"; d="scan'208"; a="397344281:sNHT28512888" Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id IEB41283; Thu, 25 Jan 2007 22:04:02 -0500 (EST) Received: from 209-6-203-219.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.203.219]) by smtp01.lnh.mail.rcn.net with ESMTP; 25 Jan 2007 22:04:01 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17849.28502.463390.896995@jerusalem.litteratus.org> Date: Thu, 25 Jan 2007 22:02:46 -0500 To: freebsd-questions@freebsd.org In-Reply-To: References: <45B94861.6010404@mail.zedat.fu-berlin.de> <20070125194925.70872a21.wmoran@collaborativefusion.com> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090202.45B96FA3.002B,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 Subject: Re: Messy ports, how to clean them up? 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: Fri, 26 Jan 2007 03:21:22 -0000 illoai@gmail.com writes: > > > Is there a way cleaning up automatically a messy ports collection? Like > > > portupgrade does, only the opposite way, not rebuilding/reinstalling a > > > rebuilt/upgraded port, looking for stale ports never used anymore by > > > another port? > > > > sysutils/pkg_cutleaves > > portupgrade includes pkg_deinstall, which has switch > to recursively remove all dependancies which are no > longer used by any other pkg/port, which is a way to > head this sort of thing off at the pass. I use portupgrade. I've never used pkg_deinstall, but given that portupgrade gets ... confused ... occasionally I look suspiciously at anything that promises clean upward recursion. Robert Huff