How To Install lxcfs on Fedora 34
Introduction
In this tutorial we learn how to install lxcfs
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install lxcfs.
Install lxcfs on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install lxcfs
using dnf
by running the following command:
sudo dnf -y install lxcfs
Install lxcfs on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the lxcfs
package we can use the following command:
sudo dnf remove lxcfs
lxcfs Package Contents on Fedora 34
/usr/bin/lxcfs
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/01e26e3233f3db64977c9f4a54247e5c64c4ab
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/02cca5d6db7e0e0a259c680b794f3a5805f0ca
/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
/usr/bin/lxcfs
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/488fc1b65e38f120a7565c448dee79e7d56f68
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/f232381ed98ceede9b0a530bde2fd6afcc24c5
/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 34 using yum and dnf.