From owner-freebsd-questions Thu Dec 17 20:07:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA10403 for freebsd-questions-outgoing; Thu, 17 Dec 1998 20:07:10 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jason01.u.washington.edu (jason01.u.washington.edu [140.142.70.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA10398 for ; Thu, 17 Dec 1998 20:07:09 -0800 (PST) (envelope-from jcwells@u.washington.edu) Received: from saul6.u.washington.edu (root@saul6.u.washington.edu [140.142.82.1]) by jason01.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with ESMTP id UAA44920; Thu, 17 Dec 1998 20:07:01 -0800 Received: from S8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by saul6.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with ESMTP id UAA04623; Thu, 17 Dec 1998 20:07:00 -0800 (PST) Date: Thu, 17 Dec 1998 20:06:33 -0800 (PST) From: "Jason C. Wells" X-Sender: jason@s8-37-26.student.washington.edu Reply-To: "Jason C. Wells" To: Oleg Ogurok cc: questions@FreeBSD.ORG Subject: Re: /usr/ports/distfiles/ cleanup. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 17 Dec 1998, Oleg Ogurok wrote: >Hey there. > >Is there any command to clean up this directory? I've been doing this >manually all the time. rm -R /usr/ports/distfiles It doesn't get any less manual than that without cron. :) You could write a script that reads /var/db/pkg and then searches for files for distfiles _not_ in /var/db/pkg and removes them from /usr/ports/distfiles. You might do this is if you want only to delete out of date distfiles. Catchya Later, | UW Mechanical Engineering Jason Wells | http://weber.u.washington.edu/~jcwells/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message