How To Install perl-cross-debian on Debian 9
Introduction
In this tutorial we learn how to install perl-cross-debian on Debian 9.
What is perl-cross-debian
perl-cross-debian is:
This package provides the configuration values for selected versions of perl. Each set is compatible with the Debian configuration of that version of perl, to circumvent the use of compiled test binaries which will fail during a cross-build.
Also provides a helper script to push the relevant configuration files into the cross-build using support in debian/rules within perl.
There are three methods to install perl-cross-debian 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 perl-cross-debian Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install perl-cross-debian using apt-get by running the following command:
sudo apt-get -y install perl-cross-debian
Install perl-cross-debian Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install perl-cross-debian using apt by running the following command:
sudo apt -y install perl-cross-debian
Install perl-cross-debian 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 perl-cross-debian using aptitude by running the following command:
sudo aptitude -y install perl-cross-debian
How To Uninstall perl-cross-debian on Debian 9
To uninstall only the perl-cross-debian package we can use the following command:
sudo apt-get remove perl-cross-debian
Uninstall perl-cross-debian And Its Dependencies
To uninstall perl-cross-debian and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove perl-cross-debian
Remove perl-cross-debian Configurations and Data
To remove perl-cross-debian configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge perl-cross-debian
Remove perl-cross-debian configuration, data, and all of its dependencies
We can use the following command to remove perl-cross-debian configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge perl-cross-debian
Dependencies
perl-cross-debian have the following dependencies:
References
Summary
In this tutorial we learn how to install perl-cross-debian package on Debian 9 using different package management tools: apt, apt-get and aptitude.