Sun N1 Service Provisioning System 5.1 Installation Guide

ProcedureHow to Uninstall File-Based Applications on Linux and UNIX Systems

Steps
  1. On the server that you want to uninstall the application, verify that you are not in the directory of the application you want to uninstall.

  2. Stop the application that you want to uninstall.

  3. If you are uninstalling a Remote Agent, change the permissions on files in the /protect directory.


    % chmod -R 755 /N1SPS5.1-home/agent/bin/protect
    

    N1SPS5.1-home is the directory where you installed the Remote Agent.

  4. Delete the directory that contains the application that you want to uninstall.


    # rm -r /N1SPS5.1-home/app-directory
    

    N1SPS5.1-home is the directory where you installed the application. The default directory on UNIX systems is /opt/SUNWn1sps/. The default directory on Linux systems is /opt/sun. The value for app-directory is one of the following:

    • server – uninstalls a Master Server

    • agent – uninstalls a Remote Agent

    • cli – uninstalls a CLI Client

    • ld – uninstalls a Local Distributor

  5. If you are uninstalling all of the applications from the machine, when the N1SPS5.1–home directory contains no more application directories, delete the common/ directory.


    # rm -r N1SPS5.1-home/common
    

    The uninstallation is complete.