Software Distributor
Encyclopedia
Software Distributor is the Hewlett-Packard
Hewlett-Packard
Hewlett-Packard Company or HP is an American multinational information technology corporation headquartered in Palo Alto, California, USA that provides products, technologies, softwares, solutions and services to consumers, small- and medium-sized businesses and large enterprises, including...

 company's name for their HP-UX
HP-UX
HP-UX is Hewlett-Packard's proprietary implementation of the Unix operating system, based on UNIX System V and first released in 1984...

 software package management system
Package management system
In software, a package management system, also called package manager, is a collection of software tools to automate the process of installing, upgrading, configuring, and removing software packages for a computer's operating system in a consistent manner...

.

SD provides a set of tools for creating packages that will install software on a system running the HP-UX operating system. The packages can be grouped together into a software repository called a depot, and a server can be configured to host multiple depots for installation of software packages and even entire systems.

SD was first available with release 10.0 of HP-UX in 1995. Since then it has undergone several enhancements and bug fixes, and now provides a reliable software installation tool. It uses a client-server arrangement to distribute software using a background daemon
Daemon (computer software)
In Unix and other multitasking computer operating systems, a daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive user...

 called swagentd. This agent is started at boot time, and communicates using either the TCP or UDP protocols through RPC
Remote procedure call
In computer science, a remote procedure call is an inter-process communication that allows a computer program to cause a subroutine or procedure to execute in another address space without the programmer explicitly coding the details for this remote interaction...

. The SD packages are normally stored and transmitted in compressed
form, using either the gzip or compress programs.

Commands

The tools for performing SD operations are normally accessed from the command line. SD includes the following commands:
  • swacl — access to the software products or depots can be controlled at a fine-level by means of an Access Control List
    Access control list
    An access control list , with respect to a computer file system, is a list of permissions attached to an object. An ACL specifies which users or system processes are granted access to objects, as well as what operations are allowed on given objects. Each entry in a typical ACL specifies a subject...

    . This list can be managed by the swacl command.
  • swask — run interactive software request scripts and store the responses for later use by the swinstall and swconfig files.
  • swconfig — configure or unconfigure an installed software package.
  • swcopy — copy software packages to a depot.
  • swinstall — install one or more software products on a local or remote system. This will cause a system reboot when the installed packages are marked as requiring a system restart.
  • swjob — create and monitor SD batch jobs.
  • swlist — list installed software products on a system or the contents of a depot. A considerable number of package parameters can be displayed by using the correct arguments to this command.
  • swmodify — modify the particulars of a software package installed on a system or loaded into a depot.
  • swpackage — a specification file is passed to this command, directing it about how a software package should be built. The resulting package can then be added to a depot or onto media for shipment.
  • swreg — register or unregister a depot. Only registered depots will be shown using a depot-level swlist of a remote server.
  • swremove — remove a software package from a system or depot. This will cause a system reboot when the removed packages are marked as requiring a system restart.
  • swverify — test an installed software product to determine if the install state is what was expected.


These commands include a broad range of command-line options that allow relatively fine control of the task being performed. In addition to command-line programs, several of these tools can also launch GUI
Gui
Gui or guee is a generic term to refer to grilled dishes in Korean cuisine. These most commonly have meat or fish as their primary ingredient, but may in some cases also comprise grilled vegetables or other vegetarian ingredients. The term derives from the verb, "gupda" in Korean, which literally...

 versions in an X Window System
X Window System
The X window system is a computer software system and network protocol that provides a basis for graphical user interfaces and rich input device capability for networked computers...

 display. The GUI version of swinstall performs some filtering of the software list to match software packages with the system where it is being run.

The commands log messages to an administrative area, which can be useful for diagnosing installation issues or just tracking what software is loaded or removed.

Packaging

Software packages are built by means of a specification file, a set of install scripts, and the actual software content. The install scripts are executed during software installation, verification, and removal, and can be used to prepare a system for the software and to perform activation or deactivation of the package. The specification file determines how the software package will be organized, list the locations of the various files to be loaded into the package, restrict the systems on which the package can be installed, and determine the security configuration of the package. It also provides various information about the package, such as a name, version, and description.

Software packages are organized in a hierarchy of containers, with the highest level being a bundle or product and the lowest being the filesets and then files. The hierarchy is arranged as follows:
  • Bundle
    • Product(s)
      • Subproduct(s)
        • Fileset(s)
          • Files


Actually only the Product and Fileset levels are needed for many packages. The Subproduct level is sometimes used to group together Filesets, while the Bundle provides a higher-level grouping for related products. There can be one or more filesets in a Product, and one or more products in a Bundle. The Fileset level is used specifically for loading the files. A product can be installed without all of its associated filesets, &c.

The filesets and products can be linked together by various requirement tags, which cause swinstall to select the appropriate dependencies automatically.

Each fileset can have multiple control scripts specific to the files it will load. These scripts are executed in the following order during an installation:
  • checkinstall — run during a pre-install analysis phase to check if the fileset can be loaded on the system.
  • preinstall — run just prior to loading the files in the fileset.
  • postinstall — run immediately following the file load, and before a reboot, if any.
  • configure — run after postinstall script and after a reboot, if any, to perform final configuration of the installed package.


There is a corresponding set of scripts that are executed in the reverse order during a swremove:
  • checkremove
  • unconfigure
  • preremove
  • postremove


Other scripts include verify for performing a sanity check with the swverify command, unpreinstall, and unpostinstall. All, some, or none of these scripts can be included in the package, depending on the requirements of the installation. They are useful for performing cleanup of previous packages, creating links, adding the software directory to various search environment variable
Environment variable
Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.They can be said in some sense to create the operating environment in which a process runs...

s, and so forth.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK