Solaris 7 (SPARC Platform Edition) Installation Library

Chapter 7 Adding Software After Solaris Installation

This chapter describes how to add software to a system from the Solaris CD or another product CD, and how to remove software from a system. There are several methods for performing these tasks:

For more information on adding and removing software packages on client systems in a variety of computing environments, see the System Administration Guide, Volume I.

This is a list of the step-by-step instructions in this chapter.

Adding Software With Solaris Web Start

This section explains how to add software from a product CD using the Solaris Web Start utility.


Note -

After the Solaris operating environment software has been installed, you cannot use Solaris Web Start to install additional software from the Solaris CD, but you can use it to install software from another CD. To install additional software from the Solaris CD, you can use pkgadd or Admintool as described later in this chapter.


To Add Software With Solaris Web Start

  1. Log in as root.

  2. Insert the product CD into your CD-ROM drive.

    Solaris Web Start opens automatically, displaying its Welcome screen.

  3. Follow the instructions on the Web Start screens.

Adding and Removing Packages Using Commands

This section describes how to add and remove packages using commands at the command line.

To Add Packages With the pkgadd Command

  1. Log in to the installed system and become root.

    At the shell prompt, type:

    $ su
    

  2. Load the CD that contains the packages to be added into the CD-ROM drive.

    Volume Manager will automatically mount the CD.

  3. Add one or more packages to the system using the pkgadd command.

    # /usr/sbin/pkgadd -d device_name pkgid
    

    In this command,

    device_name

    Is the path to the CD with the software to be added to the installed system. 

    pkgid

    Is the name of the software package to be added to the installed system. For example, SUNWaudio.

    If the pkgadd process encounters a problem during installation of the package, it displays a message related to the problem, followed by this prompt:

    Do you want to continue with this installation?

    Respond with yes, no, or quit. If more than one package has been specified, type no to stop the installation of the package being installed. The pkgadd process continues to install the other packages. Type quit to stop the installation.

  4. Verify that the package has been installed correctly.

    # /usr/sbin/pkgchk -v pkgid
    

    If the pkgchk command determines there are no errors, it returns a list of installed files. Otherwise, it reports the error.

Example: Installing Software From a Mounted CD

The following example shows a command to install the SUNWaudio package from a mounted Solaris CD. The example also shows the use of the pkgchk command to verify that the package files were installed properly.


Note -

The name of this product is Solaris 7 but code and path or package path names may use Solaris 2.7 or SunOS 5.7. Always follow the code or path as it is written.


# /usr/sbin/pkgadd -d /cdrom/cdrom0/s0/Solaris_2.7 SUNWaudio.
.
.
Installation of <SUNWaudio> was successful.
# pkgchk -v SUNWaudio
/usr
/usr/bin
/usr/bin/audioconvert
/usr/bin/audioplay
/usr/bin/audiorecord
#

To Remove Packages With the pkgrm Command

  1. Log in to the installed system and become root.

    At the shell prompt, type:

    $ su
    

  2. Remove one or more packages from the system using the pkgrm command.

    # /usr/sbin/pkgrm pkgid
    

    In this command,

    pkgid

    Is the name of the software package to be removed from the installed system. For example, SUNWaudio.

  3. Verify that the package has been removed correctly.

    # /usr/sbin/pkgchk pkgid
    

    If the pkgchk command determines that the package is not installed, it will print a warning message.

Example: Removing Software From a System

The following example shows a command to remove the SUNWaudio package from a system. The example also shows the use of the pkgchk command to verify that the package files were removed.

# /usr/sbin/pkgrm SUNWaudio
The following package is currently installed:
   SUNWaudio       Audio applications^M
                   (sparc) 3.0,REV=1.2.13^M

Do you want to remove this package? y
.
.
.
Removal of <SUNWaudio> was successful.
# pkgchk -v SUNWaudio
WARNING: no pathnames were associated with <SUNWaudio>
#

Adding and Removing Packages Using Admintool

This section describes how to add and remove software packages through the Admintool graphical user interface.

To Add Packages With Admintool

  1. Log in to the installed system and become superuser.

    At the shell prompt, type:

    $ su
    

    Unless you are a member of the UNIX sysadmin group (group 14), you must become superuser on your system to add or remove software packages with Admintool.

  2. Load the CD that contains the package to be added into the CD-ROM drive.

    Volume Manager will automatically mount the CD.

  3. Start Admintool.

    # admintool &
    

    The Users window is displayed.

  4. Choose Software from the Browse menu.

    The Software window is displayed.

  5. Choose Add from the Edit menu.

    The Set Source Media window may appear. If so, specify the path to the installation media and click on OK. The default path is a mounted SPARC Solaris CD.

    The Add Software window is displayed.

    Graphic
  6. Select the software you want to install on the local system.

    In the Software portion of the window, select the software you want to install.

  7. Click Add.

    A Command Tool window appears for each package being installed, displaying the installation output.

    The Software window refreshes to display the packages just added.

To Remove Packages With Admintool

  1. Log in to the installed system and become root.

    At the shell prompt, type:

    $ su
    

    Unless you are a member of the UNIX sysadmin group (group 14), you must become root on your system to add or remove software packages with Admintool.

  2. Start Admintool.

    # admintool &
    

  3. Choose Software from the Browse menu.

    The Software window is displayed.

    Graphic
  4. Select the software you want to remove from the local system.

  5. Choose Delete from the Edit menu.

    A warning window is displayed to confirm whether you really want to delete the software.

  6. Click Delete to confirm that you want to remove the software.

    For each package that is being deleted, a Command Tool window is displayed that asks for confirmation, again, on deleting the software. Type y, n, or q. If you choose to delete the software, the output from the removal process is displayed.

    The Software window refreshes, and no longer displays the packages just removed.