On Wed, Oct 6, 2010 at 5:14 AM, Lincoln Yeoh <lincoln.y...@isatechnologies.com> wrote: > Hi, > > For OpenSolaris and Solaris which programs should I be using to get a list of > _all_ (within reason of course) software packages installed, the versions and > if possible the date installed? > > For Solaris it seems to be pkginfo, but I'm not clear on how it works for > OpenSolaris. > > For example on OpenSolaris: > pkginfo -il > > gives me: > > PKGINST: FSWxorg-fonts-core > NAME: X.Org Foundation X11 core fonts > CATEGORY: system > ARCH: all > VERSION: 6.9.0.5.11.11000,REV=0.2009.03.11 > VENDOR: Sun Microsystems, Inc. > DESC: X Window System font files based on X.Org Foundation open source > release > HOTLINE: Please contact your local service provider > STATUS: completely installed > > But: > pkg info FSWxorg-fonts-core > > Gives me: > Name: FSWxorg-fonts-core > Summary: X.Org Foundation X11 core fonts > Category: System/Fonts > State: Installed > Publisher: opensolaris.org > Version: 0.5.11 > Build Release: 5.11 > Branch: 0.111 > Packaging Date: Fri May 8 15:25:27 2009 > Size: 27.24 MB > FMRI: pkg:/fswxorg-fonts-c...@0.5.11,5.11-0.111:20090508T152527Z > > The version strings are different. > > So are these two the same packages or are they actually different packages > with the same name? >
Solaris 10 and prior releases used SVR4 packages, but the native package system in OpenSolaris (and Solaris 11, and OpenIndiana) is the Image Packaging System (IPS or pkg(5)), and pkg(1) is the main command for managing packages in this system. 'pkg info' will list all installed packages. pkginfo, pkgadd, and other SVR4 packaging commands can only be used to manage SVR4 packages. The pkginfo output you're looking at is "fake" SVR4 package metadata included in the pkg(5) package, which is used to satisfy dependencies for existing SVR4 packages. -Albert _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org