Thommy M. Malmström wrote:
How can I tell what version of for example firefox, that is in an IPS package?


You can try something like:

$ pkg contents -m SUNWfirefox | grep legacy
legacy arch=i386 category=FIREFOX,application,JDSosol desc="Mozilla Firefox Web browser - development files" hotline="Please contact your local service provider" name="Mozilla Firefox Web browser - development files" pkg=SUNWfirefox-devel variant.arch=i386 vendor="Sun Microsystems, Inc." version=3.5.3,REV=110.0.4.2009.09.29.05.14 legacy arch=i386 category=FIREFOX,application,JDSosol desc="Mozilla Firefox Web browser" hotline="Please contact your local service provider" name="Mozilla Firefox Web browser" pkg=SUNWfirefox variant.arch=i386 vendor="Sun Microsystems, Inc." version=3.5.3,REV=110.0.4.2009.09.29.05.14 legacy arch=sparc category=FIREFOX,application,JDSosol desc="Mozilla Firefox Web browser" hotline="Please contact your local service provider" name="Mozilla Firefox Web browser" pkg=SUNWfirefox variant.arch=sparc vendor="Sun Microsystems, Inc." version=3.5.3,REV=110.0.4.2009.09.29.08.29 legacy arch=sparc category=FIREFOX,application,JDSosol desc="Mozilla Firefox Web browser - development files" hotline="Please contact your local service provider" name="Mozilla Firefox Web browser - development files" pkg=SUNWfirefox-devel variant.arch=sparc vendor="Sun Microsystems, Inc." version=3.5.3,REV=110.0.4.2009.09.29.08.29

The above was taken from snv_125 which includes firefox 3.5.3.

This probably does not hold true for all applications (as it depends what metadata was supplied when the package was built), but happens to work for firefox and thunderbird. You may also have to search through all the raw output to find the version number. For example with pidgin, the documentation path includes the version number (but then "pidgin --version" tells you :-) ).



Regards,
Brian


--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to