binwalk command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
binwalk: command not found
or when using sudo you get the following error message
sudo: binwalk: command not found
Solutions to binwalk: command not found
How To Fix binwalk: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu binwalk is provided by binwalk package.
binwalk is:
Binwalk is a tool for searching a given binary image for embedded files and executable code. Specifically, it is designed for identifying files and code embedded inside of firmware images. Binwalk uses the libmagic library, so it is compatible with magic signatures created for the Unix file utility.
Binwalk also includes a custom magic signature file which contains improved signatures for files that are commonly found in firmware images such as compressed/archived files, firmware headers, Linux kernels, bootloaders, filesystems, etc.
This package is an empty package, because the binary tool is already provided with the library, dependency of this package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install binwalk
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install binwalk.
sudo apt -y install binwalk
Or if you have aptitude installed you can use the following command.
sudo aptitude install binwalk
Summary
In this tutorial we learn how to fix binwalk command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.