How To Install empty-expect on Debian 9
Introduction
In this tutorial we learn how to install empty-expect
on Debian 9.
What is empty-expect
empty-expect is:
empty is a utility that provides an interface to execute and/or interact with processes under pseudo-terminal sessions (PTYs). This tool is useful in programming of shell scripts designed to communicate with interactive programs like telnet, ssh, ftp, etc. In some cases empty can be the simplest replacement for Tcl/expect or other similar programming tools because empty can be easily invoked directly from shell prompt or script, and does not use Tcl, Perl, PHP, Python or anything else as an underlying language.
There are three methods to install empty-expect
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 empty-expect Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install empty-expect
using apt-get
by running the following command:
sudo apt-get -y install empty-expect
Install empty-expect Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install empty-expect
using apt
by running the following command:
sudo apt -y install empty-expect
Install empty-expect 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 empty-expect
using aptitude
by running the following command:
sudo aptitude -y install empty-expect
How To Uninstall empty-expect on Debian 9
To uninstall only the empty-expect
package we can use the following command:
sudo apt-get remove empty-expect
Uninstall empty-expect And Its Dependencies
To uninstall empty-expect
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove empty-expect
Remove empty-expect Configurations and Data
To remove empty-expect
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge empty-expect
Remove empty-expect configuration, data, and all of its dependencies
We can use the following command to remove empty-expect
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge empty-expect
Dependencies
empty-expect have the following dependencies:
References
Summary
In this tutorial we learn how to install empty-expect
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.