Skip to main content
Druva Documentation

Uninstall NAS proxy from Linux server

 
Phoenix Editions: File:/tick.png Business File:/cross.png Enterprise File:/tick.png Elite

This topic describes how to uninstall NAS Proxy from a Linux server.

Before you begin

Ensure that you have root user privileges on the Linux server.

Uninstall from CentOS, RHEL, or SLES

  1. Open the command prompt.
  2. Run the following command to find the old package name of the Phoenix installer: 
rpm -qa | grep druva
  1. Run the following command to uninstall the old package:
rpm -e <old_package_name>

When you are prompted Do you want to cleanup all Phoenix config and data files: [yes/no]? [default: no]:

  • Enter yes if you want to delete the server from Phoenix. If you choose this option, you will have re-register the server if you plan to install the Phoenix agent at a later time. 
  • Enter no if you want to manually upgrade the Phoenix agent. However, if you plan on completely uninstalling the agent and you still select no, you have to complete the uninstall

Uninstall from Ubuntu

  1. Open the command prompt.
  2. Run the following command to find the old package name of the Phoenix installer: 
dpkg -la | grep druva
  1. Run the following command to uninstall the old package:
dpkg --purge <package_name>

When you are prompted Do you want to cleanup all Phoenix config and data files: [yes/no]? [default: no]:

  • Enter yes if you want to delete the server from Phoenix. If you choose this option, you will have re-register the server if you plan to install the Phoenix agent at a later time. 
  • Enter no if you want to manually upgrade the Phoenix agent. However, if you plan on completely uninstalling the agent and you still select no, you have to complete the uninstall

Option to uninstall the agent using a script

If you plan to use a script to run the uninstall commands, you can export the following environment variable in your script to set the cleanup task as yes or no. When you use this environment variable, the script will run the uninstall command and will not interrupt the flow with a cleanup prompt that requires user input. 

To set the cleanup task as yes.


export PHOENIX_PACKAGE_CLEANUP_FLAG=True

 To set the cleanup task as no.


export PHOENIX_PACKAGE_CLEANUP_FLAG=False

Note: Value of the environment variable is case-insensitive.  

However, if your script runs in the background, you will not get a cleanup prompt. The uninstall commands run without cleaning up the configuration files. To ensure that cleanup happens, export the environment variable as true in the script.