xgrep command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xgrep: command not found
or when using sudo you get the following error message
sudo: xgrep: command not found
Solutions to xgrep: command not found
How To Fix xgrep: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xgrep is provided by xgrep package.
xgrep is:
xgrep provides facilities for searching content in XML files. The search is specified either as an XPath via the -x flag, or a custom syntax, including extended regular expressions, via the -s flag. Multiple input files may be specified; if none are provided, input is read from stdin.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xgrep
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xgrep.
sudo apt -y install xgrep
Or if you have aptitude installed you can use the following command.
sudo aptitude install xgrep
Summary
In this tutorial we learn how to fix xgrep command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.