Friday, February 13, 2009

Solaris QuickSheet - Packages

Packages

1.) Install the gcc package

pkgadd -d gcc-3.4.6-sol10-sparc-local

2.) Check to see if gcc is installed on system

pkginfo SMCgcc /or/ pkginfo | grep gcc

3.) Remove the gcc package

pkgrm SMCgcc

4.) Check the installation of the gcc (SMCgcc) package

pkgchk SMCgcc

5.) Show revisions of packages on system

showrev -p

6.) Get expected file info and source package for a file

pkgchk -l -p /usr/sfw/bin/gcc

7.) Verify all packages (and les) on the system

pkgchk

8.)Display information about a package

pkgchk -l SMCgcc

9.) Display version information about an installed package

pkginfo -x SMCgcc

10.) List all patches on the system

showrev -p /or/ patchadd -p

11.) List patches applied to the SUNWckr package

pkgparam SUNWckr PATCHLIST


smpatch and updatemanager can be used to manage system patches.

No comments: