How To Install elpa-xr on Kali Linux
Introduction
In this tutorial we learn how to install elpa-xr on Kali Linux.
What is elpa-xr
elpa-xr is:
XR converts Emacs regular expressions to the structured rx form, thus being an inverse of rx. It can also find mistakes and questionable constructs inside regexp strings.
It can be useful for:
- Migrating existing code to rx form
- Understanding what a regexp string really means
- Finding errors in regexp strings
It can also parse and find mistakes in skip-sets, the regexp-like arguments to skip-chars-forward and skip-chars-backward.
There are three methods to install elpa-xr on Kali Linux. 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-xr Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install elpa-xr using apt-get by running the following command:
sudo apt-get -y install elpa-xrInstall elpa-xr Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install elpa-xr using apt by running the following command:
sudo apt -y install elpa-xrInstall elpa-xr Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install elpa-xr using aptitude by running the following command:
sudo aptitude -y install elpa-xrHow To Uninstall elpa-xr on Kali Linux
To uninstall only the elpa-xr package we can use the following command:
sudo apt-get remove elpa-xrUninstall elpa-xr And Its Dependencies
To uninstall elpa-xr and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove elpa-xrRemove elpa-xr Configurations and Data
To remove elpa-xr configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge elpa-xrRemove elpa-xr configuration, data, and all of its dependencies
We can use the following command to remove elpa-xr configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge elpa-xrDependencies
elpa-xr have the following dependencies:
References
Summary
In this tutorial we learn how to install elpa-xr package on Kali Linux using different package management tools: apt, apt-get and aptitude.