How to uninstall gvm

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: To uninstall Greenbone Vulnerability Management (GVM), you typically use the `gvm-manage-installation` script with the `--uninstall` option. This command automates the removal of GVM components, its dependencies, and configuration files from your system.

Key Facts

What is Greenbone Vulnerability Management (GVM)?

Greenbone Vulnerability Management (GVM), formerly known as Greenbone Security Assistant (GSA), is a comprehensive vulnerability management solution. It provides a framework for scanning networks and systems to identify security weaknesses, misconfigurations, and potential threats. GVM consists of several components, including the Greenbone Security Assistant (web interface), the Greenbone Vulnerability Manager daemon (gvmd), and the Network Vulnerability Test (NVT) feed, which contains thousands of vulnerability tests.

Why Uninstall GVM?

There are several reasons why you might need to uninstall GVM. These can include:

How to Uninstall GVM

The recommended and most straightforward method for uninstalling GVM is by using the installation management script that was likely used to install it in the first place. This script is designed to handle the removal of all GVM components and their associated files cleanly.

Using the `gvm-manage-installation` Script

If you installed GVM using the official installation script or a similar package manager that utilizes `gvm-manage-installation`, you can use the following command:

sudo gvm-manage-installation --uninstall

Explanation of the command:

This script will typically perform the following actions:

Manual Uninstallation (Advanced Users)

In some cases, especially if GVM was installed manually without the management script or if the script fails, you might need to perform a more manual uninstallation. This is significantly more complex and carries a higher risk of leaving behind files or breaking other system components if not done carefully. This process generally involves:

  1. Stopping Services: Manually stop all running GVM-related services using your system's service manager (e.g., systemctl stop gvmd ospd-openvas).
  2. Removing Packages: If GVM was installed via a package manager (like `apt` or `yum`), use the package manager to remove the installed GVM packages (e.g., sudo apt remove gvm or sudo yum remove gvm).
  3. Removing Directories: Manually delete GVM installation directories. Common locations include /usr/local/sbin, /usr/local/bin, /etc/gvm, /var/lib/gvm, /opt/gvm, and user home directories if installed locally.
  4. Removing Configuration Files: Delete configuration files, often found in /etc/ or ~/.config/gvm/.
  5. Removing Databases: If GVM used a separate database (like PostgreSQL), you might need to remove the GVM database and user.
  6. Cleaning Up Environment Variables: Remove any GVM-related entries from shell configuration files (e.g., .bashrc, .profile).

Caution: Manual uninstallation is not recommended unless you are experienced with Linux system administration and understand the potential consequences. Always back up important data before proceeding.

Post-Uninstallation Steps

After running the uninstallation command or performing manual removal, it's advisable to:

Troubleshooting Uninstallation

If the gvm-manage-installation --uninstall command fails, check the output for specific error messages. Common issues include insufficient permissions (ensure you are using sudo correctly) or the script not being found (indicating GVM might not have been installed using the standard script). In such cases, referring to the installation method you used or seeking help from the GVM community forums might be necessary.

Sources

  1. gvm-manage-installation script documentationCC0-1.0
  2. Greenbone Community Editionfair-use
  3. GVM - ArchWikiCC-BY-SA-3.0

Missing an answer?

Suggest a question and we'll generate an answer for it.