rough method of cleaning the ports tree

David Kelly dkelly at
Wed Dec 19 09:56:53 PST 2007

On Thu, Dec 20, 2007 at 12:34:24AM +0800, Erich Dollansky wrote:

> >>Even though it will take quite a bit longer you should just do a
> >>"make distclean" in /usr/ports that way anything you hand modified
> >>will be retained (also you might want to consider keeping a local
> >>cvs repository if this is an issue)
> >
> >That's a good idea too.
> >But, it might not do enough.  So, still consider moving /usr/ports.
> >
> it does what I really want. I do not have a space problem. I simply
> want to get rid of the stuff which is not really needed.

Tuning in late but this seems appropriate:

Remove all the temporary work files, and remove all distribution files
that are not current with the ports' Makefiles:

# portsclean -CD

Requires the portupgrade port.

David Kelly N4HHE, dkelly at
Whom computers would destroy, they must first drive mad.

More information about the freebsd-questions mailing list