6.3 Creating Linux Dependency Bundles

You can create Linux Dependency bundles to store the dependency packages in order to resolve package dependencies on the managed device.

Linux Dependency bundles cannot be installed on a device by using the zac bundle-install command. However, on the agent, you can install packages from a Linux Dependency bundle by using the zac install command if the Publish Package flag is set to true for those packages. The agent command to list the packages of a bundle does not list any package for the Linux Dependency bundles unless the Publish Package flag is set to true for the package.

NOTE:You cannot assign any schedules while assigning Linux Dependency bundles to devices.

You can create Linux Dependency Bundles in any of the following ways:

6.3.1 Mirroring Content From Repositories to Create Bundle

  1. In ZENworks Control Center, create a subscription.

    For more information on how to create subscriptions, see Creating Subscriptions by Using ZENworks Control Center.

  2. Click the subscription name link on the Subscriptions page.

    The Subscription’s Summary page is displayed.

  3. In the Options panel, select Create Linux Dependency Bundle in the Bundle Options group.

    If you are replicating from a ZLM repository that has multiple bundles, selecting this option creates the same number of Linux Dependency bundles as are in the ZLM catalog. If you are replicating from a repository other than a ZLM repository, selecting this option creates a single Linux dependency bundle.

  4. Select the Publish Packages option to allow the user on the ZENworks agent to directly install the packages on the agent by using the zac command. If you do not select this option, the packages are used for dependency resolution in other Linux bundles.

  5. Click the Run Now link in the Schedule pane or from the Quick Tasks menu on the Subscriptions page to begin the replication immediately.

    or

    Schedule when you want to replicate.

    For more information on schedules, see Schedule Types in the ZENworks Primary Server and Satellite Reference.

If the replication is successful, the Linux Dependency bundle is created in a folder on the ZENworks server. The folder name is the catalog name that you chose to download while creating the subscription. You can see this folder in ZENworks Control Center > Bundles.

You can also create Linux Dependency bundles from the Bundles tab in ZENworks Control Center or by using the zman command line utility.

For more information on how to create Linux Dependency bundles from the Bundles tab in ZENworks control Center, see the ZENworks Software Distribution Reference. For more information on how to create Linux Dependency bundles by using the zman command line utility, see Bundle Commands in the ZENworks Command Line Utilities Reference.

6.3.2 Using ZENworks Control Center to Create a Bundle

  1. In ZENworks Control Center, click the Bundles tab to display the Bundles panel.

  2. Click New > Bundle to display the Create New Bundle Wizard.

  3. Select Linux Dependency Bundle.

  4. On the Define Details page, specify a name for the bundles, then click Next.

    As you complete the wizard, if you need more information about any fields or options, click the Help button located in the upper right corner of ZENworks Control Center.

  5. On the Select .rpm Files page, perform any of the following tasks:

    Task

    Steps

    Add a file

    1. Click Add to display the Upload Files dialog box.

    2. Click Add, then select the files that you want to upload.

    3. Click OK.

    The Status field displays the status of the RPM files that you are uploading.

    Edit a file

    1. Select the check box next to the files that you want to edit.

    2. Click Edit.

    3. Select Set Publish Packages if you do not want certain packages to be automatically installed on the agent.

      Select Set Publish Packages if you want to manually install the packages on the agent by using the zac command. If you select this option, the Publish Packages column displays Yes for the selected package.

      Select Unset Publish Packages to install the packages on the agent while resolving dependencies only. The packages for which this option is selected are not visible on the agent. If you select this option, the Publish Packages column displays No for the selected package. By default, the Publish Packages column displays No.

    Remove a file

    1. Select the check box next to the files that you want to remove, then click Remove.

    Select Targets

    1. Select the packages whose target(s) you want to change from default All to target(s), then select the target(s) which you want to associate with the selected packages.

    2. Click Apply to associate the selected target with the selected packages.

  6. Click Next to display the Summary page.

  7. If you want to perform other configuration tasks after the bundle has been created, select the Define Additional Properties check box.

    For example, you can make assignments to the bundle in the Relationships tab, view actions in the Actions tab, and so on.

    Select the Create As Sandbox check box to deploy the bundle as a sandbox version. A sandbox version of a bundle enables you to test it on your device before actually deploying it.

  8. Review the configuration, then click one of the following:

    • Back: Lets you make changes after reviewing the summary.

    • Finish: Creates the Linux Dependency bundle according to the configured settings listed on this Summary page.

6.3.3 Using the zman Command to Create a Bundle

  1. Run the zman bundle-create bundle_name path_of_bundle_xml_file command.

    You can obtain the sample bundle XML files from the following locations on the server:

    /opt/microfocus/zenworks/share/zman/samples/linuxbundles/Empty_DependencyBundle.xml

  2. Add packages to the Linux bundles:

    1. Create an action XML file for the local RPM packages by running the zman linux-export-actions command.

      While creating the action XML file for Linux Dependency bundles, the action type argument should be Distribute RPM.

    2. Add the packages to the bundle by running the zman bundle-add-actions command. The action XML file that was created should be used as an argument with this command.

For more information on these commands, see Bundle Commands in the ZENworks Command Line Utilities Reference.

6.3.4 Adding Packages to an Existing Linux Dependency Bundle

  1. In ZENworks Control Center, click the Bundles tab.

  2. In the Name column, click a Linux Dependency bundle to display its Summary tab.

  3. Click the Packages tab.

  4. Click Add, then select whether you want to upload an RPM or import the file from a repository.

  5. Select the packages whose target you want to change from default All to targets, then select the targets that you want to be associated with the selected packages.

  6. Click Apply to add the selected target.

  7. Click Apply to save the created actions to the Linux Dependency bundle.

  8. Click the View link under Targets to view the action created with packages selected with a specified target.