User Tools

Site Tools


solaris:solaris_package

Solaris package installation

List commands

Checking installed packages :

# pkgchk SUNWladm
# pkgchk -v SUNWladm
# pkgchk -l -p /usr/bin/showrev
# pkgchk -l -P passwd
# pkgchk -p /etc/shadow ---> to determine if content and attributes of file has changed

Listing and displaying info about packages installed and spooled.

# pkginfo -l | more
# pkginfo -d /var/spool/pkg -l SUNWman
# pkginfo
# pkginfo -d /cdrom/cdrom0/Solaris_10/Product SUNWman
# pkginfo -d spool SUNWdoc

A software package map of the entire system

/var/sadm/install/contents

Dispalying content of data stream packages.

# head SUNWman.pkg | more

Checking package file type.

# file SUNWman.pkg

Install commands

Installing and spooling new packages

# pkgadd -d /cdrom/cdrom0/Solaris_10/Product SUNWman
# pkgadd ./SUNWman
# pkgadd -d /cdrom/cdrom0/s0/Solaris_10/Product -s spool SUNWauda
# pkgadd -d /cdrom/cdrom0/s0/Solaris_10/Product -s /export/pkg SUNWauda

Uninstall commands

Removing packages

# pkgrm SUNWman
# pkgrm -s spool SUNWman
# pkgrm -s /export/pkg SUNWman

Misc commands

Transforming package from file system format to data stream format.

# pkgtrans -s /cdrom/cdrom0/s0/Solaris_10/Product /var/tmp/stream.pkg SUNWzlib SUNWftpr SUNWftpu
# pkgtrans /var/tmp /tmp/SUNWrsc.pkg SUNWrsc
# pkgadd -d /var/tmp/stream.pkg
solaris/solaris_package.txt · Last modified: 2021/01/01 21:25 (external edit)