Using the Package System Log File

The package commands maintain a list of installed packages in the /var/sadm/install/contents file.You can use the pkgchk -v pkgid command to list the files contained in a package. The following example (truncated to save space) lists the files contained in the SUNWebnfs package.

castle# pkgchk -v SUNWebnfs
/opt/SUNWebnfs
/opt/SUNWebnfs/JFileChooser-patch
/opt/SUNWebnfs/JFileChooser-patch/com
/opt/SUNWebnfs/JFileChooser-patch/com/sun
/opt/SUNWebnfs/JFileChooser-patch/com/sun/java
/opt/SUNWebnfs/JFileChooser-patch/com/sun/java/swing
/opt/SUNWebnfs/JFileChooser-patch/com/sun/java/swing/plaf
/opt/SUNWebnfs/JFileChooser-patch/com/sun/java/swing/plaf/windows
/opt/SUNWebnfs/JFileChooser-patch/com/sun/java/swing/plaf/windows/WindowsFileC
 hooserUI$DirectoryComboBoxModel.class
...(Additional lines deleted from this example)
castle#

The following example shows the first ten lines of the /var/sadm/install/contents file.

castle# head /var/sadm/install/contents
/bin=./usr/bin s none SUNWcsr
/dev d none 0755 root sys SUNWcsr SUNWcsd
/dev/arp=../devices/pseudo/arp@0:arp s none SUNWcsd
/dev/conslog=../devices/pseudo/log@0:conslog s none SUNWcsd
/dev/console=../devices/pseudo/cn@0:console s none SUNWcsd
/dev/dsk d none 0755 root sys SUNWcsd
/dev/eri=../devices/pseudo/clone@0:eri s none SUNWcsd
/dev/fd d none 0555 root root SUNWcsd
/dev/hme=../devices/pseudo/clone@0:hme s none SUNWcsd
/dev/icmp=../devices/pseudo/icmp@0:icmp s none SUNWcsd
castle#

If you need to determine which package contains a particular file, you can use the pkgchk -l -p filename command to search the package system file. The following example searches for information about the pkgadd command. The output shows that the command is located in /usr/sbin and is part of the SUNWcsu package.


castle% pkgchk -l -p /usr/sbin/pkgadd
Pathname: /usr/sbin/pkgadd
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: sys
Expected file size (bytes): 105196
Expected sum(1) of contents: 52501
Expected last modification: Jan 06 07:59:42 2000
Referenced by the following packages:
        SUNWcsu        
Current status: installed

castle%

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.12.156