Credit: This locate(1) method was inspired by a talk by Rodrigo Osorio at FOSDEM a couple years ago about FreeBSD's pkg-provides. (I haven't looked into how it works beyond that talk, nor into others like Debian's apt-file search.)