Cleaning /var/db/ports

Lowell Gilbert freebsd-ports-local at be-well.ilk.org
Tue Mar 25 13:12:21 PDT 2008


Garrett Cooper <yanefbsd at gmail.com> writes:

> On Mar 25, 2008, at 11:51 AM, Lars Stokholm wrote:
>
>> Apart from doing 'rm -r /var/db/ports/*' is there a way of cleaning
>> the folder of stale folders and files?
>>
>> I know it takes up no space and that I might aswell leave it alone,
>> but it'd be interesting to know. :)
>>
>> Thanks,
>> Lars
>
> pkg_cutleaves -- an excellent Perl port that will help you out with
> that.

I think the question is about port configs, not the ports themselves.

I don't know of anything that finds unused port configs.  It would not
be very difficult to write, but I have to admit I don't think it would
be worth the effort...


More information about the freebsd-ports mailing list