How To Install python3-lxc on Rocky Linux 8

In this tutorial we learn how to install python3-lxc on Rocky Linux 8. python3-lxc is Python binding for LXC

Introduction

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

What is python3-lxc

Linux Resource Containers provide process and resource isolation without the overhead of full virtualization. The python3-lxc package contains the Python3 binding for LXC.

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

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

sudo dnf -y install python3-lxc

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

sudo yum -y install python3-lxc

How To Uninstall python3-lxc on Rocky Linux 8

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

sudo dnf remove python3-lxc

python3-lxc Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/22bcb1eebcaea53d3a63d5133153705b094d63
/usr/lib64/python3.6/site-packages/_lxc.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/lxc
/usr/lib64/python3.6/site-packages/lxc/__init__.py
/usr/lib64/python3.6/site-packages/lxc/__pycache__
/usr/lib64/python3.6/site-packages/lxc/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/lxc/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/python3_lxc-3.0.4-py3.6.egg-info
/usr/lib64/python3.6/site-packages/python3_lxc-3.0.4-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/python3_lxc-3.0.4-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/python3_lxc-3.0.4-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/python3_lxc-3.0.4-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-lxc
/usr/share/doc/python3-lxc/README.md
/usr/share/doc/python3-lxc/examples
/usr/share/doc/python3-lxc/examples/api_test.py
/usr/share/doc/python3-lxc/examples/pyconsole-vte.py
/usr/share/doc/python3-lxc/examples/pyconsole.py
/usr/share/licenses/python3-lxc
/usr/share/licenses/python3-lxc/COPYING

References

Summary

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