How To Install why3 on Kali Linux

In this tutorial we learn how to install why3 on Kali Linux. why3 is Software verification platform

Introduction

In this tutorial we learn how to install why3 on Kali Linux.

What is why3

why3 is:

Why3 is a platform for deductive program verification. It provides a rich language for specification and programming, called WhyML, and relies on external theorem provers, both automated and interactive, to discharge verification conditions. Why3 comes with a standard library of logical theories (integer and real arithmetic, Boolean operations, sets and maps, etc.) and basic programming data structures (arrays, queues, hash tables, etc.). A user can write WhyML programs directly and get correct-by-construction OCaml programs through an automated extraction mechanism. WhyML is also used as an intermediate language for the verification of C, Java, or Ada programs.

Why3 is a complete reimplementation of the former Why platform. Among the new features are: numerous extensions to the input language, a new architecture for calling external provers, and a well-designed API, allowing to use Why3 as a software library. An important emphasis is put on modularity and genericity, giving the end user a possibility to easily reuse Why3 formalizations or to add support for a new external prover if wanted.

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

Install why3 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install why3

Install why3 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install why3

Install why3 Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install why3

How To Uninstall why3 on Kali Linux

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

sudo apt-get remove why3

Uninstall why3 And Its Dependencies

To uninstall why3 and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove why3

Remove why3 Configurations and Data

To remove why3 configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge why3

Remove why3 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge why3

Dependencies

why3 have the following dependencies:

References

Summary

In this tutorial we learn how to install why3 package on Kali Linux using different package management tools: apt, apt-get and aptitude.