How To Install elpa-restart-emacs on Ubuntu 18.04

In this tutorial we learn how to install elpa-restart-emacs on Ubuntu 18.04. elpa-restart-emacs is restart emacs from within emacs

Introduction

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

What is elpa-restart-emacs

elpa-restart-emacs is:

This package provides a simple command to restart Emacs from within Emacs.

There are three methods to install elpa-restart-emacs 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-restart-emacs 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-restart-emacs using apt-get by running the following command:

sudo apt-get -y install elpa-restart-emacs

Install elpa-restart-emacs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-restart-emacs

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

sudo aptitude -y install elpa-restart-emacs

How To Uninstall elpa-restart-emacs on Ubuntu 18.04

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

sudo apt-get remove elpa-restart-emacs

Uninstall elpa-restart-emacs And Its Dependencies

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

sudo apt-get -y autoremove elpa-restart-emacs

Remove elpa-restart-emacs Configurations and Data

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

sudo apt-get -y purge elpa-restart-emacs

Remove elpa-restart-emacs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elpa-restart-emacs

References

Summary

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