How To Install idris on CentOS 7

In this tutorial we learn how to install idris on CentOS 7. idris is Functional Programming Language with Dependent Types

Introduction

In this tutorial we learn how to install idris on CentOS 7.

What is idris

Idris is a general purpose language with full dependent types. It is compiled, with eager evaluation. Dependent types allow types to be predicated on values, meaning that some aspects of a program’s behavior can be specified precisely in the type. The language is closely related to Epigram and Agda. There is a tutorial at <http include - Full dependent types with dependent pattern matching - where clauses, with rule, simple case expressions, pattern matching let and lambda bindings - Type classes, monad comprehensions - do notation, idiom brackets, syntactic conveniences for lists, tuples, dependent pairs - Totality checking - Coinductive types - Indentation significant syntax, extensible syntax - Tactic based theorem proving (influenced by Coq) - Cumulative universes - Simple foreign function interface (to C) - Hugs style interactive environment.

We can use yum or dnf to install idris on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install idris.

Install idris on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install idris using yum by running the following command:

sudo yum -y install idris

Install idris on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install idris using dnf by running the following command:

sudo dnf -y install idris

How To Uninstall idris on CentOS 7

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

sudo dnf remove idris

References

Summary

In this tutorial we learn how to install idris on CentOS 7 using yum and dnf.