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
Open the command prompt.
Run the following command to find the old package name of the Druva installer:
rpm -qa | grep druva
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]
E
nter 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.
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
Open the command prompt.
Run the following command to find the old package name of the Druva installer:
dpkg -la | grep druva
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.