How To Install libxrd-parser-perl on Ubuntu 18.04

In this tutorial we learn how to install libxrd-parser-perl on Ubuntu 18.04. libxrd-parser-perl is parse XRD and host-meta files into RDF

Introduction

In this tutorial we learn how to install libxrd-parser-perl on Ubuntu 18.04.

What is libxrd-parser-perl

libxrd-parser-perl is:

Resource Description Framework (RDF) is a standard model for data interchange on the Web.

Extensible Resource Descriptor (XRD) is an XML format for discovery of metadata about a resource – in particular discovery of services associated with the resource. It is commonly used in relation to OpenID, YADIS and OAuth.

While XRD has a rather different history, it turns out it can mostly be thought of as a serialisation format for a limited subset of RDF.

This package ignores the order of elements, as RDF is a graph format with no concept of statements coming in an “order”. The XRD spec says that grokking the order of elements is only a SHOULD. That said, if you’re concerned about the order of elements, the callback routines allowed by this package may be of use.

This package aims to be roughly compatible with RDF::RDFa::Parser’s interface.

There are three methods to install libxrd-parser-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 libxrd-parser-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 libxrd-parser-perl using apt-get by running the following command:

sudo apt-get -y install libxrd-parser-perl

Install libxrd-parser-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libxrd-parser-perl using apt by running the following command:

sudo apt -y install libxrd-parser-perl

Install libxrd-parser-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 libxrd-parser-perl using aptitude by running the following command:

sudo aptitude -y install libxrd-parser-perl

How To Uninstall libxrd-parser-perl on Ubuntu 18.04

To uninstall only the libxrd-parser-perl package we can use the following command:

sudo apt-get remove libxrd-parser-perl

Uninstall libxrd-parser-perl And Its Dependencies

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

sudo apt-get -y autoremove libxrd-parser-perl

Remove libxrd-parser-perl Configurations and Data

To remove libxrd-parser-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libxrd-parser-perl

Remove libxrd-parser-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libxrd-parser-perl

References

Summary

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