Software >> OS >> Unix >> Solaris >> How to determine which package an installed file belongs to

 

# pkgchk -l -p /path/to/file

Example, to check which package the command ls belong to

# pkgchk -l -p `which ls`

or just,

# pkgchk -l -p /usr/bin/ls