How To Install elk on Ubuntu 20.04

In this tutorial we learn how to install elk on Ubuntu 20.04. elk is scheme interpreter

Introduction

In this tutorial we learn how to install elk on Ubuntu 20.04.

What is elk

elk is:

Elk is an implementation of the Scheme programming language, designed specifically as an embeddable, reusable extension language subsystem for applications written in C or C++.

This package contains the Elk Scheme interpreter, as well as several plugins shipped with Elk. They provide hooks for Unix system calls, the X Window System, as well as the X Athena Widgets and the Motif toolkits. Example scripts on how to use these plugins are provided in the elkdoc package.

There are three methods to install elk on Ubuntu 20.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 elk Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install elk

Install elk Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elk

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

sudo aptitude -y install elk

How To Uninstall elk on Ubuntu 20.04

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

sudo apt-get remove elk

Uninstall elk And Its Dependencies

To uninstall elk and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove elk

Remove elk Configurations and Data

To remove elk configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge elk

Remove elk configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elk

References

Summary

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