How To Install slang-gdbm on Ubuntu 18.04

In this tutorial we learn how to install slang-gdbm on Ubuntu 18.04. slang-gdbm is access to GDBM databases from S-Lang

Introduction

In this tutorial we learn how to install slang-gdbm on Ubuntu 18.04.

What is slang-gdbm

slang-gdbm is:

The S-Lang module contained in this package provides access to GDBM databases, with an assoc-like syntax for the user interface. This module can be used in slsh (the S-Lang shell), in the JED editor, and in the news reader slrn.

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

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

sudo apt-get update

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

sudo apt-get -y install slang-gdbm

Install slang-gdbm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install slang-gdbm

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

sudo aptitude -y install slang-gdbm

How To Uninstall slang-gdbm on Ubuntu 18.04

To uninstall only the slang-gdbm package we can use the following command:

sudo apt-get remove slang-gdbm

Uninstall slang-gdbm And Its Dependencies

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

sudo apt-get -y autoremove slang-gdbm

Remove slang-gdbm Configurations and Data

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

sudo apt-get -y purge slang-gdbm

Remove slang-gdbm configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge slang-gdbm

References

Summary

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