| United States-English |
|
|
|
![]() |
Software DistributorAdministration Guidefor HP-UX 11i: HP Computers > Chapter 2 Installing
Software Installation with swinstall |
|
The swinstall command installs software from a software source (a depot or physical media) to your local host.
OverviewThis section provides an overview of the swinstall GUI.
There are five steps in the GUI install process: Table 2-2 GUI Installation Steps
Step I: Start-UpTo start the GUI or TUI for an install session, type: /usr/sbin/swinstall The GUI is automatically invoked unless you also specify software on the command line. To invoke the GUI and specify software, include the -i option. For example, to use the GUI for a preview (analysis only) session with BUNDLE1, type: swinstall -i -p /MyDepot/BUNDLE1 The Software Selection window appears with the Specify Source dialog superimposed over it. Step II: Select SourceIn this step, you must specify the source depot that contains the software you want to install. The Specify Source dialog (Figure 2-1 “Specify Source Dialog ”) automatically lists the local host and default depot path. (This step is skipped if you include the -s source option when you invoke the GUI.)
Step III: Select SoftwareIn this step, you use the Software Selection window to select the software you want to install.
Step IV: Analysis (Preview)In this step, SD-UX analyzes the software you have selected. The Analysis window displays status information about the analysis process. When the analysis is complete and the host status shows Ready, click OK to start the actual installation (see “Step V: Installation”). The Analysis dialog is then replaced by the Install dialog. If you started a preview session, the install stops after the analysis. Clicking OK returns you to the Software Selection window. The following actions are available:
When Analysis completes, the status for any host displays as either Ready or Excluded from task. If any of the selected software can be installed onto the host, the status shows Ready. If none of the selected software can be installed onto the host, the status shows Excluded from task. The following list summarizes the status results. You can find details about most problems by clicking the Logfile button.
The Products Scheduled row shows the number of products ready for installation out of all products selected. These include:
Step V: InstallationIn this step, SD-UX proceeds with the actual installation. After you click OK in the Analysis window, SD-UX starts installation and displays the Install Window, which shows status information. These action buttons are available:
Installation may suspend if:
Swinstall syntaxswinstall [XToolkit Options] [-i] [-p] [-r] [-v] [-ccatalog] [-C session_file] [-f software_file] [-Q date] [-s source] Options and Operands
Changing Command OptionsYou can change the behavior of this command by specifying additional command-line options when you invoke the command (using the -x option) or by reading predefined values from a file. The following table shows the defaults and options that apply to swinstall. Table 2-3 swinstall Command Options and Default Values
For More InformationSee Appendix A “Command Options” for more information about setting options and a complete listing and description of each option. This section provides examples of commands for installing software products. Note that The \* is an optional shorthand wildcard meaning "all products and filesets or all available software." To start an install session via the command line, you must assemble any options (if needed), host and source names, and software selections into a command string. For example: swinstall -p -s softsource -f softlist \ The @ myhost:/mydirectory is optional if you are installing to your local host and default directory (root).
For complete instructions for updating from a previous HP-UX release to HP-UX 11i, use the new update-ux command, as explained in Chapter 2 of HP-UX 11i Installation and Update Guide. This document and complete OS documentation is available on your HP-UX Instant Information CD-ROM and at: http://docs.hp.com/hpux/os/11i/ swinstall has a variety of patch management features, including a patch management dialog in the GUI. See Chapter 5 “Managing Patches” for complete details on patches and using the swinstall GUI patch features. The autorecover_product option lets you automatically recover or roll back to original product files if you start an install and the process fails. When updating files, swinstall removes the original files as they are updated. If an error occurs while swinstall is loading new filesets, the product being loaded is marked as corrupt, the original files are lost, and you must repeat the installation. By setting the autorecover_product option to true, all filesets that are updated are first saved as backup copies. They are not removed until all filesets within the product finish loading. If swinstall terminates because of an error, you can correct the error then re-run swinstall. swinstall automatically continues the load process where it was interrupted. Software packaged with the is_reboot attribute set to true requires the host to be rebooted after the software is installed. However, when installing to alternate root file systems, the host will not be rebooted. If a local installation entails a reboot, the system reboots the target and the controller, so there is no process left to report success or failure. (SD-UX does not automatically reconnect to the target after a reboot.) To find out if a software product requires the local host to be rebooted, get a description of the software either from the Software Selection window, using the menu item Show Description of Software, or from the Analysis dialog using the Product Summary and Product Description buttons. To protect software from unauthorized installation, HP (and other vendors) use special codewords and customer identification numbers to "lock" the software to a particular owner. These codewords and customer IDs are provided to you when you purchase the software (or receive it as update). HP lists them on the Software Certificate which is packaged with the software. To properly store the customer_id/codeword for a CD-ROM, you can run swinstall (or swcopy or swlist) on the host serving the CD-ROM. After the codeword has been stored, clients installing software using that host and CD-ROM as a source will no longer require a codeword or customer_id. SD searches the .codewords file on the server that is providing protected software to other hosts. It looks for valid customer_id/codeword pairs. In doing so, SD eliminates the need for you to enter codewords and customer_ids on every host that is "pulling" the software. This is a time saver if you are updating multiple systems. SD-UX prompts you for these codewords or numbers prior to the installation of protected software. You can enter or change the numbers via the GUI using the Add New Codeword choice from the Actions menu in the GUI, or by using the appropriate default option (-x codeword=xxxx and -x customer_id=xxx) on the command line. For example, if you want to store the codeword 123456789101bcdf (from the /CD-ROM mount point) and your customer_id was xyzCorp, you would enter on the command line: swinstall -p -x customer_id=xyzCorp \ (Since the purpose of this command is only to store codewords and customer IDs, the -p option runs the command in preview mode so that no actual software installation takes place.) See Appendix A “Command Options” for more information on codeword and customer_id options. The software product called SW-DIST provides all Software Distributor functionality, commands, and tools. If the files that make up SW-DIST are deleted or corrupted, you may need to re-install the product. This process uses the new install-sd command, which is described in Appendix C “Replacing or Updating SD-UX”. Your installation may commonly having multiple versions of a software product installed at various hosts on the network. Multiple installed version let you:
You can decide whether to allow multiple versions by controlling the allow_multiple_versions command option. If set to false, installed or configured multiple versions (that is, the same product, but a different revision, installed into a different location) are not allowed. While multiple installed versions of software are allowed, multiple configured versions are not recommended. Once multiple versions of software are installed into a location, you can manage them by specifying the product attribute in the software specification of SD-UX commands. (This is as opposed to specifying other version attributes such as revision and architecture). This lets you install old and new versions of software at the same time and configure both versions (if the software packaging supports it). You can avoid unauthorized, privately installed versions of software by controlling access to the IPD and restricting the use of the swinstall tool.
Software is usually installed relative to the primary root directory (/) but you can also install to an alternate root directory. The automatic configuration and compatibility filtering that is part of the swinstall command is not performed when installing to an alternate root. You can, however, perform configuration separately from installation by using the swconfig command. See “Configuring Your Installation (swconfig)”. SD-UX normally filters out software products that are incompatible with any selected targets. Compatible means that the architecture of the hardware matches that required by the software (determined by the system uname attributes). It also means that the OS version is the proper one for the software. The actual check for incompatible software is performed during the selection phase. Compatibility filtering and checking are controlled by the allow_incompatible option and depend on the host's uname attributes.
Table 2-4 Product Compatibility
If allow_incompatible=false (the default), swinstall restricts the installation of incompatible software and automatically filters the products on the source. The Software Selection window shows only those products compatible with the hardware and OS of all target systems. If allow_incompatible=true, swinstall allows the installation of any software. The GUI displays all products on the source for selection. You can also use the -x os_name and -x os_release options to check compatibility. During an OS update, for example, if a system has been installed as 11.0/32 bit and you wish to update to the 64-bit version of HP-UX, you can make the system appear as a 64-bit system for the purpose of compatibility checking against the merged depot by specifying the options -x os_name=HP-UX:64 and -x os_release=B.11.00. (You can also specify these options at a fileset level.)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||