Use the pkgchk command, which package a particular file belongs to.
The syntax is:
# /usr/sbin/pkgchk -l -p /absolute/path/todir
For example,
# pkgchk -l -p /usr/bin/uuencode
Pathname: /usr/bin/uuencode
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: uucp
Expected file size (bytes): 6880
Expected sum(1) of contents: 43674
Expected last modification: Jan 05 06:51:49 PM 2000
Referenced by the following packages:
SUNWesu
Current status: installed
[ OR ]
You can also simply query the packages as follows:
# grep /usr/bin/uuencode /var/sadm/install/contents
/usr/bin/uuencode f none 0555 root uucp 6880 43674 947116309 SUNWesu
No comments:
Post a Comment