On 04/18/12 12:57 PM, Philip Brown wrote:
> I think it used to be that   "pkg search sstring"  would search filenames 
> only,
> and there was no way to search by description.
> I found a web archive that claims that functionality was "coming".
> 
> However, now, in the latest solaris 11,
> (VM image of 11/11) it seems that the default is to search filename and
> description.
> Sadly, this "enhancement" is the exact opposite of what I want. But reading 
> the
> voluminous manpage, does not seem to say how, or even if, it is possible to
> search only by filename any more?

It's in there, but only if you realize the "basename" example refers to the
basename of the file you're searching for.

For instance, see the difference between the output from "pkg search unix"
and "pkg search :basename:unix".   And of course, if you already know the
full path, simply "pkg search /platform/i86pc/kernel/amd64/unix" works.

The field search syntax definitely needs better documentation, though the
man page is a bit too long as it is.  (Perhaps it could be split into per
subcommand man pages, like the git subcommands do?  It has git-commit(1)
for 'git commit', git-show(1), for 'git show', etc.)

-- 
        -Alan Coopersmith-              [email protected]
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to