oomd command not found

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

Introduction

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

oomd: command not found

or when using sudo you get the following error message

sudo: oomd: command not found

Solutions to oomd: command not found

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

In Ubuntu oomd is provided by oomd package.

oomd is:

oomd leverages PSI and cgroupv2 to monitor a system holistically. oomd then takes corrective action in userspace before an OOM occurs in kernel space. Corrective action is configured via a flexible plugin system, in which custom code can be written. By default, this involves killing offending processes. This enables an unparalleled level of flexibility where each workload can have custom protection rules. Furthermore, time spent livedlocked in kernelspace is minimized.

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

sudo apt-get -y install oomd

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

You can also use apt command to install oomd.

sudo apt -y install oomd

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

sudo aptitude install oomd

Summary

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