From owner-freebsd-ports@FreeBSD.ORG Thu Mar 17 18:41:47 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD29E106566B for ; Thu, 17 Mar 2011 18:41:47 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 262E48FC08 for ; Thu, 17 Mar 2011 18:41:46 +0000 (UTC) Received: (qmail invoked by alias); 17 Mar 2011 18:41:45 -0000 Received: from g227133027.adsl.alicedsl.de (EHLO apollo.emma.line.org) [92.227.133.27] by mail.gmx.net (mp066) with SMTP; 17 Mar 2011 19:41:45 +0100 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX18HxhUenAEHnou6C2ZPgUEOupTeJ8GzLP05ZChOq/ COWVxEW6/M/gx0 Received: from localhost ([127.0.0.1] helo=apollo.emma.line.org) by apollo.emma.line.org with esmtp (Exim 4.74 (FreeBSD)) (envelope-from ) id 1Q0I8l-0003ZZ-Vf for freebsd-ports@freebsd.org; Thu, 17 Mar 2011 19:41:43 +0100 Message-ID: <4D8255E7.8040202@gmx.de> Date: Thu, 17 Mar 2011 19:41:43 +0100 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.2.15) Gecko/20110306 Mnenhy/0.8.3 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: portmaster versus portsclean 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: Thu, 17 Mar 2011 18:41:47 -0000 Am 16.03.2011 02:06, schrieb Warren Block: > After switching to portmaster, portsclean is the last part of > portupgrade I'm using. > > portsclean -C can be replaced with 'rm /usr/ports/*/*/work', or better > with 'find -X /usr/ports/ -name work -depth 3 -exec rm -rf {} \;'. > I don't see a way to do this with portmaster, but it's trivial. > > portsclean -D can be replaced with 'portmaster -t --clean-distfiles'. > portsclean -DD can be replaced with 'portmaster --clean-distfiles'. > (Those might be backwards, the wording in the portmaster man page is a > little ambiguous.) > > Is there an equivalent for portsclean -L, to delete "old, duplicated, or > orphaned shared libraries" in a batch? Usually these would be either - part of the base system, deleted by "make -C /usr/src delete-old-libs" - part of the ports system, removed as the corresponding port gets uninstalled (and there are pkg_cutleaves and similar approaches and I suppose also a portmaster option) - part of some backup of portupgrade or portmaster -w, and are moved out to a separate directory, /usr/local/lib/compat/pkg by default. Otherwise you can try to use sysutils/libchk (which requires ruby - like portupgrade that also requires ruby) -- Matthias Andree