How To Install elpa-goto-chg on Ubuntu 18.04

In this tutorial we learn how to install elpa-goto-chg on Ubuntu 18.04. elpa-goto-chg is navigate the point to the most recent edit in the buffer

Introduction

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

What is elpa-goto-chg

elpa-goto-chg is:

goto-chg is an Emacs addon that allows the user to move point to the most recent edit in the buffer. When the command is repeated, point moves to the second most recent edit, and so on. A negative argument may be used to reverse the direction.

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

sudo apt-get -y install elpa-goto-chg

Install elpa-goto-chg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-goto-chg

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

sudo aptitude -y install elpa-goto-chg

How To Uninstall elpa-goto-chg on Ubuntu 18.04

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

sudo apt-get remove elpa-goto-chg

Uninstall elpa-goto-chg And Its Dependencies

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

sudo apt-get -y autoremove elpa-goto-chg

Remove elpa-goto-chg Configurations and Data

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

sudo apt-get -y purge elpa-goto-chg

Remove elpa-goto-chg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elpa-goto-chg

References

Summary

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