How To Install vgrep on Fedora 36
Introduction
In this tutorial we learn how to install vgrep
on Fedora 36.
What is vgrep
vgrep is a pager for grep, git-grep, ripgrep and similar grep implementations, and allows for opening the indexed file locations in a user-specified editor such as vim or emacs. vgrep is inspired by the ancient cgvg scripts but extended to perform further operations such as listing statistics of files and directory trees or showing the context lines before and after the matches.
We can use yum
or dnf
to install vgrep
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install vgrep.
Install vgrep on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install vgrep
using dnf
by running the following command:
sudo dnf -y install vgrep
Install vgrep on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install vgrep
using yum
by running the following command:
sudo yum -y install vgrep
How To Uninstall vgrep on Fedora 36
To uninstall only the vgrep
package we can use the following command:
sudo dnf remove vgrep
vgrep Package Contents on Fedora 36
/usr/bin/vgrep
/usr/lib/.build-id
/usr/lib/.build-id/84
/usr/lib/.build-id/84/99abee6acb8d719ddb869fa1647f1d9a5d49eb
/usr/share/doc/vgrep
/usr/share/doc/vgrep/README.md
/usr/share/licenses/vgrep
/usr/share/licenses/vgrep/LICENSE
/usr/share/man/man1/vgrep.1.gz
References
Summary
In this tutorial we learn how to install vgrep
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).