From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 05:01:34 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 D812E37B401 for ; Thu, 10 Jul 2003 05:01:34 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF9CF43F85 for ; Thu, 10 Jul 2003 05:01:32 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h6AC1BwX036656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Jul 2003 13:01:25 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h6AC1BiD036651; Thu, 10 Jul 2003 13:01:11 +0100 (BST) (envelope-from matthew) Date: Thu, 10 Jul 2003 13:01:11 +0100 From: Matthew Seaman To: Nigel Taylor Message-ID: <20030710120111.GA36476@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Nigel Taylor , freebsd-questions@freebsd.org References: <3F0D4C46.5040502@iinet.net.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <3F0D4C46.5040502@iinet.net.au> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.5 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org 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:01:35 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 10, 2003 at 07:21:42PM +0800, Nigel Taylor wrote: > Hi all, >=20 > Hi, in my years of using freebsd i have collected alot of distfiles in=20 > the ports tree and i want to free up some space on my harddrive and i=20 > was wondering is there a command to delete files in the distfiles folder= =20 > that are less than the year 2000? >=20 > Or maybe there is a program that deletes all the older releases in the=20 > distfiles? if someone could help i would be gratefully portsclean -D will delete all distfiles that aren't referenced by any of the ports currently under /usr/ports. portsclean -DD will delete all distfiles which aren't referenced by any currently installed port or package. portsclean(1) is part of the portupgrade suite of tools. Otherwise, you can find all of the files older than a certain date by: # cd /usr/ports/distfiles # touch -t 200001010000 datestamp # find . \! -newer datestamp -type f -print=20 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/DVWHdtESqEQa7a0RAi/MAJ9W4O3hDjDL8deaeBQJDyZ0vlyX2QCfbJwn iglZf5c8HVqSH9HZlu2F2Ps= =RToJ -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--