From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 22 11:36:45 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 7D8E116A41F for ; Mon, 22 Aug 2005 11:36:45 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id D37BC43D45 for ; Mon, 22 Aug 2005 11:36:44 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A6C92.dip.t-dialin.net [84.154.108.146]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j7MBaexr084791; Mon, 22 Aug 2005 13:36:41 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j7MBaciC002023; Mon, 22 Aug 2005 13:36:38 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j7MBb2pu049495; Mon, 22 Aug 2005 13:37:02 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200508221137.j7MBb2pu049495@fire.jhs.private> To: Peter Jeremy In-Reply-To: Message from Peter Jeremy of "Mon, 22 Aug 2005 14:36:47 +1000." <20050822043647.GB37107@cirb503493.alcatel.com.au> Date: Mon, 22 Aug 2005 13:37:02 +0200 From: "Julian H. Stacey" 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 11:36:45 -0000 Peter Jeremy wrote: > 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 I have 22 Gig, but none so long unused. I run numerous machines with different releases, & dump distfiles belonging only to some old release each time I've upgraded the last old host, I sub divide distfiles by release, like this: Periodicly (eg for new relases) I move my distfiles to a directory named by release, & add the new directory name to a fetch list in make.conf, eg http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/make.conf & run cd /usr/ports ; make fetch BATCH=YES ; make fetch INTERACTIVE=yes I strip fetched duplicates with my http://berklix.com/~jhs/bin/.sh/distfiles_cmpd http://berklix.com/~jhs/src/bsd/jhs/bin/public/cmpd/ Advantages: Lowered paranoia :-) Never deleted all distfiles. Easier to copy release related stuff to laptops about to lose net connectivity. Disadvantages: Slow. Would also need lots of space temporarily, except I run distfiles_cmpd in a while loop, parallel to the fetch. Not a `standard solution'. -- Julian Stacey Consultant Systems Engineer, Munich. http://berklix.com Mail in Ascii (Html = Spam). Ihr Rauch = mein allergischer Kopfschmerz.