How To Install libguestfs on Rocky Linux 8

In this tutorial we learn how to install libguestfs on Rocky Linux 8. libguestfs is Access and modify virtual machine disk images

Introduction

In this tutorial we learn how to install libguestfs on Rocky Linux 8.

What is libguestfs

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 schemes, qcow, qcow2, vmdk. Libguestfs for Red Hat Enterprise 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-v2v convert virtual machines to run on KVM (V2V) virt-p2v-maker convert physical machines to run on KVM (P2V) virt-dib safe and secure diskimage-builder replacement 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 python3-libguestfs Python 3 bindings ruby-libguestfs Ruby bindings

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

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

sudo dnf -y install libguestfs

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

sudo yum -y install libguestfs

How To Uninstall libguestfs on Rocky Linux 8

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

sudo dnf remove libguestfs

libguestfs Package Contents on Rocky Linux 8

/usr/bin/libguestfs-test-tool
/usr/lib/.build-id
/usr/lib/.build-id/41
/usr/lib/.build-id/41/d6498c22f31ac7a960660df41d1a6156ff94e9
/usr/lib/.build-id/65
/usr/lib/.build-id/65/085a015d5ac4fca67577d80cce33f7a8d7bc80
/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.507.0
/usr/share/doc/libguestfs
/usr/share/doc/libguestfs/COPYING
/usr/share/doc/libguestfs/README
/usr/share/locale/cs/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/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/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 on Rocky Linux 8 using yum and dnf.