How To Install aws-nuke on Debian 12
Introduction
In this tutorial we learn how to install aws-nuke on Debian 12.
What is aws-nuke
aws-nuke is:
Remove all resources from an AWS account.
Be aware that aws-nuke is a very destructive tool, hence be very careful while using it. Otherwise can cause production data deletion.
As an advise try to not run this application on any AWS account, where cannot be afforded to lose all resources. By default aws-nuke only lists all resources to delete. It’s necessary to add –no-dry-run to actually delete resources.
This tool retries deleting all resources until all specified ones are deleted or until there are only resources with errors left. There are two ways to authenticate aws-nuke, static credentials and profiles.
There are three methods to install aws-nuke on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install aws-nuke Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install aws-nuke using apt-get by running the following command:
sudo apt-get -y install aws-nuke
Install aws-nuke Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install aws-nuke using apt by running the following command:
sudo apt -y install aws-nuke
Install aws-nuke Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install aws-nuke using aptitude by running the following command:
sudo aptitude -y install aws-nuke
How To Uninstall aws-nuke on Debian 12
To uninstall only the aws-nuke package we can use the following command:
sudo apt-get remove aws-nuke
Uninstall aws-nuke And Its Dependencies
To uninstall aws-nuke and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove aws-nuke
Remove aws-nuke Configurations and Data
To remove aws-nuke configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge aws-nuke
Remove aws-nuke configuration, data, and all of its dependencies
We can use the following command to remove aws-nuke configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge aws-nuke
Dependencies
aws-nuke have the following dependencies:
References
Summary
In this tutorial we learn how to install aws-nuke package on Debian 12 using different package management tools: apt, apt-get and aptitude.