extract command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
extract: command not found
or when using sudo you get the following error message
sudo: extract: command not found
Solutions to extract: command not found
How To Fix extract: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu extract is provided by extract package.
extract is:
Similar to the well-known “file” command, extract can display meta-data from a file and print the results to stdout.
Currently, libextractor supports the following formats: HTML, MAN, PS, DVI, OLE2 (DOC, XLS, PPT), OpenOffice (sxw), StarOffice (sdw), FLAC, MP3 (ID3v1 and ID3v2), OGG, WAV, S3M (Scream Tracker 3), XM (eXtended Module), IT (Impulse Tracker), NSF(E) (NES music), SID (C64 music), EXIV2, JPEG, GIF, PNG, TIFF, DEB, RPM, TAR(.GZ), LZH, LHA, RAR, ZIP, CAB, 7-ZIP, AR, MTREE, PAX, CPIO, ISO9660, SHAR, RAW, XAR, FLV, REAL, RIFF (AVI), MPEG, QT and ASF.
Also, various additional MIME types are detected. It can also be used to compute hash functions (SHA-1, MD5, ripemd160).
To fix this problem, we can install more using the command below.
sudo apt-get -y install extract
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install extract.
sudo apt -y install extract
Or if you have aptitude installed you can use the following command.
sudo aptitude install extract
Summary
In this tutorial we learn how to fix extract command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.