1. Overview of the Sun package system
    1. Getting information about packages
    2. Installing packages
    3. Removing packages

Overview

Sun has provided a relatively simple means of adding software to the Solaris operating system environment. Sun has standardized software delivery using a package system and a set of commands to add, check and remove the packages. Packages added to the system are recorded in a package database so that you can always check to see what software was installed via the package system. Not all software comes in packages, so the system will not know about all software installed (unless you only installed things using packages).

pkginfo
Lists packages installed
pkgadd
Installs a package from a specific device location.
pkgrm
Removes a package.

Retreiving Package Information

You use the pkginfo command to get information about one or more packages installed on the system. The pkgadd command will not get information about packages you have not installed.

  1. Check for existing or older versions of the package
    % pkginfo -c <package name >
  2. Find all packages that are fully installed
  3. Find packages that did not fully install

Adding Packages

You use the pkgadd command to add or install packages to a Solaris system. You must have root access to the system (via su or sudo) to add or remove packages.
  1. Switch to root
    % su
  2. Check for existing or older versions of the package
    % pkginfo -c <package>
  3. Remove old older version (if installed)
    % pkgrm <package>
  4. Install the new package
    % pkgadd -d /absolute/path/to/package SUNWpkg-name

Removing Packages

  1. Remove old older version (if installed)
    % pkgrm <package>

 


Bookmark this page and SHARE:  

Search

Support InetDaemon.Com

Get Tutorials in your INBOX!

Free Training

Free Training