How To Install librss-ocaml-dev on Ubuntu 18.04

In this tutorial we learn how to install librss-ocaml-dev on Ubuntu 18.04. librss-ocaml-dev is RSS 2.0 parser and printer for OCaml (development)

Introduction

In this tutorial we learn how to install librss-ocaml-dev on Ubuntu 18.04.

What is librss-ocaml-dev

librss-ocaml-dev is:

This package is a small OCaml library providing functions to parse and print RSS 2.0 files. The parser can also parse some RDF files, but some fields are not taken into account. There is still some work to do (add missing RSS 2.0 attributes, add convenient functions).

OCaml-RSS was previously part of Cameleon but is now developed separately and is findlib compatible.

This package contains all the development stuff you need to develop OCaml programs which use OCaml-RSS.

There are three methods to install librss-ocaml-dev 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 librss-ocaml-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install librss-ocaml-dev using apt-get by running the following command:

sudo apt-get -y install librss-ocaml-dev

Install librss-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librss-ocaml-dev using apt by running the following command:

sudo apt -y install librss-ocaml-dev

Install librss-ocaml-dev 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 librss-ocaml-dev using aptitude by running the following command:

sudo aptitude -y install librss-ocaml-dev

How To Uninstall librss-ocaml-dev on Ubuntu 18.04

To uninstall only the librss-ocaml-dev package we can use the following command:

sudo apt-get remove librss-ocaml-dev

Uninstall librss-ocaml-dev And Its Dependencies

To uninstall librss-ocaml-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove librss-ocaml-dev

Remove librss-ocaml-dev Configurations and Data

To remove librss-ocaml-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge librss-ocaml-dev

Remove librss-ocaml-dev configuration, data, and all of its dependencies

We can use the following command to remove librss-ocaml-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librss-ocaml-dev

References

Summary

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