How To Install libxml-simple-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libxml-simple-perl
on Ubuntu 20.04.
What is libxml-simple-perl
libxml-simple-perl is:
The XML::Simple module provides a simple API layer on top of an underlying XML parsing module to maintain XML files (especially configuration files). Two functions are exported: XMLin() and XMLout().
The simplest approach is to call these two functions directly, but an optional object oriented interface allows them to be called as methods of an XML::Simple object. The object interface can also be used at either end of a SAX pipeline.
Note from upstream: The use of this module in new code is strongly discouraged. Other modules are available which provide more straightforward and consistent interfaces. In particular, XML::LibXML is highly recommended. XML::Twig is another excellent alternative.These modules are packaged as libxml-libxml-perl and libxml-twig-perl in Debian.
There are three methods to install libxml-simple-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-simple-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-simple-perl
using apt-get
by running the following command:
sudo apt-get -y install libxml-simple-perl
Install libxml-simple-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxml-simple-perl
using apt
by running the following command:
sudo apt -y install libxml-simple-perl
Install libxml-simple-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-simple-perl
using aptitude
by running the following command:
sudo aptitude -y install libxml-simple-perl
How To Uninstall libxml-simple-perl on Ubuntu 20.04
To uninstall only the libxml-simple-perl
package we can use the following command:
sudo apt-get remove libxml-simple-perl
Uninstall libxml-simple-perl And Its Dependencies
To uninstall libxml-simple-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-simple-perl
Remove libxml-simple-perl Configurations and Data
To remove libxml-simple-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libxml-simple-perl
Remove libxml-simple-perl configuration, data, and all of its dependencies
We can use the following command to remove libxml-simple-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxml-simple-perl
References
Summary
In this tutorial we learn how to install libxml-simple-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.