How do I find out which solaris package a file belongs to?
-
To find out which solaris package a file belongs to, run the pkgchk command like this:
$ pkgchk -l -p /opt/VRTSvcs/bin/Netlsnr/NetlsnrAgent NOTE: Couldn't lock the package database. Pathname: /opt/VRTSvcs/bin/Netlsnr/NetlsnrAgent Type: regular file Expected mode: 0744 Expected owner: root Expected group: sys Expected file size (bytes): 95080 Expected sum(1) of contents: 3147 Expected last modification: Nov 03 20:59:28 2005 Referenced by the following packages: VRTSvcsor Current status: installed
From the output you can see the file /opt/VRTSvcs/bin/Netlsnr/NetlsnrAgent belongs to a package called VRTSvcsor. Ignore the "lock" message.
© Lightnetics 2024