Solaris 10 6/06 Installation Guide: Custom JumpStart and Advanced Installations

Packages Stored on an HTTP Server

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
package_name

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.

server_name

Specifies the name of the server where you stored the package.

port

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.

path

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.

optional_keywords

Specifies the optional keywords to use when you retrieve a package from an HTTP server.

Table 11–6 Optional package Keywords to Use With HTTP

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.


Example 11–13 Adding a Package by Using HTTP

In this example, the package profile keyword adds all the packages listed in the Solaris 10_606 directory from the HTTP location http://package.central/Solaris_10_606. 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_606 timeout 5 
package SUNWnew add http://package.central/Solaris_10_606 timeout 5 


Example 11–14 Adding a Package by Using HTTP with a Proxy Port

In this example, the package profile keyword adds all the packages listed in the Solaris_10_606 directory from the HTTP location http://package.central/Solaris_10_606. The package is retrieved across a firewall by using the proxy keyword.

package SUNWnew add http://package.central/Solaris_10_606 proxy webcache.east:8080