# requires [FILE]/usr/ports/ports-mgmt/pkg[/FILE] pre-installed... on
# the problematic computer or one with the same [ or same AND additional ]
# ports installed, from which to copy the [FILE]local.sqlite[/FILE] file.
# (see additional conditions below...)
cd /usr/local/sbin
find . -type f -exec pkg which {} \; | awk '{print $6}' | uniq | sort | uniq | tee -a /tmp/pkgs_to_reinstall_from_ports_or_portmasterPP.log
# repeat for /usr/local/bin, then check the large (firefox, etc) pkgs reinstalled.
#or,
make missing
# from the /usr/ports/www/firefox which "exist" (run) but are not registered.