How To Install elpa-visual-regexp on Ubuntu 18.04
Introduction
In this tutorial we learn how to install elpa-visual-regexp
on Ubuntu 18.04.
What is elpa-visual-regexp
elpa-visual-regexp is:
visual-regexp for Emacs is like
replace-regexp
, but with live visual feedback directly in the buffer.
While constructing the regexp in the minibuffer, you get live visual feedback for the matches, including group matches. While constructing the replacement in the minibuffer, you get live visual feedback for the replacements.
It can be used to replace all matches in one go (like
replace-regexp
), or a decision can be made on each match (like
query-replace-regexp
).
There are three methods to install elpa-visual-regexp
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-visual-regexp 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-visual-regexp
using apt-get
by running the following command:
sudo apt-get -y install elpa-visual-regexp
Install elpa-visual-regexp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install elpa-visual-regexp
using apt
by running the following command:
sudo apt -y install elpa-visual-regexp
Install elpa-visual-regexp 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-visual-regexp
using aptitude
by running the following command:
sudo aptitude -y install elpa-visual-regexp
How To Uninstall elpa-visual-regexp on Ubuntu 18.04
To uninstall only the elpa-visual-regexp
package we can use the following command:
sudo apt-get remove elpa-visual-regexp
Uninstall elpa-visual-regexp And Its Dependencies
To uninstall elpa-visual-regexp
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove elpa-visual-regexp
Remove elpa-visual-regexp Configurations and Data
To remove elpa-visual-regexp
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge elpa-visual-regexp
Remove elpa-visual-regexp configuration, data, and all of its dependencies
We can use the following command to remove elpa-visual-regexp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge elpa-visual-regexp
References
Summary
In this tutorial we learn how to install elpa-visual-regexp
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.