How To Install libvirt-python.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libvirt-python.x86_64 in Amazon Linux 2. libvirt-python.x86_64 is The libvirt virtualization API python2 binding

Introduction

In this tutorial we learn how to install libvirt-python.x86_64 on Amazon Linux 2.

What is libvirt-python.x86_64

The libvirt-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the libvirt library to use the virtualization capabilities of recent versions of Linux (and other OSes).

We can use yum to install libvirt-python.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libvirt-python.x86_64.

Install libvirt-python.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libvirt-python.x86_64 using yum by running the following command:

sudo yum -y install libvirt-python.x86_64

How To Uninstall libvirt-python.x86_64 on Amazon Linux 2

To uninstall only the libvirt-python.x86_64 package we can use the following command:

sudo yum remove libvirt-python.x86_64

libvirt-python.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/libvirt.py
/usr/lib64/python2.7/site-packages/libvirt.pyc
/usr/lib64/python2.7/site-packages/libvirt.pyo
/usr/lib64/python2.7/site-packages/libvirt_lxc.py
/usr/lib64/python2.7/site-packages/libvirt_lxc.pyc
/usr/lib64/python2.7/site-packages/libvirt_lxc.pyo
/usr/lib64/python2.7/site-packages/libvirt_python-3.9.0-py2.7.egg-info
/usr/lib64/python2.7/site-packages/libvirt_qemu.py
/usr/lib64/python2.7/site-packages/libvirt_qemu.pyc
/usr/lib64/python2.7/site-packages/libvirt_qemu.pyo
/usr/lib64/python2.7/site-packages/libvirtmod.so
/usr/lib64/python2.7/site-packages/libvirtmod_lxc.so
/usr/lib64/python2.7/site-packages/libvirtmod_qemu.so
/usr/share/doc/libvirt-python-3.9.0
/usr/share/doc/libvirt-python-3.9.0/AUTHORS
/usr/share/doc/libvirt-python-3.9.0/COPYING
/usr/share/doc/libvirt-python-3.9.0/COPYING.LESSER
/usr/share/doc/libvirt-python-3.9.0/ChangeLog
/usr/share/doc/libvirt-python-3.9.0/NEWS
/usr/share/doc/libvirt-python-3.9.0/README
/usr/share/doc/libvirt-python-3.9.0/examples
/usr/share/doc/libvirt-python-3.9.0/examples/consolecallback.py
/usr/share/doc/libvirt-python-3.9.0/examples/dominfo.py
/usr/share/doc/libvirt-python-3.9.0/examples/domipaddrs.py
/usr/share/doc/libvirt-python-3.9.0/examples/domrestore.py
/usr/share/doc/libvirt-python-3.9.0/examples/domsave.py
/usr/share/doc/libvirt-python-3.9.0/examples/domstart.py
/usr/share/doc/libvirt-python-3.9.0/examples/esxlist.py
/usr/share/doc/libvirt-python-3.9.0/examples/event-test.py
/usr/share/doc/libvirt-python-3.9.0/examples/guest-vcpus
/usr/share/doc/libvirt-python-3.9.0/examples/guest-vcpus/guest-vcpu-daemon.py
/usr/share/doc/libvirt-python-3.9.0/examples/guest-vcpus/guest-vcpu.py
/usr/share/doc/libvirt-python-3.9.0/examples/nodestats.py
/usr/share/doc/libvirt-python-3.9.0/examples/topology.py

References

Summary

In this tutorial we learn how to install libvirt-python.x86_64 on Amazon Linux 2 using yum.