FreeBSD – remove all installed packages

Sync your db first:
pkgdb -F
and
pkg_delete -a -f
and
rm -rf /usr/local/* /var/db/pkg/* /var/db/ports/*

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.