Introduction
In this tutorial we learn how to install libalgorithm-diff-xs-perl
on Ubuntu 20.04.
What is libalgorithm-diff-xs-perl
libalgorithm-diff-xs-perl is:
Algorithm::Diff::XS is a Perl diff utility module based on Joe Schaefer’s
excellent but not very well-known Algorithm::LCS module, with a drop-in
interface identical to Algorithm::Diff.
Note that only the LCSidx function is optimized in XS at the moment, which
means only compact_diff will get significantly faster for large data sets,
while diff and sdiff will run in identical speed as Algorithm::Diff.
Task: ubuntu-mate-core, ubuntu-mate-desktop
There are three methods to install libalgorithm-diff-xs-perl
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libalgorithm-diff-xs-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 libalgorithm-diff-xs-perl
using apt-get
by running the following command:
sudo apt-get -y install libalgorithm-diff-xs-perl
Install libalgorithm-diff-xs-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libalgorithm-diff-xs-perl
using apt
by running the following command:
sudo apt -y install libalgorithm-diff-xs-perl
Install libalgorithm-diff-xs-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libalgorithm-diff-xs-perl
using aptitude
by running the following command:
sudo aptitude -y install libalgorithm-diff-xs-perl
How To Uninstall libalgorithm-diff-xs-perl on Ubuntu 20.04
To uninstall only the libalgorithm-diff-xs-perl
package we can use the following command:
sudo apt-get remove libalgorithm-diff-xs-perl
Uninstall libalgorithm-diff-xs-perl And Its Dependencies
To uninstall libalgorithm-diff-xs-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libalgorithm-diff-xs-perl
Remove libalgorithm-diff-xs-perl Configurations and Data
To remove libalgorithm-diff-xs-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libalgorithm-diff-xs-perl
Remove libalgorithm-diff-xs-perl configuration, data, and all of its dependencies
We can use the following command to remove libalgorithm-diff-xs-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libalgorithm-diff-xs-perl
References
Summary
In this tutorial we learn how to install libalgorithm-diff-xs-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.