How To Install libmujs-dev on Debian 12

Learn how to install libmujs-dev on Debian 12 with this tutorial. libmujs-dev is Lightweight JavaScript interpreter (development package)

Introduction

In this tutorial we learn how to install libmujs-dev on Debian 12.

What is libmujs-dev

libmujs-dev is:

MuJS is a lightweight JavaScript interpreter designed for embedding in other software to extend them with scripting capabilities.

MuJS was designed with a focus on small size, correctness, and simplicity. It is written in portable C and implements ECMAScript as specified by ECMA-262. The interface for binding with native code is designed to be as simple as possible to use, and is very similar to Lua. There is no need to interact with byzantine C++ template mechanisms, or worry about marking and unmarking garbage collection roots, or wrestle with obscure build systems.

There are three methods to install libmujs-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libmujs-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libmujs-dev

Install libmujs-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmujs-dev

Install libmujs-dev 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libmujs-dev using aptitude by running the following command:

sudo aptitude -y install libmujs-dev

How To Uninstall libmujs-dev on Debian 12

To uninstall only the libmujs-dev package we can use the following command:

sudo apt-get remove libmujs-dev

Uninstall libmujs-dev And Its Dependencies

To uninstall libmujs-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libmujs-dev

Remove libmujs-dev Configurations and Data

To remove libmujs-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libmujs-dev

Remove libmujs-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmujs-dev

Dependencies

libmujs-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libmujs-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.