How To Install hash-slinger on Debian 9
Introduction
In this tutorial we learn how to install hash-slinger on Debian 9.
What is hash-slinger
hash-slinger is:
This package contains various tools to generate special DNS records:
- sshfp Generate RFC-4255 SSHFP DNS records
- tlsa Generate RFC-6698 TLSA DNS records via TLS
- openpgpkey Generate RFC-
OPENPGPKEY DNS records
There are three methods to install hash-slinger on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install hash-slinger Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install hash-slinger using apt-get by running the following command:
sudo apt-get -y install hash-slinger
Install hash-slinger Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install hash-slinger using apt by running the following command:
sudo apt -y install hash-slinger
Install hash-slinger 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 hash-slinger using aptitude by running the following command:
sudo aptitude -y install hash-slinger
How To Uninstall hash-slinger on Debian 9
To uninstall only the hash-slinger package we can use the following command:
sudo apt-get remove hash-slinger
Uninstall hash-slinger And Its Dependencies
To uninstall hash-slinger and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove hash-slinger
Remove hash-slinger Configurations and Data
To remove hash-slinger configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge hash-slinger
Remove hash-slinger configuration, data, and all of its dependencies
We can use the following command to remove hash-slinger configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge hash-slinger
Dependencies
hash-slinger have the following dependencies:
- python
- python-dnspython
- python-argparse
- python-unbound
- python-ipaddr
- python-gnupg
- openssh-client
- python-m2crypto
- ca-certificates
- dns-root-data
References
Summary
In this tutorial we learn how to install hash-slinger package on Debian 9 using different package management tools: apt, apt-get and aptitude.