How To Install librdf-trine-perl on Debian 11

In this tutorial we learn how to install librdf-trine-perl on Debian 11. librdf-trine-perl is RDF Framework for Perl

Introduction

In this tutorial we learn how to install librdf-trine-perl on Debian 11.

What is librdf-trine-perl

librdf-trine-perl is:

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

RDF::Trine provides an RDF framework with an emphasis on extensibility, API stability, and the presence of a test suite. The package consists of several components:

  • RDF::Trine::Model - RDF model providing access to a triple store.
  • RDF::Trine::Parser - Native RDF parsers (RDF/XML, RDFa, Turtle, RDF/JSON, TriG, N-Triples, and N-Quads).
  • RDF::Trine::Serializer, a set of native RDF serializers for RDF/XML, Turtle, RDF/JSON, N-Triples, Canonical N-Triples, and N-Quads.
  • RDF::Trine::Store::DBI - A triple store for MySQL and SQLite, based on the Redland schema.
  • RDF::Trine::Iterator - Iterator classes for variable bindings and RDF statements, used by RDF::Trine::Store, RDF::Trine::Model, and RDF::Query.
  • RDF::Trine::Namespace - A convenience class for easily constructing RDF node objects from URI namespaces.

RDFa parser requires the package librdf-rdfa-parser-perl.

DBI backends other than SQLite require either of packages libdbd-pg-perl libdbd-mysql-perl.

Redis store requires the package libredis-perl.

There are three methods to install librdf-trine-perl on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install librdf-trine-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 librdf-trine-perl using apt-get by running the following command:

sudo apt-get -y install librdf-trine-perl

Install librdf-trine-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librdf-trine-perl

Install librdf-trine-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install librdf-trine-perl using aptitude by running the following command:

sudo aptitude -y install librdf-trine-perl

How To Uninstall librdf-trine-perl on Debian 11

To uninstall only the librdf-trine-perl package we can use the following command:

sudo apt-get remove librdf-trine-perl

Uninstall librdf-trine-perl And Its Dependencies

To uninstall librdf-trine-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove librdf-trine-perl

Remove librdf-trine-perl Configurations and Data

To remove librdf-trine-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge librdf-trine-perl

Remove librdf-trine-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librdf-trine-perl

Dependencies

librdf-trine-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install librdf-trine-perl package on Debian 11 using different package management tools: apt, apt-get and aptitude.