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
Key Facts
- The primary uninstallation command is `sudo gvm-manage-installation --uninstall`.
- This process removes GVM services, libraries, and configuration files.
- It's recommended to back up any critical GVM data before uninstalling.
- Uninstallation may require root privileges (using `sudo`).
- After uninstallation, it's good practice to reboot your system.
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:
- System Resource Management: GVM can be resource-intensive, and if your system is struggling, uninstalling it might free up valuable CPU, RAM, or disk space.
- Switching to Another Tool: You might be migrating to a different vulnerability management solution or have completed a project that required GVM.
- Troubleshooting: If you are experiencing persistent issues with GVM, a clean reinstallation after uninstalling the current version can sometimes resolve problems.
- End of Use: The need for vulnerability scanning may have diminished, or the specific deployment of GVM is no longer required.
- Security Updates: While GVM itself should be kept up-to-date, sometimes uninstalling and reinstalling the latest version can ensure all components are correctly updated.
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 --uninstallExplanation of the command:
sudo: This command is executed with superuser privileges, which are necessary to remove system-wide applications and files.gvm-manage-installation: This is the script responsible for managing the GVM installation, including installation, updates, and uninstallation.--uninstall: This flag tells the script to proceed with the uninstallation process.
This script will typically perform the following actions:
- Stop and disable any running GVM services (like
gvmd,ospd-openvas, etc.). - Remove GVM executables and binaries.
- Uninstall GVM libraries and dependencies that are no longer needed by other applications.
- Remove configuration files, logs, and temporary data associated with GVM.
- Clean up database entries related to GVM if applicable.
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:
- Stopping Services: Manually stop all running GVM-related services using your system's service manager (e.g.,
systemctl stop gvmd ospd-openvas). - 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 gvmorsudo yum remove gvm). - 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. - Removing Configuration Files: Delete configuration files, often found in
/etc/or~/.config/gvm/. - Removing Databases: If GVM used a separate database (like PostgreSQL), you might need to remove the GVM database and user.
- 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:
- Verify Removal: Check that GVM services are no longer running and that the installation directories have been removed.
- Clean Up Dependencies: Some dependencies installed specifically for GVM might remain. You can often use your package manager's autoremove feature (e.g.,
sudo apt autoremove) to clean these up. - Reboot: A system reboot ensures that all residual processes are terminated and system configurations are fully updated.
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.
More How To in Daily Life
Also in Daily Life
More "How To" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- gvm-manage-installation script documentationCC0-1.0
- Greenbone Community Editionfair-use
- GVM - ArchWikiCC-BY-SA-3.0
Missing an answer?
Suggest a question and we'll generate an answer for it.