I keep a whitelist of packages that I know I want [1] and then use this to "clean" my system of any dross after I've finished testing:
Code:
# pkg_delete -X $(cat pkg.list)
This removes everything not in pkg.list
[1] Get the system exactly how you want it and then use:
Code:
pkg_info -q > pkg.list