From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 05:10:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 858FA37B401 for ; Thu, 10 Jul 2003 05:10:26 -0700 (PDT) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9497B43F85 for ; Thu, 10 Jul 2003 05:10:20 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.9/8.12.9) with ESMTP id h6ACAJDh041564 for ; Thu, 10 Jul 2003 07:10:19 -0500 (CDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from localhost (localhost [[UNIX: localhost]]) by grumpy.dyndns.org (8.12.9/8.12.9/Submit) id h6ACAJVT041563 for FreeBSD-Questions@FreeBSD.org; Thu, 10 Jul 2003 07:10:19 -0500 (CDT) From: David Kelly To: FreeBSD-Questions@FreeBSD.org Date: Thu, 10 Jul 2003 07:10:18 -0500 User-Agent: KMail/1.5.2 References: <3F0D4C46.5040502@iinet.net.au> In-Reply-To: <3F0D4C46.5040502@iinet.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307100710.19030.dkelly@HiWAAY.net> Subject: Re: Try to delete files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 12:10:26 -0000 On Thursday 10 July 2003 06:21 am, Nigel Taylor wrote: > Hi all, > > Hi, in my years of using freebsd i have collected alot of distfiles > in the ports tree and i want to free up some space on my harddrive > and i was wondering is there a command to delete files in the > distfiles folder that are less than the year 2000? > > Or maybe there is a program that deletes all the older releases in > the distfiles? if someone could help i would be gratefully Install /usr/ports/sysutils/portupgrade Then "portsclean -CD" to remove "work" files from /usr/ports/ and to remove all non-referenced files in /usr/ports/distfiles/ Its not safe to delete distfiles older than 2000 because a very large number of current distfiles are much older than that. Use "ls -lt" to see for yourself after having cleaned up with portsclean. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.