How To Install elpa-esxml on Ubuntu 18.04

In this tutorial we learn how to install elpa-esxml on Ubuntu 18.04. elpa-esxml is XML, ESXML and SXML library for Emacs Lisp

Introduction

In this tutorial we learn how to install elpa-esxml on Ubuntu 18.04.

What is elpa-esxml

elpa-esxml is:

This library makes it possible to write XML, ESXML, SXML and HTML using Emacs Lisp S-expressions.

This library is not intended to be used directly by a user of Emacs. It could be used to generate static html, or used with a library like elnode to serve dynamic pages. Or even to extract a form from a site to produce an API.

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

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

sudo apt-get update

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

sudo apt-get -y install elpa-esxml

Install elpa-esxml Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-esxml

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

sudo aptitude -y install elpa-esxml

How To Uninstall elpa-esxml on Ubuntu 18.04

To uninstall only the elpa-esxml package we can use the following command:

sudo apt-get remove elpa-esxml

Uninstall elpa-esxml And Its Dependencies

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

sudo apt-get -y autoremove elpa-esxml

Remove elpa-esxml Configurations and Data

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

sudo apt-get -y purge elpa-esxml

Remove elpa-esxml configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elpa-esxml

References

Summary

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