Sriram Natarajan wrote:
Hi
I have a couple of pkg related questions. Can you kindly help me out here. I am using build 131 and need couple of pointers on how to effectively search using IPS pkg commands.

- How do I limit pkg search -r (remote search) to limit searching within a given / specific build . By default, pkg search -r searches and displays the result from all the builds (111 - 131) .

When I want results from a specific build, I do pkg search '*0.130:::foo' if I'm searching for foo.

- pkg search -r -o search.match *font* provides segmentation fault. Am I doing some thing wrong or is this a known issue ? For that matter, attribute based searching seems to always result in segmentation fault. So, I am hoping this is a known issue.

- How do I search for a IPS package that delivers a given a file ?
If you were searching for /usr/bin/foo you could do 'pkg search /usr/bin/foo'. Alternatively, 'pkg search foo' if the path you were searching contained symlinks.

- How do I restrict the pkg search output to restrict the results only to list out the pkg names and its repository location ?
pkg search '<foo>'

Will it be possible to improve on the current FAQ (especially in terms of how to search as to which package delivers a given file , dependents of a given package etc) . This should be useful for lot of newbies.

The man pkg has all the information I've provided above (expect the details about searching a particular build). It also has the following examples:

Example 5:  Search the package database for the token "bge".
Example 6: Search for installed packages which depend on SUNWipkg.
Example 7: Search for all incorporate dependencies in installed packages.

Brock


- Sriram
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to