On Sun, Feb 22, 2015 at 10:46:36PM +0900, Joel Rees wrote: > I then tried using pkg_check to see if I could clear whatever I had > done, and it tells me about unknown directories and files, a long list > of files and directories which should have nothing to do with > packages, I think, including such things as /boot, /bsd, about 30 > files in /etc, the pkg_check_out.text I produced in my /root directory > to try to understand the output and a bunch of other stuff. It does > not output my entire file system tree. [...] > Marc or anyone care to enlighten me on what the output from pkg_check > is supposed to mean? (I'm thinking it may have something to do with > mtree, but I'm not remembering what to look at for that.)
That part of pkg_check is not totally finished. It does check the full fs, and remove anything it knows about (thanks to the various locate(8)dbs and to /var/db/pkg) plus a few well known positives, but I haven't gotten around to teaching it the few important exceptions that remain. And also, some packages create "ghost" data. On my todo list to register properly with pkgs. You can usually use it to remove some older stuff, older gcc and perl modules that no longer exist in base show up as a sore thumb. I guess THAT specific functionality is mostly developer material for now. When you already know the system well, it can be very useful.

