Date: Mon, 22 Aug 2005 10:34:01 -0400 From: John Nielsen <lists@jnielsen.net> To: freebsd-hackers@freebsd.org Cc: Peter Jeremy <PeterJeremy@optushome.com.au> Subject: Re: Locating obsolete ports distfiles Message-ID: <200508221034.01620.lists@jnielsen.net> In-Reply-To: <17161.22518.896293.529642@bhuda.mired.org> References: <20050822043647.GB37107@cirb503493.alcatel.com.au> <17161.22518.896293.529642@bhuda.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 22 August 2005 12:43 am, Mike Meyer wrote: > In <20050822043647.GB37107@cirb503493.alcatel.com.au>, Peter Jeremy <PeterJeremy@optushome.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508221034.01620.lists>