35.2 Executing an RPM Upgrade from a Script

  1. Copy the the appropriate RPMs from the CD to a temporary directory, for example /usr/temp/RPMS.

  2. Create a script containing the following lines:

    #!/bin/bash
    
    rpm -Uvh --freshen --nosignature `ls your_temporary_directory/*.rpm` >>your_temporary_directory/zdmup.log.$$
    
    /opt/novell/zenworks/bin/novell-zenworks-inv-restore.sh
    
    /opt/novell/zenworks/bin/novell-zenworks-sybase-restore.sh
    
    /opt/novell/zenworks/bin/novell-zenworks-invdb-restore.sh
    
    /opt/novell/zenworks/bin/novell-zenworks-naldb-restore.sh
    
    /opt/novell/zenworks/bin/novell-zenworks-wol-restore.sh
    
    sed -i.bak s@-7\.0\.0-.@@ /opt/novell/zenworks/Uninstall\ ZENworks\ Desktop\ Management/.com.zerog.registry.xml
    
    /opt/novell/zenworks/bin/ZDMstart restart cold
    

    Include only the restore script command lines (ending in -restore.sh) that are applicable to the components that you are upgrading.

    Notes concerning the lines in this script:

    • The rpm command line upgrades the ZENworks Desktop Management software to SP1 using each RPM contained in the temporary /RPMS directory

    • The quoted RPM line is used to list the RPMs for the rpm command and the output is sent to the zdmup.log.$$ file for viewing later

    • The sed line sets up future uninstalling capability

    • The ZDMstart command line is used to do a completely clean restart of ZENworks Desktop Management

  3. Run the script from the bash prompt.

  4. If you need to reconfigure any of the updated RPMs, see Section 24.0, Installing RPMs and Changing Configuration Values.