Pkgchk does not work the same in solaris8 and solaris11.4 !
root@machineA # uname -a
SunOS machineA 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Fire
root@machineA # pkgchk -lp /usr/bin/ls
Pathname: /usr/bin/ls
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: bin
Expected file size (bytes): 18844
Expected sum(1) of contents: 34850
Expected last modification: Jan 06 00:57:54 2000
Referenced by the following packages:
SUNWcsu
Current status: installed
root@machineA #
——————————————————————————————————root@machineB:~# uname -a
SunOS machineB 5.11 11.4.27.82.1 sun4v sparc sun4v
root@machineB:~# pkgchk -lp /usr/bin/ls
root@machineB:~#
WHY PKGCHK BEHAVE DIFFERENTLY WHEN COMPARING SOLARIS 8 AND 11.4 ?
I AM LOOKING FOR A COMMAND TO FIND THE PACKAGE CORRESPONDING TO COMMAND, /USR/BIN/SUDO, IN 11.4 .