7zr command not found

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

Introduction

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

7zr: command not found

or when using sudo you get the following error message

sudo: 7zr: command not found

Solutions to 7zr: command not found

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

In Ubuntu 7zr is provided by p7zip package.

p7zip is:

p7zip is the Unix command-line port of 7-Zip, a file archiver that handles the 7z format which features very high compression ratios.

p7zip provides:

  • /usr/bin/7zr a standalone minimal version of the 7-zip tool that only handles 7z, LZMA and XZ archives. 7z compression is 30-50% better than ZIP compression.
  • /usr/bin/p7zip a gzip-like wrapper around 7zr.

p7zip can be used with popular compression interfaces (such as File Roller or Nautilus).

Another package, p7zip-full, provides 7z and 7za which support more compression formats.

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

sudo apt-get -y install p7zip

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

You can also use apt command to install p7zip.

sudo apt -y install p7zip

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

sudo aptitude install p7zip

Summary

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