How To Install cduce on Debian 9

In this tutorial we learn how to install cduce on Debian 9. cduce is programming language adapted to the manipulation of XML data

Introduction

In this tutorial we learn how to install cduce on Debian 9.

What is cduce

cduce is:

CDuce is a modern programming language adapted to the manipulation of XML documents.

Some of CDuce’s peculiar features:

  • XML objects can be manipulated as first-class citizen values: elements, sequences, tags, characters and strings, attribute sets; sequences of XML elements can be specified by regular expressions, which also apply to characters strings;
  • functions themselves are first-class values, they can be manipulated, stored in data structure, returned by a function,…;
  • a powerful pattern matching operation can perform complex extractions from sequences of XML elements;
  • a rich type algebra, with recursive types and arbitrary boolean combinations (union, intersection, complement) allows precise definitions of data structures and XML types; general purpose types and types constructors are taken seriously (products, extensible records, arbitrary precision integers with interval constraints, Unicode characters);
  • polymorphism through a natural notion of subtyping, and overloaded functions with dynamic dispatch; - an highly-effective type-driven compilation schema.

CDuce is fast, functional, type-safe, and conforms to basic standards: Unicode, XML, DTD, Namespaces are fully supported, partial support of XML Schema validation is in alpha testing (and undocumented) while queries are being implemented.

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

Install cduce Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cduce

Install cduce Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cduce using apt by running the following command:

sudo apt -y install cduce

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

sudo aptitude -y install cduce

How To Uninstall cduce on Debian 9

To uninstall only the cduce package we can use the following command:

sudo apt-get remove cduce

Uninstall cduce And Its Dependencies

To uninstall cduce and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove cduce

Remove cduce Configurations and Data

To remove cduce configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge cduce

Remove cduce configuration, data, and all of its dependencies

We can use the following command to remove cduce configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge cduce

Dependencies

cduce have the following dependencies:

References

Summary

In this tutorial we learn how to install cduce package on Debian 9 using different package management tools: apt, apt-get and aptitude.