sxpm command not found

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

Introduction

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

sxpm: command not found

or when using sudo you get the following error message

sudo: sxpm: command not found

Solutions to sxpm: command not found

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

In Ubuntu sxpm is provided by xpmutils package.

xpmutils is:

The X PixMap image format is an extension of the monochrome X BitMap format specified in the X protocol, and is commonly used in traditional X applications.

This package provides two tools: cxpm (to check the integrity of an XPM file) and sxpm (to view XPM files).

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

sudo apt-get -y install xpmutils

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

You can also use apt command to install xpmutils.

sudo apt -y install xpmutils

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

sudo aptitude install xpmutils

Summary

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