pkg which <full path to file>
. If nothing matches and there's nothing worthwhile left behind remove the whole directory by hand. Once everything is cleaned up reinstall the package.# pkg which /usr/local/lib/firefox/chrome.manifest
/usr/local/lib/firefox/chrome.manifest was installed by package firefox-61.0_3,1
#pkg which /usr/local/lib/firefox
/usr/local/lib/firefox was not found in the database
# ls /usr/local/lib/firefox
application.ini firefox libmozgtk.so
browser firefox-bin libxul.so
chrome gmp-clearkey omni.ja
chrome.manifest gtk2 pingsender
defaults liblgpllibs.so platform.ini
dependentlibs.list libmozavcodec.so plugin-container
dictionaries libmozavutil.so removed-files
# pkg which /usr/local/lib/firefox/defaults/pref/gmpopenh264.js
/usr/local/lib/firefox/defaults/pref/gmpopenh264.js was not found in the database
# more /usr/local/lib/firefox/defaults/pref/gmpopenh264.js
pref("media.gmp-gmpopenh264.autoupdate", false);
pref("media.gmp-gmpopenh264.lastUpdate", 1530589788);
pref("media.gmp-gmpopenh264.version", "1.8.0");
pkg delete firefox
, it's going to complain about that directory. Once the package is removed; rm -rf /usr/local/lib/firefox
to clean up. Then pkg install firefox
again. # ll /usr/local/lib/firefox/defaults/pref/gmpopenh264.js
lrwxr-xr-x 1 root wheel 61 Jul 5 11:14 /usr/local/lib/firefox/defaults/pref/gmpopenh264.js@ -> /usr/local/lib/browser_plugins/gmp-gmpopenh264/gmpopenh264.js
# ll /usr/local/lib/browser_plugins/gmp-gmpopenh264/gmpopenh264.js
-rw-r--r-- 1 root wheel 151 Jul 3 03:49 /usr/local/lib/browser_plugins/gmp-gmpopenh264/gmpopenh264.js
pkg delete firefox
, mv /usr/local/lib/firefox /usr/local/lib/firefox.old
, pkg install firefox
.