How To Install golang-github-xordataexchange-crypt on Debian 9
Introduction
In this tutorial we learn how to install golang-github-xordataexchange-crypt
on Debian 9.
What is golang-github-xordataexchange-crypt
golang-github-xordataexchange-crypt is:
Fess up. You have passwords and usernames hard coded in your apps. You have IP addresses checked in to your source code repository. You have entire configuration files that were created by the developer who wrote the app and haven??t been changed since she typed “git init”.
“crypt” is here to lead you back to the Path of Enlightened Configuration. Store encrypted configuration values in etcd or Consul using a command-line application.
Decrypt them before starting your application using a wrapper script and the handy CLI tool, or inside the app using the “crypt/config” library.
“crypt” is built on time-tested standards like OpenPGP, base64, and gzip. Your data is encrypted using public key encryption, and can only be decrypted by when the private key is available. After compression, it is encrypted, and base64-encoded so it can be stored in your key/value store of choice. etcd and Consul are supported out of the box, but adding other storage tools is a trivial task, thanks to Go??s interfaces.
This package provides the command-line tool “bin/crypt”, but renamed to /usr/bin/crypt-xordataexchange, to avoid filename collision with /usr/bin/crypt from the mcrypt package.
There are three methods to install golang-github-xordataexchange-crypt
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 golang-github-xordataexchange-crypt Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install golang-github-xordataexchange-crypt
using apt-get
by running the following command:
sudo apt-get -y install golang-github-xordataexchange-crypt
Install golang-github-xordataexchange-crypt Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-github-xordataexchange-crypt
using apt
by running the following command:
sudo apt -y install golang-github-xordataexchange-crypt
Install golang-github-xordataexchange-crypt 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 golang-github-xordataexchange-crypt
using aptitude
by running the following command:
sudo aptitude -y install golang-github-xordataexchange-crypt
How To Uninstall golang-github-xordataexchange-crypt on Debian 9
To uninstall only the golang-github-xordataexchange-crypt
package we can use the following command:
sudo apt-get remove golang-github-xordataexchange-crypt
Uninstall golang-github-xordataexchange-crypt And Its Dependencies
To uninstall golang-github-xordataexchange-crypt
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove golang-github-xordataexchange-crypt
Remove golang-github-xordataexchange-crypt Configurations and Data
To remove golang-github-xordataexchange-crypt
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge golang-github-xordataexchange-crypt
Remove golang-github-xordataexchange-crypt configuration, data, and all of its dependencies
We can use the following command to remove golang-github-xordataexchange-crypt
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-xordataexchange-crypt
Dependencies
golang-github-xordataexchange-crypt have the following dependencies:
References
Summary
In this tutorial we learn how to install golang-github-xordataexchange-crypt
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.