pkgclean target? by analogy with distclean

Jeffrey Bouquet jeffreybouquet at
Wed Oct 31 12:50:36 UTC 2012

--- On Wed, 10/31/12, Anton Shterenlikht <mexas at> wrote:

> From: Anton Shterenlikht <mexas at>
> Subject: pkgclean target? by analogy with distclean
> To: freebsd-ports at
> Date: Wednesday, October 31, 2012, 3:38 AM
> Is there a target similar to
> distclean
> that removes the package and the symlinks from
> ${PORTSDIR}/packages?
> If not, is it worthwhile making it?
> Something like pkgclean, or maybe
> rmpackage, similar to "make package".
> Anton
> _______________________________________________
> freebsd-ports at
> mailing list
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at"
After copying .tbz out of /usr/ports/packages/All (If I leave
them there, sometimes they disappear... so that is a 
workaround...) to answer the question with an answer that
is only a workaround,

cd /usr/ports/packages
cleanlinks .

Is easy to remember (cd /usr/ports/packages/All && touch cleanlinks_from_packages.todo ) 

More information about the freebsd-ports mailing list