How To Install libdevel-autoflush-perl on Debian 10
Introduction
In this tutorial we learn how to install libdevel-autoflush-perl
on Debian 10.
What is libdevel-autoflush-perl
libdevel-autoflush-perl is:
Devel::Autoflush is a hack to set autoflush for STDOUT and STDERR from the command line or from “PERL5OPT” for code that needs it but doesn’t have it.
This often happens when prompting:
guess.pl
print “Guess a number: “;
$n =
As long as the output is going to a terminal, the prompt is flushed when STDIN is read. However, if the output is being piped, the print statement will not automatically be flushed, no prompt will be seen and the program will silently appear to hang while waiting for input.
There are three methods to install libdevel-autoflush-perl
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libdevel-autoflush-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libdevel-autoflush-perl
using apt-get
by running the following command:
sudo apt-get -y install libdevel-autoflush-perl
Install libdevel-autoflush-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdevel-autoflush-perl
using apt
by running the following command:
sudo apt -y install libdevel-autoflush-perl
Install libdevel-autoflush-perl 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 libdevel-autoflush-perl
using aptitude
by running the following command:
sudo aptitude -y install libdevel-autoflush-perl
How To Uninstall libdevel-autoflush-perl on Debian 10
To uninstall only the libdevel-autoflush-perl
package we can use the following command:
sudo apt-get remove libdevel-autoflush-perl
Uninstall libdevel-autoflush-perl And Its Dependencies
To uninstall libdevel-autoflush-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libdevel-autoflush-perl
Remove libdevel-autoflush-perl Configurations and Data
To remove libdevel-autoflush-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libdevel-autoflush-perl
Remove libdevel-autoflush-perl configuration, data, and all of its dependencies
We can use the following command to remove libdevel-autoflush-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdevel-autoflush-perl
Dependencies
libdevel-autoflush-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libdevel-autoflush-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.