Subject: Re: purging distfiles
To: Cherry G. Mathew <cherry.g.mathew@gmail.com>
From: Adrian Portelli <adrianp@stindustries.net>
List: tech-pkg
Date: 08/09/2005 14:45:22
Cherry G. Mathew wrote:
> Hi,
>
> I don't think this is covered in the FAQ:
>
> I have a mix of current and old distfiles in my /usr/pkgsrc/distfiles
> directories.
>
> What's an exact sequence of commands to clean it up so that I have
> just the latest, greatest distfiles left there ?
>
> Thanks,
Hi,
lintpkgsrc which comes as a part of pkgtools/pkglint should help you out
here. Perhaps something like:
lintpkgsrc -P /usr/pkgsrc -M /usr/pkgsrc/distfiles -o -r
You should have a look at lintpkgsrc(1) before running this to make sure
it's what you want to do.
This will remove files from your distfiles dir.
HTH
adrian.