Sun Java Enterprise System 5 Update 1 Installation Guide for UNIX

Running the Uninstaller in Silent Mode

Silent uninstallation is useful for uninstalling Java ES product components on multiple hosts that share similar configurations. The procedure for uninstalling in silent mode is similar to the procedure for installing in silent mode as described in Chapter 5, Installing in Silent Mode.

ProcedureTo Create a State File

To perform a silent uninstallation, you must first generate a state file by running an interactive uninstallation session in either graphical or text-based mode. For more information, refer to Generating the Initial State File.

  1. If you are not logged in as root, become superuser.

  2. Navigate to the uninstaller directory:

    • Solaris OS: /var/sadm/prod/SUNWentsys5u1

    • Linux: /var/sadm/prod/sun-entsys5u1

  3. If you are using the graphical interface of the uninstaller, you might need to provide access to your local display. See Running the Uninstaller in Graphical Mode.

  4. Run the silent uninstaller. For example:


    Tip –

    Include the –no option if you do not want to uninstall software in this session.


    Graphical mode:


    ./uninstall -saveState statefile_path
    

    Text-based mode, software not uninstalled:


    ./uninstall -no -nodisplay -saveState statefile_path
    

    To see the full syntax for the uninstall command, refer to uninstall Command.

  5. Proceed through the uninstaller to completion.

    As you respond to the prompts, the uninstaller records your answers in the specified state file. When you complete the uninstallation, the state file is available in the location that you specified. If you used the –no option, no software was uninstalled.

  6. Make a copy of the state file for each host on which you are going to perform a silent uninstallation.

  7. Edit each file providing information specific to the host where you will run that silent uninstallation.

    For guidelines on editing state files, refer to Editing the State File. Editing the state file might also include generating a state file ID, as explained in Creating a Platform-Appropriate State File ID.

ProcedureTo Run the Uninstaller in Silent Mode

  1. Verify that you have properly prepared and edited the state file for the host where you want to uninstall Java ES product components.

  2. If you are not logged in as root, become superuser.

  3. Navigate to the uninstaller directory:

    • Solaris OS: /var/sadm/prod/SUNWentsys5u1

    • Linux: /var/sadm/prod/sun-entsys5u1

  4. Start the uninstaller. For example:


    ./uninstall -noconsole -state statefile_path
     
    

    To see the full syntax for the uninstall command, refer to uninstall Command.

ProcedureTo Monitor the Progress of a Silent Uninstallation

  1. In a terminal window, navigate to the log file directory:

    Solaris OS: /var/sadm/install/logsLinux: /var/opt/sun/install/logs

  2. Locate the log files for the current uninstallation. The log file of interest for monitoring purposes is:


    Java_Enterprise_System_5_uninstall.Btimestamp
    

    The timestamp variable represents the time the log was created. The variable has the following format MMddhhmm, where:

    MM

    Specifies the month

    dd

    Specifies the date

    hh

    Specifies the hour

    mm

    Specifies the minute

  3. Use the tail command to watch messages as they are written to the logs. For example:


    tail -f logfile_name
    

    To exit the tail program, press Ctrl+C.