smemcap command not found

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

Introduction

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

smemcap: command not found

or when using sudo you get the following error message

sudo: smemcap: command not found

Solutions to smemcap: command not found

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

In Ubuntu smemcap is provided by smemcap package.

smemcap is:

Tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system.

This package contains smemcap utility, which can be used to collect data on resource constrained systems without depending on Python.

The captured data can be processed by smem program.

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

sudo apt-get -y install smemcap

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

You can also use apt command to install smemcap.

sudo apt -y install smemcap

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

sudo aptitude install smemcap

Summary

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