How To Install lxcfs on Fedora 36

In this tutorial we learn how to install lxcfs in Fedora 36. lxcfs is FUSE based filesystem for LXC

Introduction

In this tutorial we learn how to install lxcfs on Fedora 36.

What is lxcfs

LXCFS is a small FUSE filesystem written with the intention of making Linux containers feel more like a virtual machine. It started as a side-project of LXC but is usable by any runtime. LXCFS will take care that the information provided by crucial files in procfs are container aware such that the values displayed (e.g. in /proc/uptime) really reflect how long the container is running and not how long the host is running.

We can use yum or dnf to install lxcfs on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install lxcfs.

Install lxcfs 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 lxcfs using dnf by running the following command:

sudo dnf -y install lxcfs

Install lxcfs 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 lxcfs using yum by running the following command:

sudo yum -y install lxcfs

How To Uninstall lxcfs on Fedora 36

To uninstall only the lxcfs package we can use the following command:

sudo dnf remove lxcfs

lxcfs Package Contents on Fedora 36

/usr/bin/lxcfs
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/ed2dd87786b5c589cabebf8c32132d4265d18f
/usr/lib/.build-id/98
/usr/lib/.build-id/98/b6d0c660a89993deeceb05b02fceb3a76ad21b
/usr/lib/systemd/system/lxcfs.service
/usr/lib64/lxcfs
/usr/lib64/lxcfs/liblxcfs.so
/usr/share/doc/lxcfs
/usr/share/doc/lxcfs/AUTHORS
/usr/share/licenses/lxcfs
/usr/share/licenses/lxcfs/COPYING
/usr/share/lxc/config/common.conf.d/00-lxcfs.conf
/usr/share/lxcfs
/usr/share/lxcfs/lxc.mount.hook
/usr/share/lxcfs/lxc.reboot.hook
/usr/share/man/man1/lxcfs.1.gz
/var/lib/lxcfs

References

Summary

In this tutorial we learn how to install lxcfs on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).