# 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