Specify Provides for Packages
Specifying what a package Provides works in two ways.
Provides the Application
The package you are creating also installs another application; it provides the other application.
For example, SQL Server 2008 (sqlserver) installs .Net 3.5.1, so you can add dotnet to the package
properties Provides tab. Assuming that sqlserver is then installed on a machine, and you later install a
package where a dependency on dotnet => 3.0 was configured, Package Manager first looks to see if a
dotnet => 0 was installed. If not found, it checks installed packages to determine if any provide dotnet. If it
finds the sqlserver package is installed with a Provides value of dotnet, it considers the dependency met
and installs the package.
Provides a Type of Functionality
You want to classify the package you are creating as an general application type; it provides a type of
functionality.
When using Provides to specify a type of functionality you are specifying that it provides a logical package
rather than a concrete package. This logical package name is a generic name applied to any one of a group
of packages, all of which provide similar functionality.
For example, you create a package for McAfee (mcafee) where the Provides tab is configured with the
logical package name of antivirus and the Conflicts is configured with norton. You then create a package
for Norton (norton) where the Provides tab is configured with the logical package name of antivirus and
the Conflicts tab is configured with mcafee.
You now have two packages configured to provide anitvirus as a logical package. Now, when you create a
Cisco VPN package (cisco-vpn), which requires some form of antivirus be installed first, you specify
antivirus >= 0 on the Depends tab.
During the installation of the cisco-vpn package, the process first checks dependencies. It sees a
dependency for antivirus =>0. It reviews the installed packages. If no antivirus package is identified, it
checks installed packages to determine if any provide antivirus. If found, it considers the antivirus
Depends criteria has been met and installs. If not found in any installed packages, it reviews the repository
packages for a package named antivirus. If not found, the installation stops and a message tells you that
cisco-vpn depends on antivirus, and antivirus could not be found. You install mcaffee or norton, and then
retry the install of cisco-vpn. This time the cisco-vpn install will find the provided antivirus and the
installation will continue.
Using Package Studio to Create Software Packages and Publish to Repositories
VMware, Inc.
29
Содержание PACKAGE MANAGER 1.1
Страница 38: ...vCenter Configuration Manager Software Provisioning Components Installation and User s Guide 38 VMware Inc...
Страница 48: ...vCenter Configuration Manager Software Provisioning Components Installation and User s Guide 48 VMware Inc...
Страница 64: ...vCenter Configuration Manager Software Provisioning Components Installation and User s Guide 64 VMware Inc...