How To Install libsru-perl on Debian 10
Introduction
In this tutorial we learn how to install libsru-perl
on Debian 10.
What is libsru-perl
libsru-perl is:
The SRU package provides a framework for working with the Search and Retrieval by URL (SRU) protocol developed by the Library of Congress. SRU defines a web service for searching databases containing metadata and objects. SRU often goes under the name SRW which is a SOAP version of the protocol. You can think of SRU as a RESTful version of SRW, since all the requests are simple URLs instead of XML documents being sent via some sort of transport layer.
You might be interested in SRU if you want to provide a generic API for searching a data repository and a mechanism for returning metadata records. SRU defines three verbs: explain, scan and searchRetrieve which define the requests and responses in a SRU interaction.
This set of modules attempts to provide a framework for building an SRU service. The distribution is made up of two sets of Perl modules: modules in the SRU::Request::* namespace which represent the three types of requests; and modules in the SRU::Response::* namespace which represent the various responses.
There are three methods to install libsru-perl
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libsru-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 libsru-perl
using apt-get
by running the following command:
sudo apt-get -y install libsru-perl
Install libsru-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsru-perl
using apt
by running the following command:
sudo apt -y install libsru-perl
Install libsru-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 libsru-perl
using aptitude
by running the following command:
sudo aptitude -y install libsru-perl
How To Uninstall libsru-perl on Debian 10
To uninstall only the libsru-perl
package we can use the following command:
sudo apt-get remove libsru-perl
Uninstall libsru-perl And Its Dependencies
To uninstall libsru-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libsru-perl
Remove libsru-perl Configurations and Data
To remove libsru-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libsru-perl
Remove libsru-perl configuration, data, and all of its dependencies
We can use the following command to remove libsru-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsru-perl
Dependencies
libsru-perl have the following dependencies:
- perl
- libcgi-application-perl
- libclass-accessor-perl
- libcql-parser-perl
- liburi-perl
- libxml-libxml-perl
- libxml-simple-perl
References
Summary
In this tutorial we learn how to install libsru-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.