From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 22 04:43:15 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3575E16A41F for ; Mon, 22 Aug 2005 04:43:15 +0000 (GMT) (envelope-from mwm-keyword-hackers.e471b2@mired.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF25743D48 for ; Mon, 22 Aug 2005 04:43:14 +0000 (GMT) (envelope-from mwm-keyword-hackers.e471b2@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 527C921D242 for ; Sun, 21 Aug 2005 21:43:14 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id j7M4h9SU047486 for ; Sun, 21 Aug 2005 21:43:11 -0700 (PDT) (envelope-from mwm-keyword-hackers.e471b2@mired.org) Received: (qmail 29859 invoked by uid 1001); 22 Aug 2005 04:43:35 -0000 Received: by localhost.mired.org (tmda-sendmail, from uid 1001); Mon, 22 Aug 2005 00:43:35 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17161.22518.896293.529642@bhuda.mired.org> Date: Mon, 22 Aug 2005 00:43:34 -0400 To: Peter Jeremy In-Reply-To: <20050822043647.GB37107@cirb503493.alcatel.com.au> References: <20050822043647.GB37107@cirb503493.alcatel.com.au> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: Locating obsolete ports distfiles X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2005 04:43:15 -0000 In <20050822043647.GB37107@cirb503493.alcatel.com.au>, Peter Jeremy typed: > I currently have just over 8GB is /usr/ports/distfiles. Some of these > files are more than 10 years old and long obsolete. Does anyone have > any suggestions on how to identify which files are no longer referenced > by current ports? > > Doing a 'make checksum' on every installed port and then looking at > the atimes is one approach but this doesn't handle: > - ports that I don't currently have installed but might need > - ports installed on systems that mount /usr/ports readonly Install sysutils/portupgrade, and do a "portsclean -D". That will remove all the distfiles that aren't referenced by any port in the tree. Do "portsclean -DD" and it'll remove all distfiles not used by an installed port. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.