Remove Tenable Nessus
Required user role when using Tenable Nessus Manager: System Administrator
This topic describes how to uninstall Tenable Nessus in different environments.
Uninstall Tenable Nessus on Linux
Use the following procedure to uninstall Tenable Nessus on Linux.
Before you begin:
-
(Optional) Export your scans and policies.
-
Uninstall Tenable Nessus using the following steps:
To uninstall Tenable Nessus from Linux:
- In Tenable Nessus, verify that any running scans have completed.
-
From a command prompt, stop the nessusd daemon.
The following are examples of Tenable Nessus daemon stop commands:
Debian/Kali and Ubuntu
# /etc/init.d/nessusd stop
Red Hat, CentOS, and Oracle Linux
# /sbin/service nessusd stop
SUSE
# /etc/rc.d/nessusd stop
-
Run the remove Tenable Nessus command specific to your Linux-style operating system.
The following are examples of Tenable Nessus remove commands:
Debian/Kali and Ubuntu
# dpkg -r Nessus
Red Hat 6 and 7, CentOS 6 and 7, Oracle Linux 6 and 7
# yum remove Nessus
Red Hat 8 and later, CentOS 8 and later, Oracle Linux 8 and later, Fedora
# dnf remove Nessus
SUSE
# sudo zypper remove Nessus
-
Using the command specific to your Linux-style operating system, remove remaining files that were not part of the original installation.
Examples: Nessus Remove Command
Linux
# rm -rf /opt/nessus
Uninstall Tenable Nessus on Windows
Use the following procedure to uninstall Tenable Nessus on Windows.
Before you begin:
-
(Optional) Export your scans and policies.
-
Uninstall Tenable Nessus from the Windows user interface or the command line using the following steps:
To uninstall Tenable Nessus from the Windows user interface:
- Navigate to the portion of Windows that allows you to Add or Remove Programs or Uninstall or change a program.
- In the list of installed programs, select the Tenable Nessus product.
-
Click Uninstall.
A dialog box appears, confirming your selection to remove Tenable Nessus.
-
Click Yes.
Windows uninstalls Tenable Nessus.
To uninstall Tenable Nessus from the Windows CLI:
-
Open PowerShell with administrator privileges.
-
Run the following command:
msiexec.exe /x <path to Nessus installer package>
Note: For information about optional msiexec /x parameters, see msiexec in the Microsoft documentation.
Uninstall Tenable Nessus on macOS
Use the following procedure to uninstall Tenable Nessus on macOS.
Before you begin:
-
(Optional) Export your scans and policies.
-
Uninstall Tenable Nessus from the macOS user interface using the following steps:
To uninstall Tenable Nessus from the macOS user interface:
- In System Preferences, select the Nessus button.
- On the Nessus.Preferences screen, select the lock to make changes.
- Next, enter your username and password.
-
Select the Stop Nessus button.
The Status becomes red and shows as Stopped.
- Finally, exit the Nessus.Preferences screen.
-
Remove the following Tenable Nessus directories, subdirectories, and files:
-
/Library/Nessus
-
/Library/LaunchDaemons/com.tenablesecurity.nessusd.plist
-
/Library/PreferencePanes/Nessus Preferences.prefPane
-
/Applications/Nessus
-
-
To prevent the macOS from trying to start the now non-existent service, type the following command from a command prompt to disable the Tenable Nessus service:
$ sudo launchctl remove com.tenablesecurity.nessusd
If prompted, provide the administrator password.
Remove Tenable Nessus as a Docker Container
When you remove Tenable Nessus running as a Docker container, you lose the container data.
To remove Tenable Nessus as a docker container:
- In your terminal, stop the container from running using the docker stop command.
$ docker stop <container name>
- Remove your container using the docker rm command.
$ docker rm <container name>