Installing a Solaris Package Using the CLI
The best way to learn about adding packages is to use an example. In this section, you'll download a package from http://www.sunfreeware.com called gpw-6.94-sol10-sparc-local.gz, an application developed by Tom Van Vleck that generates random passwords. Let's look more closely at the package name to determine what software this package contains:
• The .gz extension indicates that the package file has been compressed using gzip after it was created. Other possible extensions include .Z, which indicates compression with the compress program, and .z, which indicates compression with the pack program.
• The local string indicates that the package contents will be installed under the directory /usr/local. Other typical installation targets include the /opt directory, where optional packages from the Solaris distribution are installed.
• The sparc string states that the package is intended for use on Solaris SPARC and not Solaris Intel.
• The 6.94 string indicates the current software revision level.
• The gpw string states the application's name.
To use the package file, you first need to decompress it using the gzip command: bash-2.05# gzip -d gpw-6.94-sol10-sparc-local
You can then examine the contents of the file by using the head command:
bash-2.05# head gpw-6.94-sol10-sparc-local # PaCkAgE DaTaStReAm TVVgpw 1 150
Post a comment