How To Install silversearcher-ag-el on Debian 9

In this tutorial we learn how to install silversearcher-ag-el on Debian 9. silversearcher-ag-el is Emacs frontend to ag

Introduction

In this tutorial we learn how to install silversearcher-ag-el on Debian 9.

What is silversearcher-ag-el

silversearcher-ag-el is:

The Silver Searcher (a.k.a. ag) is very fast grep-like program. It is faster and has an attractive features than grep. ag.el is simple ag frontend for Emacs, loosely based on ack-and-half.el.

There are three methods to install silversearcher-ag-el 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 silversearcher-ag-el Using apt-get

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

sudo apt-get update

After updating apt database, We can install silversearcher-ag-el using apt-get by running the following command:

sudo apt-get -y install silversearcher-ag-el

Install silversearcher-ag-el Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install silversearcher-ag-el using apt by running the following command:

sudo apt -y install silversearcher-ag-el

Install silversearcher-ag-el 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 silversearcher-ag-el using aptitude by running the following command:

sudo aptitude -y install silversearcher-ag-el

How To Uninstall silversearcher-ag-el on Debian 9

To uninstall only the silversearcher-ag-el package we can use the following command:

sudo apt-get remove silversearcher-ag-el

Uninstall silversearcher-ag-el And Its Dependencies

To uninstall silversearcher-ag-el and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove silversearcher-ag-el

Remove silversearcher-ag-el Configurations and Data

To remove silversearcher-ag-el configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge silversearcher-ag-el

Remove silversearcher-ag-el configuration, data, and all of its dependencies

We can use the following command to remove silversearcher-ag-el configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge silversearcher-ag-el

Dependencies

silversearcher-ag-el have the following dependencies:

References

Summary

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