21.2 Locking and Unlocking a Bundle on a Managed Device

You can lock a bundle on the managed device to prevent it from being deleted, or to prevent it from being upgraded to a newer version.

You can lock or unlock a bundle either from the ZENworks Control Center or from the command line utility.

21.2.1 Locking or Unlocking a Bundle by Using the ZENworks Control Center

You can also lock bundles in ZENworks Control Center while performing the following actions:

21.2.2 Locking a Bundle by Using the Command Line Utility

  1. List all the bundles installed on the managed device by entering the rug bl command. From the list, select the bundle you want to lock.

  2. Lock the bundle by entering the rug bla bundle_name command.

    bundle_name can include wildcard characters.

  3. Ensure that the bundle is locked by entering the rug bll command. This displays all the locked bundles except those that are locked on the server by the administrator.

NOTE:If a locked bundle has packages, you can remove the packages from the managed device even though the bundle is locked by using rpm -e | package_name or rug rm package_name. To prevent the removal of packages, you must individually lock the packages. For more information on how to lock a package, see Section 21.1, Locking and Unlocking a Package on a Managed Device.

21.2.3 Unlocking a Bundle by Using the Command Line Utility

  1. List all the bundles that are locked on the managed device by entering the rug bll command. This displays the bundle name and its lock index.

  2. Select the bundle you want to unlock.

  3. Unlock the bundle by entering the rug bld lock_index command.

  4. Ensure that the bundle is unlocked by entering the rug bll command. This displays only the locked bundles.