earlyoom command not found

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

Introduction

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

earlyoom: command not found

or when using sudo you get the following error message

sudo: earlyoom: command not found

Solutions to earlyoom: command not found

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

In Ubuntu earlyoom is provided by earlyoom package.

earlyoom is:

Earlyoom is an userspace OOM-killer which can avoid the system to get into unresponsive state caused by swapping, which is most likely to occur when a large swap is present and memory is tight. It checks the amount of available memory and swap periodically, and when both are below a preconfigured value, it kills the largest process.

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

sudo apt-get -y install earlyoom

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

You can also use apt command to install earlyoom.

sudo apt -y install earlyoom

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

sudo aptitude install earlyoom

Summary

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