In Solaris, what is the command used to find the package of a particular file?
-
pkgfind
-
pkgchk
-
info
-
pkginfo
On Solaris systems, pkgchk is the package verification tool that can also identify which package a specific file belongs to. Using pkgchk -l -p /path/to/file displays detailed information about the package that installed that file. The package contents database is maintained in /var/sadm/install/contents.
Correct answer: pkgchk. In Solaris, the pkgchk -l -p command checks and reports which installed package(s) a given file belongs to. 'pkginfo' displays information about installed packages overall (not tied to a specific file), 'info' is not a Solaris package command, and 'pkgfind' isn't a real Solaris utility — making pkgchk the only legitimate answer for this file-to-package lookup.