Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Displaying Attributes of Files Installed by a Package

To list more information about installed files than just the path, use the -t and -o options of the pkg contents command.

The -t option specifies the type of actions to display. You can specify multiple types in a comma-separated list, or you can specify the -t option multiple times.

The -o option specifies the attributes of the actions to display. You can specify multiple attributes in a comma-separated list, or you can specify the -o option multiple times. See the pkg(5) man page for a list of package actions and attributes.

$ pkg contents -t file -o owner,group,mode,pkg.size,path zip
OWNER GROUP MODE PKG.SIZE PATH
root  bin   0555   231260 usr/bin/zip
root  bin   0555   110852 usr/bin/zipcloak
root  bin   0555   104960 usr/bin/zipnote
root  bin   0555   109340 usr/bin/zipsplit
root  bin   0444    86192 usr/share/man/man1/zip.1
root  bin   0444     2705 usr/share/man/man1/zipcloak.1
root  bin   0444     2396 usr/share/man/man1/zipnote.1
root  bin   0444     1837 usr/share/man/man1/zipsplit.1

By default, output is sorted by path or by the first attribute specified by the -o option. You can use the -s option to specify a different attribute as the sort key. The -s option can be specified multiple times.