How To Install libtypes-xsd-lite-perl on Ubuntu 18.04

In this tutorial we learn how to install libtypes-xsd-lite-perl on Ubuntu 18.04. libtypes-xsd-lite-perl is type constraints based on a subset of XML schema datatypes

Introduction

In this tutorial we learn how to install libtypes-xsd-lite-perl on Ubuntu 18.04.

What is libtypes-xsd-lite-perl

libtypes-xsd-lite-perl is:

Types::XSD::Lite provides all the type constraints from XML Schema that could be implemented without introducing extra runtime dependencies (above Type::Tiny). That’s basically all of the XSD types, except datetime-related ones, and XML-specific ones (QNames, IDRefs, etc).

If you want the full set of XML Schema types, see Types::XSD.

There are three methods to install libtypes-xsd-lite-perl on Ubuntu 18.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 libtypes-xsd-lite-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 libtypes-xsd-lite-perl using apt-get by running the following command:

sudo apt-get -y install libtypes-xsd-lite-perl

Install libtypes-xsd-lite-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtypes-xsd-lite-perl using apt by running the following command:

sudo apt -y install libtypes-xsd-lite-perl

Install libtypes-xsd-lite-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 libtypes-xsd-lite-perl using aptitude by running the following command:

sudo aptitude -y install libtypes-xsd-lite-perl

How To Uninstall libtypes-xsd-lite-perl on Ubuntu 18.04

To uninstall only the libtypes-xsd-lite-perl package we can use the following command:

sudo apt-get remove libtypes-xsd-lite-perl

Uninstall libtypes-xsd-lite-perl And Its Dependencies

To uninstall libtypes-xsd-lite-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libtypes-xsd-lite-perl

Remove libtypes-xsd-lite-perl Configurations and Data

To remove libtypes-xsd-lite-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtypes-xsd-lite-perl

Remove libtypes-xsd-lite-perl configuration, data, and all of its dependencies

We can use the following command to remove libtypes-xsd-lite-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libtypes-xsd-lite-perl

References

Summary

In this tutorial we learn how to install libtypes-xsd-lite-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.