Show Table of Contents
8.2.2. Client System Preparation
Before your UNIX-based client systems benefit from Red Hat Network, they must be prepared for connection:
- Download and install
gzipand required third-party libraries.
- Download the RHN application tarball from the Satellite to the client and install the contents.
- Next, deploy the SSL certificates required for a secure connection.
- Configure the client applications to connect to the RHN Satellite Server.
Once finished, your systems will be ready to begin receiving RHN updates. The following three section explain these steps in detail.
188.8.131.52. Download and Install Additional Packages
This section steps you through the process of downloading and installing third-party applications and the RHN applications from the Satellite onto the UNIX client.
Of primary importance is the Red Hat Update Agent for UNIX (
up2date), which provides the link between your client systems and Red Hat Network. The UNIX-specific version of the Red Hat Update Agent is limited in functionality compared to its Linux counterpart but still enables system registration and facilitates package installs and patches. Refer to Section 8.3, “Registration and Updates” for a full description of the tool's options.
It may be useful to enter the command
bashwhen first logging into the Solaris client. If the BASH shell is available, it will make the system's behavior as Linux-like as possible.
184.108.40.206.1. Install Third-Party Packages
Installation of the RHN applications cannot proceed unless the following utility and libraries are present:
gziputility is provided by the SUNWgzip package and may be downloaded from http://www.sunfreeware.com.
On recent versions of Solaris, the necessary libraries are provided by the following natively installed packages:
For older Solaris versions, the following required packages may be downloaded from http://www.sunfreeware.com:
To verify if a package is installed on the client, use the
pkginfocommand. For example, to check for a package that contains "zlib" in the name, run the following command:
# pkginfo | grep zlib
Solaris package archive names differ from the name of the installed package. For example, the package archive
libgcc<version>-sol<solaris-version>-sparc-local.gzbecomes SMClibgcc after installation
220.127.116.11.2. Configure the Library Search Path
In order to allow the Solaris client to use the libraries installed in the previous step, you must add their location to the library search path. To do so, use one of the following commands, depending on the architecture of the client:
# crle -c /var/ld/ld.conifg -l /lib:/usr/lib:/usr/local/lib
# crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib
18.104.22.168.3. Download RHN Client Packages
Download the appropriate tarball of packages from the
/var/www/html/pub/directory of your Satellite. If you are able to use a GUI web browser like Mozilla, navigate to the
/pubdirectory of the Satellite and save the appropriate tarball to your client:
If you must download the tarball from the command line, it should be possible to use
ftpto transfer the file from the Satellite to the client.
gzip, decompress the tarball. You should have the following packages:
SMCosslgmay also be included in the tarball.
22.214.171.124.4. Install the RHN Packages
Change to the uncompressed directory and use the UNIX variant's native installation tool to install each package. For example, on Solaris, use the
pkgaddcommand. Answer "yes" to any prompts during package install.
Here is how a typical installation might proceed:
# pkgadd -d RHATpossl-0.6-1.p24.6.pkg all # pkgadd -d RHATpythn-2.4.1-2.rhn.4.sol9.pkg all # pkgadd -d RHATrhnl-1.8-7.p23.pkg all ...
You may choose to use the
pkgadd, which runs the command in non-interactive mode. However, this may cause the installation of some packages to fail silently on Solaris 10.
Continue until each package is installed in the RHN-specific path:
126.96.36.199.5. Include RHN Packages in the PATH
In order to make the RHN packages available at each login, you may wish to add them to your PATH. To do so, add these commands to your login script:
# PATH=$PATH:/opt/redhat/rhn/solaris/bin # PATH=$PATH:/opt/redhat/rhn/solaris/usr/bin # PATH=$PATH:/opt/redhat/rhn/solaris/usr/sbin # export PATH
To enable access to the RHN client command man pages, add them to your MANPATH. To do so, add the following commands to your login script:
# MANPATH=$MANPATH:/opt/redhat/rhn/solaris/man # export MANPATH
Alternatively, you can also access the man pages from the command line, with the following command:
# man -M /opt/redhat/rhn/solaris/man <man page>
Finally, add the Red Hat Libraries to your PATH as you did with
crle -c /var/ld/ld.config -l <current library paths>:/opt/redhat/rhn/solaris/lib