Multiple choice technology operating systems

In Solaris, what is the command used to find the package of a particular file?

  1. pkgfind

  2. pkgchk

  3. info

  4. pkginfo

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

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.

AI explanation

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.