Solaris find out a package which a file belongs to
Q. How do I find out a package which a file belongs to...? I am using Solaris UNIX ver 10.0
A. Use pkgchk command which check package installation accuracy under Solaris UNIX.
pkgchk checks the accuracy of installed files or, by using the -l option, displays information about package files. pkgchk checks the integrity of directory structures and files. Discrepancies are written to standard error along with a detailed explanation of the problem.
You can find out a package which a file belongs to with following command:
pkgchk -l -p /path/to/file
pkgchk -l -p /usr/bin/ls
Where,
- -l: List information on the selected files that make up a package
- -p path: Only check the accuracy of the path name or path names listed. path can be one or more path names separated by commas (or by white space, if the list is quoted).
Above command displays package installation information for /usr/bin/ls command. Following command displays package installation information for sendmail:
# pkgchk -l -p /usr/lib/sendmail
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- How do I find all the files owned by a particular user or group?
- How do I find out what network services are running or listing under Linux?
- Howto: Use mount USB Pen under Solaris UNIX
- Solaris backspace key issue problem and solution
- Howto: Create a boot floppy in Solaris UNIX
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Yesterday ~ 77 Comments
Yesterday ~ 2 Comments
10/10/2008 05:34 pm (2 days ago) ~ 1 Comment
10/10/2008 05:21 pm (2 days ago) ~ 8 Comments
10/10/2008 12:39 pm (2 days ago) ~ 1 Comment