On Mon, Jun 13, 2016 at 1:23 PM, Volker A. Brandt <[email protected]> wrote: > BTW my 151016 system has the file, and SUNWcs is properly installed, > but "pkg search /etc/ftpd" or "pkg search /etc/ftpd/ftpusers" do not > show any output, even after a "pkg rebuild-index". Strange.
Paths are relative because packages are relocatable, so I usually search for a basename if it's relatively unambiguous. `pkg search ftpusers` should work, and return both a file and a softlink. Note that "basename" is a virtual attribute that doesn't actually appear in the pkg manifest, but is synthesized by the client, based on the last element of the path value. This is on my 014 install: $ pkg search ftpusers INDEX ACTION VALUE PACKAGE basename file etc/ftpd/ftpusers pkg:/[email protected] basename link etc/ftpusers pkg:/[email protected] Using the full set of search fields also works, though I've never understood why I need the '*' at the beginning of the path value: $ pkg search 'file:path:*etc/ftpd/ftpusers' INDEX ACTION VALUE PACKAGE path file etc/ftpd/ftpusers pkg:/[email protected] Eric _______________________________________________ OmniOS-discuss mailing list [email protected] http://lists.omniti.com/mailman/listinfo/omnios-discuss
