Install a directory-based package in the current directory:
# pkgadd -d . SUNWlomr
Install a datastream-based package in the current directory:
# pkgadd -d cpio-solaris2.6
Removing a package:
# pkgrm SUNWlomr
List files in a package:
# pkgchk -v SUNWlomu /etc /etc/lomlited.conf /usr /usr/include /usr/include/lom_io.h /usr/sbin/lomctl /usr/sbin/lominfo /usr/sbin/lomlited /usr/sbin/lomprog
Show what package a file belongs to:
# pkgchk -l -p /usr/sbin/lominfo Pathname: /usr/sbin/lominfo Type: regular file Expected mode: 0755 Expected owner: bin Expected group: bin Expected file size (bytes): 13048 Expected sum(1) of contents: 32603 Expected last modification: Oct 20 09:34:13 1999 Referenced by the following packages: SUNWlomu Current status: installed
Verify that a package is installed:
# pkginfo -l SUNWlomr PKGINST: SUNWlomr NAME: LOMlite driver CATEGORY: system ARCH: sparc.sun4u VERSION: 1.1.0,REV=1999.10.20.13.34 BASEDIR: / VENDOR: Sun Microsystems, Inc. DESC: LOMlite 32 and 64-bit drivers PSTAMP: kingscross19991020133438 INSTDATE: Jul 10 2008 10:45 HOTLINE: Please contact your local service provider STATUS: completely installed FILES: 15 installed pathnames 7 shared pathnames 3 linked files 7 directories 4 executables 109 blocks used (approx)