How To Install lxc-libs on Rocky Linux 8

In this tutorial we learn how to install lxc-libs on Rocky Linux 8. lxc-libs is Runtime library files for lxc

Introduction

In this tutorial we learn how to install lxc-libs on Rocky Linux 8.

What is lxc-libs

Linux Resource Containers provide process and resource isolation without the overhead of full virtualization. The lxc-libs package contains libraries for running lxc applications.

We can use yum or dnf to install lxc-libs on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lxc-libs.

Install lxc-libs on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install lxc-libs using dnf by running the following command:

sudo dnf -y install lxc-libs

Install lxc-libs on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install lxc-libs using yum by running the following command:

sudo yum -y install lxc-libs

How To Uninstall lxc-libs on Rocky Linux 8

To uninstall only the lxc-libs package we can use the following command:

sudo dnf remove lxc-libs

lxc-libs Package Contents on Rocky Linux 8

/etc/lxc
/etc/lxc/default.conf
/etc/sysconfig/lxc
/usr/bin/lxc-autostart
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/260eea41da60d2cb87bc0e490210f592e53dda
/usr/lib/.build-id/57
/usr/lib/.build-id/57/f4bb945baf704aa2ba67e54bd155abcc822616
/usr/lib/.build-id/78
/usr/lib/.build-id/78/8a4f8186b2e1a480f3049462543fdcebdb74a2
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/9236dab82a0d7547ed56198a4a8f4a2a743268
/usr/lib/.build-id/d9/4111f45456a7a2293a15f6da33e5184a91cc79
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/4af98f469c6be24d6364347e70867f5143f174
/usr/lib/systemd/system/lxc-net.service
/usr/lib/systemd/system/lxc.service
/usr/lib/systemd/system/[email protected]
/usr/lib64/liblxc.so.1
/usr/lib64/liblxc.so.1.4.0
/usr/lib64/lxc
/usr/lib64/lxc/rootfs
/usr/lib64/lxc/rootfs/README
/usr/libexec/lxc
/usr/libexec/lxc/hooks
/usr/libexec/lxc/hooks/unmount-namespace
/usr/libexec/lxc/lxc-apparmor-load
/usr/libexec/lxc/lxc-containers
/usr/libexec/lxc/lxc-monitord
/usr/libexec/lxc/lxc-net
/usr/libexec/lxc/lxc-user-nic
/usr/sbin/init.lxc
/usr/share/doc/lxc
/usr/share/doc/lxc/AUTHORS
/usr/share/doc/lxc/README
/usr/share/licenses/lxc-libs
/usr/share/licenses/lxc-libs/COPYING
/usr/share/lxc
/usr/share/lxc/config
/usr/share/lxc/hooks
/usr/share/lxc/hooks/clonehostname
/usr/share/lxc/hooks/dhclient
/usr/share/lxc/hooks/dhclient-script
/usr/share/lxc/hooks/mountecryptfsroot
/usr/share/lxc/hooks/nvidia
/usr/share/lxc/hooks/squid-deb-proxy-client
/usr/share/lxc/hooks/ubuntu-cloud-prep
/usr/share/lxc/lxc-patch.py
/usr/share/lxc/selinux
/usr/share/lxc/selinux/lxc.if
/usr/share/lxc/selinux/lxc.te
/usr/share/lxc/templates
/usr/share/man/ja/man1/lxc-autostart.1.gz
/usr/share/man/ja/man1/lxc-user-nic.1.gz
/usr/share/man/ja/man5/lxc-usernet.5.gz
/usr/share/man/ja/man5/lxc.conf.5.gz
/usr/share/man/ja/man5/lxc.container.conf.5.gz
/usr/share/man/ja/man5/lxc.system.conf.5.gz
/usr/share/man/ja/man7/lxc.7.gz
/usr/share/man/ko/man1/lxc-autostart.1.gz
/usr/share/man/ko/man1/lxc-user-nic.1.gz
/usr/share/man/ko/man5/lxc-usernet.5.gz
/usr/share/man/ko/man5/lxc.conf.5.gz
/usr/share/man/ko/man5/lxc.container.conf.5.gz
/usr/share/man/ko/man5/lxc.system.conf.5.gz
/usr/share/man/ko/man7/lxc.7.gz
/usr/share/man/man1/lxc-autostart.1.gz
/usr/share/man/man1/lxc-user-nic.1.gz
/usr/share/man/man5/lxc-usernet.5.gz
/usr/share/man/man5/lxc.conf.5.gz
/usr/share/man/man5/lxc.container.conf.5.gz
/usr/share/man/man5/lxc.system.conf.5.gz
/usr/share/man/man7/lxc.7.gz
/var/cache/lxc
/var/lib/lxc

References

Summary

In this tutorial we learn how to install lxc-libs on Rocky Linux 8 using yum and dnf.