[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Various Solaris package and patch commands



Hi,

Below is a random list of commands / ways of doing things under Solaris
I've picked up while installing stuff on the Sun box.

o List patches applied:
    # patchadd -p

o To apply a patch
    Untar the patch tar.Z
    # patchadd <dir>

o To add a package
    # pkgadd -d <package file>

o To add a package in tar format
    # tar xvfz package.tar.Z
    # pkgadd -d .

  This will ask you which packages in the
  current directory you wish to install.

o To remove a package
    # pkgrm <package>

o To get info on a package
    # pkginfo -x <package>
    # pkginfo -l <package>

o To list all installed packages
    # pkginfo

o To find out which package a file is in
    # grep <file> /var/sadm/install/contents

o To find out what files are in a package
    # grep <package> /var/sadm/install/contents

o To find out what runlevel you're in
    # who -r

Thanks,
Brad
-- 
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|Brad Marshall                    |           Plugged In Software|
|Senior Systems Administrator     |     http://www.pisoftware.com|
|mailto:bmarshal@pisoftware.com   |  GPG Key Id: 47951BD0 / 1024b|
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
 Fingerprint:  BAE3 4794 E627 2EAF 7EC0  4763 7884 4BE8 4795 1BD0