On 11/13/2012 09:02 AM, Bernt Hansson wrote: > If you really want to remove all installed ports you can do as I do > > pkg_delete -f \* Perhaps not an ideal solution, but rather an alternative one, which works in bourn-derived shells: # for p in `pkg_info -ao | grep '.*/.*' | sed 's;.*;/usr/ports/&;'` { cd $p && make deinstall }