How To Install clasp on Debian 10

Learn how to install clasp on Debian 10 with this tutorial. clasp is conflict-driven nogood learning answer set solver

Introduction

In this tutorial we learn how to install clasp on Debian 10.

What is clasp

clasp is:

clasp is an answer set solver for (extended) normal logic programs. It combines the high-level modeling capacities of answer set programming (ASP) with state-of-the-art techniques from the area of Boolean constraint solving. The primary clasp algorithm relies on conflict-driven nogood learning, a technique that proved very successful for satisfiability checking (SAT). Unlike other learning ASP solvers, clasp does not rely on legacy software, such as a SAT solver or any other existing ASP solver. Rather, clasp has been genuinely developed for answer set solving based on conflict-driven nogood learning. clasp can be applied as an ASP solver (on LPARSE output format), as a SAT solver (on simplified DIMACS/CNF format), or as a PB solver (on OPB format).

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

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

sudo apt-get update

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

sudo apt-get -y install clasp

Install clasp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install clasp

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

sudo aptitude -y install clasp

How To Uninstall clasp on Debian 10

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

sudo apt-get remove clasp

Uninstall clasp And Its Dependencies

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

sudo apt-get -y autoremove clasp

Remove clasp Configurations and Data

To remove clasp configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge clasp

Remove clasp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge clasp

Dependencies

clasp have the following dependencies:

References

Summary

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