How To Install systemd-oomd-defaults on Fedora 36
Introduction
In this tutorial we learn how to install systemd-oomd-defaults
on Fedora 36.
What is systemd-oomd-defaults
A set of drop-in files for systemd units to enable action from systemd-oomd, a userspace out-of-memory (OOM) killer.
We can use yum
or dnf
to install systemd-oomd-defaults
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install systemd-oomd-defaults.
Install systemd-oomd-defaults on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install systemd-oomd-defaults
using dnf
by running the following command:
sudo dnf -y install systemd-oomd-defaults
Install systemd-oomd-defaults on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install systemd-oomd-defaults
using yum
by running the following command:
sudo yum -y install systemd-oomd-defaults
How To Uninstall systemd-oomd-defaults on Fedora 36
To uninstall only the systemd-oomd-defaults
package we can use the following command:
sudo dnf remove systemd-oomd-defaults
systemd-oomd-defaults Package Contents on Fedora 36
/usr/lib/systemd/oomd.conf.d
/usr/lib/systemd/oomd.conf.d/10-oomd-defaults.conf
/usr/lib/systemd/system/-.slice.d/10-oomd-root-slice-defaults.conf
/usr/lib/systemd/system/[email protected]/10-oomd-user-service-defaults.conf
References
Summary
In this tutorial we learn how to install systemd-oomd-defaults
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).