Sometimes you can’t find where the executable files after you’ve install a package. For example, I’ve just installed rsc (Remote System Controller) for accessing console my Sun Fire server using Serial or IP connection. According to the manual, System Administration command for rsc is rscadm. But when I type rscadm, it failed.

root@m2000svr3G # rscadm
rscadm: not found

And then I check whether the package already installed:

bash-2.03$ pkginfo SUNWrsc
system      SUNWrsc        Remote System Control

I know we can do ‘find’ to find the executable:

root@m2000svr3G # find / -name rscadm
/usr/platform/SUNW,Sun-Fire-280R/rsc/rscadm
/usr/platform/SUNW,Sun-Fire-480R/rsc/rscadm
/usr/platform/SUNW,Sun-Fire-880/rsc/rscadm
/usr/platform/SUNW,Sun-Fire-V490/rsc/rscadm
/usr/platform/SUNW,Sun-Fire-V890/rsc/rscadm
/usr/platform/SUNW,Ultra-250/rsc/rscadm

And we can you use the rscadm which suited your system.

But the elegant way is to find at /var/sadm/install/contents file.  For your information, this file is appended every time you install package.

bash-2.03$ grep rscadm /var/sadm/install/contents
/usr/platform/SUNW,Sun-Fire-280R/rsc/rscadm f none 0755 root bin 114028 8640 1071255312 SUNWrsc
/usr/platform/SUNW,Sun-Fire-480R/rsc/rscadm=../../SUNW,Sun-Fire-280R/rsc/rscadm s none SUNWrsc
/usr/platform/SUNW,Sun-Fire-880/rsc/rscadm=../../SUNW,Sun-Fire-280R/rsc/rscadm s none SUNWrsc
/usr/platform/SUNW,Sun-Fire-V490/rsc/rscadm=../../SUNW,Sun-Fire-280R/rsc/rscadm s none SUNWrsc
/usr/platform/SUNW,Sun-Fire-V890/rsc/rscadm=../../SUNW,Sun-Fire-280R/rsc/rscadm s none SUNWrsc
/usr/platform/SUNW,Ultra-250/rsc/rscadm f none 0755 root bin 185388 22971 1071254889 SUNWrsc
/usr/share/man/sman1m/rscadm.sgml f none 0444 root bin 10246 58715 1071255255 SUNWrsc

Bingo! There are your executable files.