Skip to main content

How can we help you?

Druva Documentation

Uninstall NAS proxy from Linux server

 
Enterprise Workloads 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 Druva 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 Druva. If you choose this option, you will have re-register the server if you plan to install the Hybrid Workloads agent at a later time. 
  • Enter no if you want to manually upgrade the Hybrid Workloads agent. However, if you plan on completely uninstalling the agent and you still select no, you have to complete the uninstall. 
  1. To force uninstall if any conflicts happen due to ungraceful removal of files, run the following command:
     
    rpm -e --noscripts <old_package_name>
    

Uninstall from Ubuntu

  1. Open the command prompt.
  2. Run the following command to find the old package name of the Druva 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 Druva. If you choose this option, you will have re-register the server if you plan to install the Hybrid Workloads agent at a later time. 
  • Enter no if you want to manually upgrade the Hybrid Workloads 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.