ospurge command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ospurge: command not found
or when using sudo you get the following error message
sudo: ospurge: command not found
Solutions to ospurge: command not found
How To Fix ospurge: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ospurge is provided by python3-ospurge package.
python3-ospurge is:
OSPurge is a standalone client-side tool that aims at deleting all resources, taking into account their interdependencies, in a specified OpenStack project.
OSPurge ensures in a quick and automated way that no resource is left behind when a project is deleted.
OSPurge can be used by a cloud administrator, this means a user with the admin role, to cleanup any project or by a non-privileged user to cleanup his own project.
At the moment it is possible to purge the following resources from a project:
- Floating IP
- Glance Images
- Instances
- Networks
- Routers
- Security groups
- Swift containers
- Swift objects
- Volumes / Volume snapshots / Volume backups
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-ospurge
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-ospurge.
sudo apt -y install python3-ospurge
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-ospurge
Summary
In this tutorial we learn how to fix ospurge command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.