How To Install dtach on Kali Linux
Introduction
In this tutorial we learn how to install dtach
on Kali Linux.
What is dtach
dtach is:
dtach is a tiny program that emulates the detach feature of screen, allowing you to run a program in an environment that is protected from the controlling terminal and attach to it later. dtach does not keep track of the contents of the screen, and thus works best with programs that know how to redraw themselves.
dtach does not, however, have the other features of screen, such as its support of multiple terminals or its terminal emulation support. This makes dtach extremely tiny compared to screen, making it more easily audited for bugs and security holes, and also allows it to fit in environments where space is limited, such as on rescue disks.
There are three methods to install dtach
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dtach Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dtach
using apt-get
by running the following command:
sudo apt-get -y install dtach
Install dtach Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dtach
using apt
by running the following command:
sudo apt -y install dtach
Install dtach Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install dtach
using aptitude
by running the following command:
sudo aptitude -y install dtach
How To Uninstall dtach on Kali Linux
To uninstall only the dtach
package we can use the following command:
sudo apt-get remove dtach
Uninstall dtach And Its Dependencies
To uninstall dtach
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dtach
Remove dtach Configurations and Data
To remove dtach
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dtach
Remove dtach configuration, data, and all of its dependencies
We can use the following command to remove dtach
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dtach
Dependencies
dtach have the following dependencies:
References
Summary
In this tutorial we learn how to install dtach
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.