Solved Looking for an equivalent to pkg-which for files installed in /sbin

Hello all,

I ordinarily use pkg which to find out which package installed a specific file. But it doesn't seem to work for files in /sbin:

Code:
9:51 phil@humble-abode ~% pkg which /sbin/fsck_msdosfs
/sbin/fsck_msdosfs was not found in the database
zsh: exit 70    pkg which -o /sbin/fsck_msdosfs
9:52 phil@humble-abode ~% pkg which -o /sbin/ifconfig
/sbin/ifconfig was not found in the database

I gave a try to pkg query, with no luck until now.

Any help would be appreciated, thank you very much.
 
Those are all part of the base OS, not from packages. The base OS is a complete "set".
 
Thank you SirDice,
That was my guess (only I wasn't sure about fsck_ext2fs or fsck_msdosfs, I just couldn't remember if I had installed them myself)...

Regards
 
Ports/packages always use /usr/local/ as a prefix. So everything in /bin, /sbin, /usr/bin, /usr/sbin is part of the base OS. On FreeBSD there is a clear separation between the base OS and third party software (ports or packages).
 
Back
Top