On 04/08/10 22:33, alexandnpu wrote:
i know "pkginfo" will list all the installed packages

but how to list all the uninstalled packages when compared with packages in the 
IPS

and how to determine  which package a certain file belongs to ?


thanks

If you're talking about listing what packages in IPS are known but not installed, renamed or obsolete:

pkg list -a | egrep -v '(installed|o--$|r--$)'

To find out which package owns a file locally:

pkg search -l /usr/bin/ls: ba...@cyber[60]; pkg search -l /usr/bin/ls
INDEX      ACTION VALUE      PACKAGE
path       file   usr/bin/ls pkg:/sun...@0.5.11-0.138
: ba...@cyber[61];

Omit the -l to find files that are not installed...


- Bart


--
Bart Smaalders                  Solaris Kernel Performance
bart.smaald...@oracle.com       http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to