How to check package content Solaris 10


This  post describes how to check package content in Oracle Solaris 10.

  • How to check package file content Oracle  Solaris?

#pkgchk  -l <packagename>

Example:

# pkgchk -l IBMlsof|more
Pathname: /usr/local/bin
Type: directory
Expected mode: 0755
Expected owner: bin
Expected group: bin
Referenced by the following packages:
TCMsudo SMCexpect SMCtcl IBMlsof
Current status: installed

Pathname: /usr/local/bin/lsof
Type: regular file
Expected mode: 2555
Expected owner: root
Expected group: sys
Expected file size (bytes): 10044
Expected sum(1) of contents: 13262
Expected last modification: Jul 11 09:47:42 2008
Referenced by the following packages:
IBMlsof
Current status: installed

Pathname: /usr/local/bin/sparcv7
Type: directory
Expected mode: 0755
Expected owner: bin
Expected group: bin
Referenced by the following packages:
IBMlsof
Current status: installed

Pathname: /usr/local/bin/sparcv7/lsof
Type: regular file
Expected mode: 2755

Before start  installation  if  you need to check package  use this method.

#pkgchk -d  <packagename>   -l
# pkgchk -d expect-5.45-sol10-x86-local -l

The following packages are available:
1 SMCexpect expect
(x86) 5.45

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Checking uninstalled stream format package <SMCexpect> from </MFB/EXPECT/expect-5.45-sol10-x86-local>
## Checking control scripts.
## Checking package objects.
Pathname: bin
Type: directory
Expected mode: 0755
Expected owner: bin
Expected group: bin
Current status: installed

Pathname: bin/autoexpect
Type: regular file
Expected mode: 0755
Expected owner: bin
Expected group: bin
Expected file size (bytes): 7706
Expected sum(1) of contents: 46564
Expected last modification: Apr 12 10:38:05 2011
Current status: installed
  • How to verify  package  installed succesfully  Oracle Solaris ?

# pkgchk -v SMCexpect
/usr/local/bin
/usr/local/bin/autoexpect
/usr/local/bin/autopasswd
/usr/local/bin/cryptdir
/usr/local/bin/decryptdir
  • How to check  content  of  package  Oracle  Solaris ?

After running  this command if you didn't get any  error it means that  your  package  contents  are  "ok".

#pkgchk -c SMCexpect
  • How to check the file attributes of a package Oracle  Solaris?

After running  this command if you didn't get any  error it means that  your  package attributes are  "ok".

#pkgchk -a SMCexpect
  • How to check software  which  installed  under a directory Oracle  Solaris?

#pkgchk -a SMCexpect
  • How to check the contents/attributes of a filesystem which  specified  the full path name  Oracle  Solaris?

#pkgchk -lp /usr/local/bin/expect
Pathname: /usr/local/bin/expect
Type: regular file
Expected mode: 0755
Expected owner: bin
Expected group: bin
Expected file size (bytes): 33228
Expected sum(1) of contents: 20160
Expected last modification: Apr 12 10:40:45 2011
Referenced by the following packages:
SMCexpect
Current status: installed 

 

Tagged In:

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Interbank Card Center Of Turkey(BKM). I provide hardware and software support for the IT Infrastructure and Operations tasks.

194 Total Posts
Follow Me

0 Comments

Leave a Reply