The package keyword can be used when you install either a UFS file system or a ZFS root pool. The usage for this keyword is the same in both UFS and ZFS installations.
For a complete list of keywords that can be used in a UFS or ZFS installation, see Table 8–2
For information on performing a ZFS installation, see Chapter 9, Installing a ZFS Root Pool With JumpStart
package package_name [add [retrieval_type location]| delete] |
You can use package with both the initial installation and upgrade options. The package keyword enables you to do the following:
Add a package to the software group from the Solaris distribution that is to be installed.
Add a package to the software group from outside the distribution that is being installed.
Exclude or remove a package from the software group that is to be installed or upgraded.
Add a package from outside the distribution that is being installed when installing a Solaris Flash archive.
Specifies the package name in the form SUNWname. To view detailed information about packages and their names, on an installed system, use the pkginfo -l command.
Specifies to add or remove the specified package. If you do not specify add or delete, add is used by default.
You can add more than one package by adding another package entry to the profile and omitting the location. The location of the previous package is used for all subsequent packages if the location is left blank.
Specifies the addition of a package or packages that are located outside the Solaris distribution that is being installed. The values of retrieval_type and location depend on where the package is stored. The following sections contain the values you can use for retrieval_type and location and examples of how to use the package_name keyword.
If the package is stored on an NFS server, use one of the following syntaxes for the package keyword.
package package_name add nfs server_name:/path [retry n] package package_name add nfs://server_name:/path [retry n] |
Specifies the package name in the form SUNWname. To view detailed information about packages and their names, on an installed system, use the pkginfo -l command.
Specifies the name of the server where you stored the package.
Specifies the location of the package directory on the specified server. If the path contains $HOST, $HOST is replaced with the name of the host system that you are installing.
Is an optional keyword. n is the maximum number of times the installation process attempts to mount the directory.
In this example, the package profile keyword adds the SUNWnew package from the NFS location nfs://golden/packages/Solaris_10/. If a mount fails, the NFS mount is tried five times.
package SUNWnew add nfs golden:/packages/Solaris_10 retry 5
If the package is stored on an HTTP server, use one of the following syntaxes for the package keyword.
package package_name add http://server_name[:port] path optional_keywords package package_name add http server_name[:port] path optional_keywords |
Specifies the package name in the form SUNWname. To view detailed information about packages and their names, on an installed system, use the pkginfo -l command.
Specifies the name of the server where you stored the package.
Specifies an optional port. port can be a port number or the name of a TCP service that has a port number that is determined at runtime.
If you do not specify a port, the default HTTP port number 80 is used.
Specifies the location of the package to be retrieved from the specified server. When using an HTTP server, the package must be in package datastream format.
Specifies the optional keywords to use when you retrieve a package from an HTTP server.
Keyword |
Value Definition |
---|---|
timeout min |
The timeout keyword enables you to specify, in minutes, the maximum length of time that is allowed to pass without receipt of data from the HTTP server. If a timeout occurs, the connection is closed, reopened, and resumed. If you specify a timeout value of 0 (zero), the connection is not reopened. If a timeout reconnection occurs, the package is retried from the beginning of the package and the data that was retrieved prior to the timeout is discarded. |
proxy host:port |
The proxy keyword enables you to specify a proxy host and proxy port. You can use a proxy host to retrieve a Solaris package from the other side of a firewall. You must supply a proxy port when you specify the proxy keyword. |
In this example, the package profile keyword adds all the packages listed in the Solaris 10 directory from the HTTP location http://package.central/Solaris_10. If five minutes pass and no data is received, the package data is retrieved again. Previous package data is discarded. Either of the following formats can be used.
package SUNWnew add http package.central/Solaris_10 timeout 5
package SUNWnew add http://package.central/Solaris_10 timeout 5
In this example, the package profile keyword adds all the packages listed in the Solaris_10 directory from the HTTP location http://package.central/Solaris_10. The package is retrieved across a firewall by using the proxy keyword.
package SUNWnew add http://package.central/Solaris_10 proxy webcache.east:8080
You can retrieve a Solaris package from a local device if you stored the package on a file system-oriented, random-access device, such as a diskette or a DVD-ROM. Use the following syntax for the package keyword.
package package_name add local_device device path file_system_type
Specifies the package name in the form SUNWname. To view detailed information about packages and their names, on an installed system, use the pkginfo -l command.
Specifies the name of the drive where the Solaris package resides. If the device name is a canonical path, the device is mounted directly. If you supply a device name that is not a canonical path, the installation utility adds /dev/dsk/ to the path.
Specifies the path to the Solaris package, relative to the root (/) file system on the device you specified.
Specifies the type of file system on the device. If you do not supply a file system type, the installation utility attempts to mount a UFS file system. If the UFS mount fails, the installation utility attempts to mount an HSFS file system.
In this example, the package profile keyword adds the SUNWnew package from the directory /Solaris_10/Product from the local device c0t6d0s0. This is a UFS file system.
package SUNWnew add local_device c0t6d0s0 /Solaris_10/Product ufs
In this example, the package profile keyword adds the SUNWnew package from the directory /Solaris_10/Product from the local device c0t6d0s0. This is an HSFS file system.
package SUNWnew add local_device c0t6d0s0 /Solaris_10/Product hsfs
A package can be installed from the miniroot from which you booted the system. When you perform a custom JumpStart installation, you boot the system from a DVD, CD, or an NFS-based miniroot. The installation software is loaded and run from this miniroot. Therefore, a package that you stored in the DVD, CD, or NFS-based miniroot is accessible as a local file. Use the following syntax for the package keyword.
package package_name add local_file path |
Specifies the package name in the form SUNWname. To view detailed information about packages and their names, on an installed system, use the pkginfo -l command.
Specifies the location of the package. The path must be accessible to the system as a local file while the system is booted from the Solaris Software - 1 CD or from the Solaris Operating System DVD. The system cannot access /net when it is booted from the Solaris Software - 1 CD or from the Solaris Operating System DVD.
In this example, the package profile keyword adds the SUNWnew package from the /Solaris_10/Product directory.
package SUNWnew add local_file /Solaris_10/Product
Note these limitations when using the package keyword:
Some packages are required and cannot be deleted.
You cannot individually add or delete localization packages by using the package profile keyword. To add localization packages, use the locale profile keyword.
Packages cannot be retrieved from an FTP server location or local backup, such as tape.
Packages within the Solaris distribution being installed cannot be added from alternate locations. If a package from the Solaris distribution is specified, the package cannot be followed by an alternative location in order to maintain consistency with the resulting installed system.
In order to install without manual intervention, the package must be installable by using the pkgadd command. The same admin file must be used to install the software group packages and the package that resides in another location.
If the retrieval_type is HTTP, then the package must be in stream format.
If the retrieval_type is NFS server, local device, or local file, then the package should follow standard packaging format with the directory name being the same as the package being installed.
If a package is being added from a separate location and a package depends on another package that is not currently installed, the package is not installed. An error message is logged into the install or upgrade log file.
If the package is being installed with a Solaris Flash archive, follow these guidelines.
Any package installed must be compatible with the archive.
If a package is present in the archive, the JumpStart overwrites the existing package.
When you use package for an upgrade, the JumpStart program performs the following actions:
All packages already on the system are automatically upgraded.
If you specify package_name add and package_name is not installed on the system, the package is installed.
If you specify package_name delete and package_name is installed on the system, the package is deleted before the upgrade begins.
If you specify package_name delete and package_name is not installed on the system, the package is not installed if the package is part of a cluster that is designated to be installed.