How To Install firefox-esr-dev on Debian 9

In this tutorial we learn how to install firefox-esr-dev on Debian 9. firefox-esr-dev is Development files for the Gecko engine library

Introduction

In this tutorial we learn how to install firefox-esr-dev on Debian 9.

What is firefox-esr-dev

firefox-esr-dev is:

This library provides an API for XUL applications and Gecko embedders. The Gecko engine is the core of the mozilla.org applications such as Firefox, Thunderbird or SeaMonkey.

Gecko features include XPCOM, networking, DOM editing and transaction support, XBL, XUL, SVG, XSLT, XML Extras (XMLHttpRequest and DOMParser), Web Services (SOAP), accessibility support, IPC services, gtkmozembed, etc.

Install this package if you wish to embed the Gecko engine in your program or want to develop XPCOM components.

This package also provides the Xulrunner Software Development Kit in the same form as the one you may find on mozilla.org in /usr/lib/xulrunner/sdk.

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

Install firefox-esr-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 firefox-esr-dev using apt-get by running the following command:

sudo apt-get -y install firefox-esr-dev

Install firefox-esr-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install firefox-esr-dev

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

sudo aptitude -y install firefox-esr-dev

How To Uninstall firefox-esr-dev on Debian 9

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

sudo apt-get remove firefox-esr-dev

Uninstall firefox-esr-dev And Its Dependencies

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

sudo apt-get -y autoremove firefox-esr-dev

Remove firefox-esr-dev Configurations and Data

To remove firefox-esr-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge firefox-esr-dev

Remove firefox-esr-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge firefox-esr-dev

Dependencies

firefox-esr-dev have the following dependencies:

References

Summary

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