Bug 118 - pkg list should be able to list all packages.
: pkg list should be able to list all packages.
Status: CLOSED FIXED
Product: pkg
cli
: unspecified
: Other Solaris
: P4 minor (vote)
: in-preview2
Assigned To: Stephen Hahn
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-11-02 12:14 UTC by Bill Sommerfeld
Modified: 2008-02-12 18:09 UTC (History)
4 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Bill Sommerfeld 2007-11-02 12:14:13 UTC
there should be a documented easy-to-type "pkg_fmri_pattern" that matches all
packages installed on a system, so that commands like:

pkg list -t file -o <...> all | grep ...

can be used to meaningfully look at all files managed by pkg
Comment 1 Stephen Hahn 2007-11-06 13:30:07 UTC
This seems pretty straightforward, although I'll probably use -a, just as with
the status subcommand, rather than a special pattern.
Comment 2 Rich Lowe 2007-11-06 14:19:06 UTC
-a should be "all that we know about" v. "All that's on the system".  

Behaviour consistent with status would bet that with no arguments, it lists
everything it knows about.

I have part of a patch implementing the latter (and similar for 'pkg info').
Comment 3 Stephen Hahn 2007-11-08 15:51:53 UTC
On-alias discussion suggests that "pkg list" and "pkg info" without arguments
should display their output for all installed packages.
Comment 4 Stephen Hahn 2008-01-16 17:08:52 UTC
Yep.
Comment 5 Stephen Hahn 2008-01-16 17:09:11 UTC
Committed as e1dbb27a23b5a51c553a0e758ace947165938fee.
Comment 6 Danek Duvall 2008-02-12 18:09:21 UTC
Fixed in Indiana Preview 2.