ports: deinstall-all

Alexander Kapshuk alexander.kapshuk at gmail.com
Sat Nov 17 21:25:15 UTC 2012


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
}



More information about the freebsd-questions mailing list