From owner-freebsd-questions Thu Dec 17 22:59:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA28876 for freebsd-questions-outgoing; Thu, 17 Dec 1998 22:59:57 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from apotheosis.za.org (apotheosis.cs.uct.ac.za [137.158.128.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA28869 for ; Thu, 17 Dec 1998 22:59:46 -0800 (PST) (envelope-from lonewolf@apotheosis.za.org) Message-ID: <19981218085933.A1514@apotheosis.za.org> Date: Fri, 18 Dec 1998 08:59:33 +0200 From: Lonewolf To: questions@FreeBSD.ORG Subject: Re: /usr/ports/distfiles/ cleanup. Mail-Followup-To: questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from "Jason C. Wells" on Thu, Dec 17, 1998 at 08:06:33PM Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thu, 17 Dec 1998, Oleg Ogurok wrote: > >Is there any command to clean up this directory? I've been doing this > >manually all the time. On Thu, Dec 17, 1998 at 08:06:33PM -0800, Jason C. Wells wrote: > 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. If you're willing to use an X application, take a look at The Ports Index Browser (sysutils/pib). It might be what you want. --lonewolf@apotheosis.za.org http://apotheosis.za.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message