* John Levon <[EMAIL PROTECTED]> [2008-02-13 17:49]: > > 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. > > 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 > -i show installed packages > -n show installed packages with newer versions > > 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)
Okay, good feedback. 1. "list" It looks like both yum and dpkg use list to list packages; Arch's pacman uses the --list query option to list files associated with a package. (pacman appears to use its --explicit, --upgrades, --groups, and --foreign query options to display available packages.) Conary calls this "query". 2. "info" yum uses info for the package attributes display. dpkg calls this "status". pacman calls this "info". Conary uses "query --ls" and "query --info" to access this data. (Other comparisons?) I'm fine with shuffling these around in this fashion, since we have two major exemplars using list for "list packages". We can pull out status, and see if it needs to come back when we have operational history. - Stephen -- [EMAIL PROTECTED] http://blogs.sun.com/sch/ _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
