How to Create an RPM Bundle

Complete the following steps to create an RPM bundle in ZENworks 7 Linux Management:


Launch a browser and enter the URL of the ZENworks Control Center.


Log in to the ZENworks Control Center.


Press Bundles on the menu tab at the top of the page.


Press the New drop-down menu and choose Bundle. This starts the Bundle Creation Wizard (see Figure 7.1).

Figure 7.1. Step 1 of Bundle Creation Wizard.

Complete the wizard to create a bundle. The steps of the wizard are described in the following sections.

RPM Bundle Creation Wizard: Bundle Type

On this first page you need to select the RPM bundle type to create. An RPM bundle enables you to specify a set of RPM files you wish to install on the targeted device. Select the RPM bundle type. Press Next. This moves you to step 2 of the wizard.

RPM Bundle Creation Wizard: Bundle Naming

Figure 7.2 displays step 2 of the wizard.

Figure 7.2. Step 2 of Bundle Creation Wizard.

During step 2 of the wizard you must enter the following information:

  • Name Enter the bundle's name. This is the name that will be displayed in the ZENworks Control Center for this bundle.

  • Display Name Enter the name of the bundle that should be displayed on the end-user interface system.

  • Folder Browse to the folder under the Bundles area where you want this bundle to be created. Folders help you organize your sets of bundles.

  • Description Enter a text description if you wish. This description is used to assist you in remembering what this bundle may contain.

Press Next. This advances the wizard to step 3, where you specify the RPM files.

RPM Bundle Creation Wizard: RPM Additions

Step 3 displays a screen similar to Figure 7.3.

Figure 7.3. Step 3 of Bundle Creation Wizard, to insert RPM files.

On step 3 of the wizard you are asked to enter each of the RPMs that you want to include as part of the bundle. Complete the following for each RPM file you want to include:


Press the Add button. This brings up an RPM File Upload file browser dialog (see Figure 7.4).

Figure 7.4. RPM File Upload dialog.


Select each of the following:

  • Target Platform Select the target platform for the specific RPM. You can have several different target platforms in the same bundle.

  • Install type Auto-Detect, Update, or Install.

    The Install option signals to the system to perform a parallel installation. Parallel installation requires that there be no file conflicts between the packages installed in parallel. This option is useful for kernels almost exclusively.

    The Update option installs the package if it is not found, or performs an update if a previous version of the package is found on the device. The update option works in most cases because you do not have to worry about whether a package is on the device. The option always makes sure that it is.

    The Auto-Detect method determines whether the package is applied with the Install or Update methods. Any kernel packages are marked Install and all other packages are marked as Update.

  • Freshen Select the Freshen check box if you want to install the package only if a previous version of the package already exists on the device.


Press OK.


In the next dialog browse to and select the RPM file that you want to upload. Press OK. This uploads the selected RPM to the ZENworks server and includes the RPM into the RPM list in the bundle. Continue to do this until all the desired RPMs are in the list. You may remove an RPM by selecting the RPM file and pressing the Remove button. After you have completed your list, press Next.


If you have a lot of RPMs to place into a bundle, you may want to use the zlman command-line tool, which provides for the creation and insertion of wildcard-matching RPM files into bundles. See Appendix A, "Commands," for more information on the zlman command.

This takes you to the next page of the creation wizard.

RPM Bundle Creation Wizard: Icon Specification

Step 4 of the wizard enables you to specify an icon file that contains the graphical icon you want to associate with this bundle. This icon is displayed on the target device when the bundle is presented in the GUI interface, which allows for manual updates.

When you enter or browse to the path of the icon file and press Next, ZENworks uploads that file into the system. After the icon file is specified, you move to the next step of the wizard.

RPM Bundle Creation Wizard: Launch Scripts

Step 5 of the wizard enables you to specify scripts that you may want to run before the bundle is distributed to the device and after the distribution is completed.

You are first presented with a screen that lets you activate a pre-launched and/or a post-launched script (see Figure 7.5).

Figure 7.5. Activation screen of pre-launch and post-launch scripts.

You can specify four types of script options:

  • Script This represents a shell script that can be executed on the managed device.

  • Binary This represents an executable program that can be run on the managed device.

  • Java This represents a Java executable class that can be launched on the managed device.

  • None This signals that you want no script to be executed.

The following describes how to enter into the system each of the Script, Binary, or Java types.

After you have finished entering your distribution scripts, press Next.


When you select that the script is to be a shell script, additional information fields are displayed, as shown in Figure 7.6.

Figure 7.6. Additional field for scripts of type Script.

The first field enables you to describe whether the script is a specified file already on the device (Specify a File), or whether the script is one you want to enter into the ZENworks Control Center (Define Your Own Script).

If you choose to define your own script, you are presented with a large text field where you can type in your script. This entered script is delivered to the managed device as part of the RPM bundle and executed in the standard device shell environment. There are no additional fields to provide to ZENworks.

If, however, you choose to specify a file, you need to enter data into the following fields:

  • Script File Name This is the path to the script file on the target device.

  • Script Parameters Here you identify any additional parameters you want to place on the command line after the script filename is specified. This results in parameters being passed to your executable script.

  • Script Engine This enables you to specify the interpreter that is to be launched to run your script.

  • Script Engine Parameters This enables you to specify any parameters you want included on the command line when the script engine is launched.

After all the appropriate fields are specified, the script is defined.


If you chose to have a binary script, the fields displayed in Figure 7.7 are presented.

Figure 7.7. Fields presented when a binary script is selected.

Complete the following fields:

  • Executable File Name Specify the path to the executable file. This file must already exist on the managed device.

  • Executable File Parameters Specify any parameters you want to have included on the command line when the executable file is launched.

After these fields are specified, the binary script is defined.


If you chose to have a Java script, the fields displayed in Figure 7.8 are presented.

Figure 7.8. Fields presented when a Java script is selected.

Complete the following fields:

  • Java Program Name Enter the class path to the class file that you want to launch.

  • Program Parameters Enter any parameters you want passed to the Java class at execution time.

  • Java Runtime Executable (JRE) Enter the path to the JRE that will be used to launch the class. The JRE must have been previously installed on the target device.

  • JRE Parameters Enter any parameters you want passed to the JRE system.

After these fields are specified, the Java script is defined.

RPM Bundle Creation Wizard: Install Scripts

This step of the wizard enables you to specify scripts that should be launched before and after the RPM bundles are installed. Follow the same instructions as specified in the earlier Launch Script section to create the desired script.

After the scripts are defined, press Next.

RPM Bundle Creation Wizard: Summary

The final step of the wizard is the summary page. The summary page displays all aspects of the bundle.

Review the summary page and press Back to return to a previous page to make changes, press Cancel to terminate the bundle creation, or press Finish to complete and create the bundle.

After you press the Finish button, the ZENworks Control Center displays whether the bundle was successfully created. Press OK to return to the ZENworks Control Center.

Novell ZENworks 7 Linux Management Administrator's Handbook
Novell ZENworks 7 Linux Management Administrators Handbook
ISBN: 0672327848
EAN: 2147483647
Year: 2005
Pages: 147 © 2008-2017.
If you may any questions please contact us: