Robert Milkowski wrote: > Hello Danek, > > Sunday, August 24, 2008, 7:03:24 AM, you wrote: > > DD> On Sun, Aug 24, 2008 at 04:09:03AM +0100, Robert Milkowski wrote: > >>> Hello pkg-discuss, >>> >>> If I do 'pkg list -a' I will get all available versions of an >>> each package in a repository - it's rather annoying. >>> >>> In 99% of cases end user is probably interested only in a most >>> recent versions. >>> >>> I quickly "hacked" pkg tonight so if you do 'pkg list -a' it >>> will provide only most recent version of a package if it is not >>> installed and all versions for installed packages (assuming it >>> is possible to have multiple versions of the same package to be >>> installed). >>> >>> What do you think? > > DD> Something definitely needs to be done about this, as the problem is only > DD> going to get worse over time, but I don't think we have a good handle on > DD> what the right solution is. We still need an option to list every > version. > DD> But the most common operation might involve showing the version that's > DD> installed as well as the latest version, or the version that you'd > upgrade > DD> to if you upgraded the package. Or maybe the first or last version of > each > DD> range where the release value was identical (so you'd see 4.3.7, 4.3.9, > DD> 4.3.10, etc, but just one of each, even though there might be multiple > DD> instances). > > What I did is that unless you specify -v you will get all > installed versions and only most recent one of packages in any > other state. If you specify -v you will get everything. > > ?
Hi, To reduce noise of the output, maybe there should be one line per package with three different versions? With incorporations in place having the newest package it doesn't mean that user will be able to install this package without doing image-update. So the information in my opinion should contain different versions: - installed package - latest version to which user can install without doing image-update - latest version available in the repository Something like??: NAME INSTALLED LATEST (INCORPORATED) LATEST pkg:/BRCMbnx 0.5.11,5.11-0.75:20071031T175830Z 0.5.11,5.11-0.79:20080205T165841Z 0.5.11,5.11-0.79:20080205T165841Z best Michal _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
