visual-regexp command not found

In this troubleshooting guide we learn how to fix visual-regexp command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

visual-regexp: command not found

or when using sudo you get the following error message

sudo: visual-regexp: command not found

Solutions to visual-regexp: command not found

How To Fix visual-regexp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu visual-regexp is provided by visual-regexp package.

visual-regexp is:

This Tcl script shows the result of running a regular expression, making debugging relatively easy. It also assists in the construction of regular expressions.

To fix this problem, we can install more using the command below.

sudo apt-get -y install visual-regexp

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install visual-regexp.

sudo apt -y install visual-regexp

Or if you have aptitude installed you can use the following command.

sudo aptitude install visual-regexp

Summary

In this tutorial we learn how to fix visual-regexp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.