Using a Spool DirectoryFor convenience, you can copy frequently installed packages to a spool directory. If you copy packages to the default spool directory, /var/spool/pkg, you do not need to specify the source location of the package when using the pkgadd command. The pkgadd command, by default, will look in the /var/spool/pkg directory for any packages specified on the command line. Note Spooling Packages Versus Installing Them Copying packages to a spool directory is not the same as installing the packages on a system. You can add a software package to a spool directory by following the steps described in Step by Step 2.2. The following is an example of how to copy a software package to the /var/spool/pkg directory: pkgadd -d /cdrom/sol_10_305_sparc_4/Solaris_10/Product -s /var/spool/pkg SUNNWman The system responds with Transferring <SUNWman> package instance Now type the following to list the packages in the /var/spool/pkg directory: pkginfo -d /var/spool/pkg <cr> The system responds with system SUNWman On-Line Manual Pages Installing Software from the Command LineUse the pkgadd command to install additional software packages from the command line. In the previous section, we used pkgadd to add software to a spool directory. To install this software on the system, type pkgadd <cr> Any software that has been spooled to the /var/spool/pkg directory will be listed. In this example, I spooled a package named SFWgawk. After typing the pkgadd command, the system responds with The following packages are available: 1 SFWgawk gawk - pattern scanning and processing language \ (sparc) 3.0.6,REV=2002.03.27.20.41 Select package(s) you wish to process (or 'all' to process \ all packages). (default: all) [?,??,q]: After pressing the Return key, you may see a message like the following: Using </opt> as the package base directory. ## Processing package information. ## Processing system information. ## Verifying package dependencies. WARNING: The <SFWgcmn> package "Common GNU package" is a prerequisite package and should be installed. Do you want to continue with the installation of <SFWgawk> [y,n,?] Enter y to install the prerequisite package. When finished, you'll see a message as follows: Installation of <SFWgawk> was successful. The following packages are available: 1 SFWgawk gawk - pattern scanning and processing language \ (sparc) 3.0.6,REV=2002.03.27.20.41 Select package(s) you wish to process (or 'all' to process \ all packages). (default: all) [?,??,q]: Enter q to finish and you'll return to the shell prompt. Removing Software Using pkgrmYou can remove software packages from the command line using the pkgrm command. For example, to remove the software package named SUNWman, type pkgrm SUNWman <cr> The system responds with The following package is currently installed: SUNWman On-Line Manual Pages (sparc) 43.0,REV=75.0 Do you want to remove this package? [y,n,?,q] Enter y and press the Enter key. You'll see a list of files being removed followed by a message similar to this one: ## Updating system information. Removal of <SUNWman> was successful. Solaris Product RegistryThe Solaris Product Registry enables you to do the following:
The main difference between the Product Registry and the other tools is that the Product Registry is designed to be compatible with more of the newer installation wizards and Web Start 3.0. To start up the Solaris Product Registry, type the following: /usr/bin/prodreg The Product Registry window shown in Figure 2.1 appears. Figure 2.1. The Product Registry window.To view the contents of the system registry, double-click the magnifying glass next to Solaris System Software. The registry will be expanded and the contents listed. Click any folder listed to get more information on that package. I clicked on Entire Distribution and then Apache Web Server, and the information shown in Figure 2.2 was displayed. Figure 2.2. Apache Web Server information.Along with listing information about all installed software products on your system, use the Solaris Product Registry to check the integrity of software products installed on the system. Follow the steps outlined for listing installed software. After you see the package you want to check, click its name in the window titled Software Installed in Solaris Registry. If all or part of the product is missing, the message Missing files in one or more components displays after the Installed From attribute. You can install a software package with the Solaris Product Registry by following the steps described in Step by Step 2.3.
You can also use the Product Registry to remove software by following these steps: You can remove a software package with the Solaris Product Registry by following the steps described in Step by Step 2.4.
Web Start InstallerThe Web Start installer enables you to add software to a system on which you have installed the Solaris operating environment. The Solaris Web Start program installs only those components in the software groups that you skipped when you initially installed the Solaris operating environment. You cannot change to another software group after installing or upgrading. To add software to your system using the Web Start installer, see Step by Step 2.5.
|