How To Install libguestfs.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libguestfs.x86_64 in Amazon Linux 2. libguestfs.x86_64 is Access and modify virtual machine disk images

Introduction

In this tutorial we learn how to install libguestfs.x86_64 on Amazon Linux 2.

What is libguestfs.x86_64

Libguestfs is a library for accessing and modifying virtual machine disk images. http It can be used to make batch configuration changes to guests, get disk used/free statistics (virt-df), migrate between hypervisors (virt-p2v, virt-v2v), perform backups and guest clones, change registry/UUID/hostname info, build guests from scratch (virt-builder) and much more. Libguestfs uses Linux kernel and qemu code, and can access any type of guest filesystem that Linux and qemu can, including but not limited to disk partition schemes, qcow, qcow2, vmdk. Libguestfs for Amazon Linux is split into several subpackages. The basic subpackages are libguestfs C library libguestfs-tools virt-* tools, guestfish and guestmount (FUSE) libguestfs-tools-c only the subset of virt tools written in C (for reduced dependencies) virt-dib safe and secure diskimage-builder replacement virt-v2v convert virtual machines to run on KVM (V2V) virt-p2v-maker convert physical machines to run on KVM (P2V) For enhanced features, install libguestfs-gfs2 adds Global Filesystem (GFS2) support libguestfs-inspect-icons adds support for inspecting guest icons libguestfs-rescue enhances virt-rescue shell with more tools libguestfs-rsync rsync to/from guest filesystems libguestfs-xfs adds XFS support For developers libguestfs-devel C/C++ header files and library libguestfs-benchmarking Benchmarking utilities Language bindings libguestfs-gobject-devel GObject bindings and GObject Introspection libguestfs-java-devel Java bindings lua-guestfs Lua bindings ocaml-libguestfs-devel OCaml bindings perl-Sys-Guestfs Perl bindings python-libguestfs Python bindings ruby-libguestfs Ruby bindings

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

Install libguestfs.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 libguestfs.x86_64 using yum by running the following command:

sudo yum -y install libguestfs.x86_64

How To Uninstall libguestfs.x86_64 on Amazon Linux 2

To uninstall only the libguestfs.x86_64 package we can use the following command:

sudo yum remove libguestfs.x86_64

libguestfs.x86_64 Package Contents on Amazon Linux 2

/usr/bin/libguestfs-test-tool
/usr/lib64/guestfs
/usr/lib64/guestfs/supermin.d
/usr/lib64/guestfs/supermin.d/base.tar.gz
/usr/lib64/guestfs/supermin.d/daemon.tar.gz
/usr/lib64/guestfs/supermin.d/excludefiles
/usr/lib64/guestfs/supermin.d/hostfiles
/usr/lib64/guestfs/supermin.d/init.tar.gz
/usr/lib64/guestfs/supermin.d/packages
/usr/lib64/guestfs/supermin.d/udev-rules.tar.gz
/usr/lib64/libguestfs.so.0
/usr/lib64/libguestfs.so.0.471.0
/usr/share/doc/libguestfs-1.36.10
/usr/share/doc/libguestfs-1.36.10/COPYING
/usr/share/doc/libguestfs-1.36.10/README
/usr/share/locale/ca/LC_MESSAGES/libguestfs.mo
/usr/share/locale/de/LC_MESSAGES/libguestfs.mo
/usr/share/locale/en_GB/LC_MESSAGES/libguestfs.mo
/usr/share/locale/es/LC_MESSAGES/libguestfs.mo
/usr/share/locale/eu/LC_MESSAGES/libguestfs.mo
/usr/share/locale/fr/LC_MESSAGES/libguestfs.mo
/usr/share/locale/gu/LC_MESSAGES/libguestfs.mo
/usr/share/locale/hi/LC_MESSAGES/libguestfs.mo
/usr/share/locale/ja/LC_MESSAGES/libguestfs.mo
/usr/share/locale/kn/LC_MESSAGES/libguestfs.mo
/usr/share/locale/ml/LC_MESSAGES/libguestfs.mo
/usr/share/locale/mr/LC_MESSAGES/libguestfs.mo
/usr/share/locale/nl/LC_MESSAGES/libguestfs.mo
/usr/share/locale/or/LC_MESSAGES/libguestfs.mo
/usr/share/locale/pa/LC_MESSAGES/libguestfs.mo
/usr/share/locale/pl/LC_MESSAGES/libguestfs.mo
/usr/share/locale/pt_BR/LC_MESSAGES/libguestfs.mo
/usr/share/locale/ru/LC_MESSAGES/libguestfs.mo
/usr/share/locale/ta/LC_MESSAGES/libguestfs.mo
/usr/share/locale/te/LC_MESSAGES/libguestfs.mo
/usr/share/locale/tg/LC_MESSAGES/libguestfs.mo
/usr/share/locale/uk/LC_MESSAGES/libguestfs.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libguestfs.mo
/usr/share/locale/zh_TW/LC_MESSAGES/libguestfs.mo
/usr/share/man/man1/guestfs-faq.1.gz
/usr/share/man/man1/guestfs-performance.1.gz
/usr/share/man/man1/guestfs-recipes.1.gz
/usr/share/man/man1/guestfs-release-notes.1.gz
/usr/share/man/man1/guestfs-security.1.gz
/usr/share/man/man1/libguestfs-test-tool.1.gz

References

Summary

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