How To Install python3-lxc on Fedora 36

In this tutorial we learn how to install python3-lxc in Fedora 36. python3-lxc is Python binding for LXC

Introduction

In this tutorial we learn how to install python3-lxc on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-lxc.

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

sudo dnf -y install python3-lxc

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

sudo yum -y install python3-lxc

How To Uninstall python3-lxc on Fedora 36

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

sudo dnf remove python3-lxc

python3-lxc Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/dcea7ef2458b7749f68577f150e0236de4f204
/usr/lib64/python3.10/site-packages/_lxc.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxc
/usr/lib64/python3.10/site-packages/lxc/__init__.py
/usr/lib64/python3.10/site-packages/lxc/__pycache__
/usr/lib64/python3.10/site-packages/lxc/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxc/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/python3_lxc-3.0.4-py3.10.egg-info
/usr/lib64/python3.10/site-packages/python3_lxc-3.0.4-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/python3_lxc-3.0.4-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/python3_lxc-3.0.4-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/python3_lxc-3.0.4-py3.10.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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).