How To Install libsmlnj-smlnj on Ubuntu 18.04

In this tutorial we learn how to install libsmlnj-smlnj on Ubuntu 18.04. libsmlnj-smlnj is Useful libraries for Standard ML of New Jersey

Introduction

In this tutorial we learn how to install libsmlnj-smlnj on Ubuntu 18.04.

What is libsmlnj-smlnj

libsmlnj-smlnj is:

A library for SML, including:

  • Util A general utility library.
  • Controls A library of support code for managing application controls.
  • HashCons A library supporting hash-consing of data structures and efficient sets and maps using hash-consed keys.
  • HTML Provides parsing and pretty printing of HTML.
  • INet Networking utilities.
  • PP Pretty-printing library.
  • Reactive A low-level reactive scripting library.
  • RegExp Regular-expression library.
  • Unix A set of unix specific utilities.

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

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

sudo apt-get update

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

sudo apt-get -y install libsmlnj-smlnj

Install libsmlnj-smlnj Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsmlnj-smlnj

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

sudo aptitude -y install libsmlnj-smlnj

How To Uninstall libsmlnj-smlnj on Ubuntu 18.04

To uninstall only the libsmlnj-smlnj package we can use the following command:

sudo apt-get remove libsmlnj-smlnj

Uninstall libsmlnj-smlnj And Its Dependencies

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

sudo apt-get -y autoremove libsmlnj-smlnj

Remove libsmlnj-smlnj Configurations and Data

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

sudo apt-get -y purge libsmlnj-smlnj

Remove libsmlnj-smlnj configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsmlnj-smlnj

References

Summary

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