dcraw command not found

In this troubleshooting guide we learn how to fix dcraw command not found error message

Introduction

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

dcraw: command not found

or when using sudo you get the following error message

sudo: dcraw: command not found

Solutions to dcraw: command not found

How To Fix dcraw: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dcraw is provided by dcraw package.

dcraw is:

This utility converts the native (RAW), format of various digital cameras into netpbm portable pixmap (.ppm) or TIFF images. Supports the following models: Canon, Kodak, Olympus, Nikon, Fuji, Minolta and Sigma (see https://www.dechifro.org/dcraw/ for full list) Note: This utility does not read directly from the cameras, only the files after they have been downloaded, use gphoto2 for that.

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

sudo apt-get -y install dcraw

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

You can also use apt command to install dcraw.

sudo apt -y install dcraw

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

sudo aptitude install dcraw

Summary

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