6.4 Uninstalling the ZENworks Agent

ZENworks includes a uninstall program (zlm-uninstall) to remove the ZENworks Agent from a device. If for some reason the uninstall program is unable to remove the ZENworks Agent, you can manually uninstall the agent. The following sections provide instructions to remove the software:

Using zlm-uninstall to Uninstall the ZENworks Agent

  1. Make sure you have unregistered the device. See Section 13.0, Unregistering and Reregistering Devices.

  2. Log in to the managed device as root.

  3. Run the following command:

    /opt/novell/zenworks/bin/zlm-uninstall

  4. Follow the prompts.

Manually Uninstalling the ZENworks Agent

  1. Use the following command to list the ZENworks package names:

    rpm -qa | grep novell-zenworks

  2. Remove each of the packages individually using the following command:

    rpm -e | package_name

    or

    Use the following simple script to remove multiple packages:

    for i in ‘rpm -qa | grep novell-zenworks‘ ; do rpm -e $i ; done
    

    Because of package dependencies, you might need to run this script multiple times to remove all packages. You can verify that all packages have been removed by running the command in Step 1.

  3. Remove the following directories:

    • rm -rf /opt/novell/zenworks/
    • rm -rf /etc/opt/novell/zenworks/
    • rm -rf /var/opt/novell/zenworks/

NOTE:When you uninstall ZENworks Linux Management on SLES 10 and SLED 10 managed devices, the core zmd packages such as zmd, rug, zen-updater, and zen-inventory are not removed because they are also installed as a part of the distribution. Hence, when you reinstall the ZENworks Agent on these devices, the configuration files such as zmd.conf that are associated to these packages persist.