How To Install ats2-lang on Ubuntu 18.04

In this tutorial we learn how to install ats2-lang on Ubuntu 18.04. ats2-lang is ATS version 2 programming language compiler

Introduction

In this tutorial we learn how to install ats2-lang on Ubuntu 18.04.

What is ats2-lang

ats2-lang is:

ATS2 a.k.a. ATS/Postiats is a programming language with a highly expressive type system rooted in the framework Applied Type System. In particular, both dependent types and linear types are available in ATS. The current implementation of ATS (ATS/Postiats) is written in ATS (ATS/Anairiats) itself. It can be as efficient as C/C++ and supports a variety of programming paradigms.

In addition, ATS contains a component ATS/LF that supports a form of (interactive) theorem proving, where proofs are constructed as total functions. With this component, ATS advocates a programming style that combines programming with theorem proving. Furthermore, this component may be used as a logical framework to encode various deduction systems and their (meta-)properties.

This package contains the compiler patsopt and the frontend patscc, as well as the emacs mode for the language.

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

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

sudo apt-get update

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

sudo apt-get -y install ats2-lang

Install ats2-lang Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ats2-lang

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

sudo aptitude -y install ats2-lang

How To Uninstall ats2-lang on Ubuntu 18.04

To uninstall only the ats2-lang package we can use the following command:

sudo apt-get remove ats2-lang

Uninstall ats2-lang And Its Dependencies

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

sudo apt-get -y autoremove ats2-lang

Remove ats2-lang Configurations and Data

To remove ats2-lang configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ats2-lang

Remove ats2-lang configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ats2-lang

References

Summary

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