How To Install libxml-sax-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libxml-sax-perl
on Ubuntu 20.04.
What is libxml-sax-perl
libxml-sax-perl is:
XML::SAX consists of several framework classes for using and building Perl SAX2 XML parsers, filters, and drivers. It is designed around the need to be able to “plug in” different SAX parsers to an application without requiring programmer intervention. Those of you familiar with the DBI will be right at home. Some of the designs come from the Java JAXP specification (SAX part), only without the javaness.
The package also contains a SAX parser, XML::SAX::PurePerl, but it is considered too slow for serious use and is only provided as a fallback parser. It is recommend XML::SAX::Expat (provided in libxml-sax-expat-perl) instead.
The framework includes a Debian-specific script (called update-perl-sax-parsers) to manage the ParserDetails.ini file. This script is intended to be used in postinst and prerm package scripts to (de)register parsers. See README.Debian for more info. Task: ubuntu-mate-core, ubuntu-mate-desktop
There are three methods to install libxml-sax-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 libxml-sax-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 libxml-sax-perl
using apt-get
by running the following command:
sudo apt-get -y install libxml-sax-perl
Install libxml-sax-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxml-sax-perl
using apt
by running the following command:
sudo apt -y install libxml-sax-perl
Install libxml-sax-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 libxml-sax-perl
using aptitude
by running the following command:
sudo aptitude -y install libxml-sax-perl
How To Uninstall libxml-sax-perl on Ubuntu 20.04
To uninstall only the libxml-sax-perl
package we can use the following command:
sudo apt-get remove libxml-sax-perl
Uninstall libxml-sax-perl And Its Dependencies
To uninstall libxml-sax-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libxml-sax-perl
Remove libxml-sax-perl Configurations and Data
To remove libxml-sax-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libxml-sax-perl
Remove libxml-sax-perl configuration, data, and all of its dependencies
We can use the following command to remove libxml-sax-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxml-sax-perl
References
Summary
In this tutorial we learn how to install libxml-sax-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.