How To Install libguestfs-tools on CentOS 7
Introduction
In this tutorial we learn how to install libguestfs-tools
on CentOS 7.
What is libguestfs-tools
This package contains miscellaneous system administrator command line tools for virtual machines. Guestfish is the Filesystem Interactive SHell, for accessing and modifying virtual machine disk images from the command line and shell scripts. The guestmount command lets you mount guest filesystems on the host using FUSE and libguestfs. Virt-alignment-scan scans virtual machines looking for partition alignment problems. Virt-builder is a command line tool for rapidly making disk images of popular free operating systems. Virt-cat is a command line tool to display the contents of a file in a virtual machine. Virt-copy-in and virt-copy-out are command line tools for uploading and downloading files and directories to and from virtual machines. Virt-customize is a command line tool for customizing virtual machine disk images. Virt-df is a command line tool to display free space on virtual machine filesystems. Unlike other tools, it doesn’t just display the amount of space allocated to a virtual machine, but can look inside the virtual machine to see how much space is really being used. It is like the df(1) command, but for virtual machines, except that it also works for Windows virtual machines. Virt-diff shows the differences between virtual machines. Virt-edit is a command line tool to edit the contents of a file in a virtual machine. Virt-filesystems is a command line tool to display the filesystems, partitions, block devices, LVs, VGs and PVs found in a disk image or virtual machine. It replaces the deprecated programs virt-list-filesystems and virt-list-partitions with a much more capable tool. Virt-format is a command line tool to erase and make blank disks. Virt-get-kernel extracts a kernel/initrd from a disk image. Virt-inspector examines a virtual machine and tries to determine the version of the OS, the kernel version, what drivers are installed, whether the virtual machine is fully virtualized (FV) or para-virtualized (PV), what applications are installed and more. Virt-log is a command line tool to display the log files from a virtual machine. Virt-ls is a command line tool to list out files in a virtual machine. Virt-make-fs is a command line tool to build a filesystem out of a collection of files or a tarball. Virt-rescue provides a rescue shell for making interactive, unstructured fixes to virtual machines. Virt-resize can resize existing virtual machine disk images. Virt-sparsify makes virtual machine disk images sparse (thin-provisioned). Virt-sysprep lets you reset or unconfigure virtual machines in preparation for cloning them. Virt-tail follows (tails) a log file within a guest, like ’tail -f’. Virt-tar-in and virt-tar-out are archive, backup and upload tools for virtual machines. These replace the deprecated program virt-tar. Virt-win-reg lets you look at and modify the Windows Registry of Windows virtual machines.
We can use yum
or dnf
to install libguestfs-tools
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libguestfs-tools.
Install libguestfs-tools on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install libguestfs-tools
using yum
by running the following command:
Install libguestfs-tools on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install libguestfs-tools
using dnf
by running the following command:
How To Uninstall libguestfs-tools on CentOS 7
To uninstall only the libguestfs-tools
package we can use the following command:
References
Summary
In this tutorial we learn how to install libguestfs-tools
on CentOS 7 using yum
and dnf
.