From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 22 14:34:12 2005 Return-Path: X-Original-To: freebsd-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 9604F16A41F for ; Mon, 22 Aug 2005 14:34:12 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5479843D48 for ; Mon, 22 Aug 2005 14:34:10 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from stealth.local (pcp09741457pcs.goosck01.sc.comcast.net [69.241.83.8]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id j7MEY7sh085875; Mon, 22 Aug 2005 07:34:09 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-hackers@freebsd.org Date: Mon, 22 Aug 2005 10:34:01 -0400 User-Agent: KMail/1.8.1 References: <20050822043647.GB37107@cirb503493.alcatel.com.au> <17161.22518.896293.529642@bhuda.mired.org> In-Reply-To: <17161.22518.896293.529642@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508221034.01620.lists@jnielsen.net> X-Virus-Scanned: ClamAV 0.85.1/1035/Mon Aug 22 04:37:18 2005 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Peter Jeremy 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 14:34:12 -0000 On Monday 22 August 2005 12:43 am, Mike Meyer wrote: > 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. Alternatively there is the distclean.sh script in ports/Tools/scripts. Run it with the -f switch to delete outdated distfiles without confirmation. JN