6.2 Creating Linux Bundles

You can use Linux bundles to install, upgrade, or remove RPM packages, install or remove files, or perform various management actions such as running scripts, editing files, or launching applications on the device. The various Linux bundles types can be created by using the zman utility or from ZENworks Control Center. You can also create Linux bundles with RPM packages from Subscriptions by downloading packages and patches from remote repositories.

You can create Linux bundles in any of the following ways:

6.2.1 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 Bundle, then click Next.

  4. Select the desired bundle category:

    Empty bundle: A bundle with no initial tasks. This bundle category is useful to quickly create a bundle without performing all tasks in the Create New Bundle Wizard. After you create the empty bundle, you can edit its details to add actions, and so forth, at a later time.

    Create/Delete Directory: A bundle that creates or deletes a directory. This bundle is created with the Create/Delete Directory action. You can add other actions to this bundle or edit the already existing action.

    For more information on how to add or edit actions, see Section 7.0, Actions.

    Install Directory: A bundle that installs a directory.

    Install Files: A bundle that installs the files in the bundle.

    NOTE:To add link or shortcut files, in ZCCHelper, when you enter *.lnk as the File Name, the available list of link and shortcut files are displayed. After you select the required file, ZENworks uploads only the link file, instead of the executable to which the file links.

    RPM Application: A bundle with the Install RPMs action to install RPM packages on the device.

  5. On the Define Details page, specify a name for the bundle, 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.

  6. If you need to add actions to the bundle, continue with Section 7.0, Actions.

6.2.2 Mirroring Content from Repositories to Create a Bundle

You can create a Linux bundle if you are mirroring content from the NU, RCE, YUM, and Static repositories.

  1. In ZENworks Control Center, create a NU, RCE, RPM-MD or Static 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 Bundle in the Bundle Options group.

    The Monolithic Bundle option is selected by default. If you are replicating from a ZLM repository that has multiple bundles, selecting this option creates the same number of Linux 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 bundle.

  4. Select Source RPMs to download the source RPMs, if they are available, in to the bundle.

  5. If you want to create patch bundles, select the Patches option to create patch bundles and download the patches to these bundles. This option is selected by default for the NU and RCE repositories.

  6. Select Create Category based Bundle Groups to create different bundle groups for the replicated bundles based on their categories.

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


    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 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.

6.2.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:


    On Windows: %ZENWORKS_HOME%\share\zman\samples\linuxbundles/Empty_LinuxBundle.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.

      When you create the action XML file for Linux bundles, the action type argument should be Install 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 the commands, see Bundle Commands in the ZENworks Command Line Utilities Reference.

6.2.4 Adding Additional Targets to Packages in an Existing Linux Bundle

You can add a package with multiple targets to a Linux bundle. To add actions:

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

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

  3. Click the Actions tab.

  4. Click Install > Add > Install RPM(s).

  5. Select the packages whose target you want to change from default All to target, then select the target which you want to associate with the selected packages, then click OK.

  6. Click Apply to save the created actions to the Linux bundle.