How To Install lxcfs on AlmaLinux 8
Introduction
In this tutorial we learn how to install lxcfs
on AlmaLinux 8.
What is lxcfs
LXCFS is a simple userspace filesystem designed to work around some current limitations of the Linux kernel. Specifically, it’s providing two main things - A set of files which can be bind-mounted over their /proc originals to provide CGroup-aware values. - A cgroupfs-like tree which is container aware. The code is pretty simple, written in C using libfuse. The main driver for this work was the need to run systemd based containers as a regular unprivileged user while still allowing systemd inside the container to interact with cgroups. Now with the introduction of the cgroup namespace in the Linux kernel, that part is no longer necessary on recent kernels and focus is now on making containers feel more like a real independent system through the proc masking feature.
We can use yum
or dnf
to install lxcfs
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lxcfs.
Install lxcfs on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install lxcfs
using dnf
by running the following command:
sudo dnf -y install lxcfs
Install lxcfs on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install lxcfs
using yum
by running the following command:
sudo yum -y install lxcfs
How To Uninstall lxcfs on AlmaLinux 8
To uninstall only the lxcfs
package we can use the following command:
sudo dnf remove lxcfs
References
Summary
In this tutorial we learn how to install lxcfs
on AlmaLinux 8 using yum and dnf.