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:
In ZENworks Control Center, click the Bundles tab to display the Bundles panel.
Click New > Bundle to display the Create New Bundle Wizard.
Select Linux Bundle, then click Next.
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.
RPM Application: A bundle with the Install RPMs action to install RPM packages on the device.
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.
If you need to add actions to the bundle, continue with Section 7.0, Actions.
You can create a Linux bundle if you are mirroring content from the NU, RCE, YUM, and Static repositories.
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.
Click the subscription name link on the Subscriptions page.
The Subscription’s Summary page is displayed.
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.
Select Source RPMs to download the source RPMs, if they are available, in to the bundle.
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.
Select Create Category based Bundle Groups to create different bundle groups for the replicated bundles based on their categories.
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 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.
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/novell/zenworks/share/zman/samples/linuxbundles/Empty_LinuxBundle.xml
On Windows: %ZENWORKS_HOME%\share\zman\samples\linuxbundles/Empty_LinuxBundle.xml
Add packages to the Linux bundles:
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.
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.
You can add a package with multiple targets to a Linux bundle. To add actions:
In ZENworks Control Center, click the Bundles tab.
In the Name column, click a Linux bundle to display its Summary tab.
Click the Actions tab.
Click Install > Add > Install RPM(s).
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.
Click Apply to save the created actions to the Linux bundle.