John Levon wrote: > Just installed Preview 2 (very nice BTW); imagine my surprise when my > attempt to list packages (that is, "pkg list") ended up as "find / > -print". > > IMHO, the three commands status, list, and info are the wrong way > around. >
My opinions below... > Naively I expect 'pkg list' to list packages, 'pkg info' to give > information on packages, and 'pkg status' to give status on packages. > This isn't currently the case. I hope those of you familiar with yum and > rpm will know what I mean here. > > I mentioned this on internal IRC and opinion was somewhat split there, > so I thought I'd send an email out to see what a wider audience thinks. > > Whilst I don't want this to become a straw man, I would have imagined > things to work something like this: > > pkg list [-ainv] [pkg_fmri_pattern] > > List all packages matching the FMRI, or all installed packages > by default. > > -a show available, but uninstalled packages all should be all. There should be an indication if the package is installed. For packages which are installed, the version should be show in the non verbose case. > -i show installed packages If all is all, -i isn't needed since no options default to installed. > -n show installed packages with newer versions -n should display the version number installed and version number available. MRJ > pkg info [-msv] [-o attrib] [-s sort] [-t action] [pkg_frmi_pattern] > > Like a merge of info and the current 'list'. If -v, then you get > the stuff from 'list'. (-v doesn't seem to do anything right > now) > > pkg status > > - either goes away, or becomes a simple list of (available, > newer, installed) > > regards > john > _______________________________________________ > 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
