How To Install ruby-libguestfs on CentOS 8

ruby-libguestfs is Ruby bindings for libguestfs

Introduction

In this tutorial we learn how to install ruby-libguestfs on CentOS 8.

What is ruby-libguestfs

ruby-libguestfs contains Ruby bindings for libguestfs.

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

Install ruby-libguestfs on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install ruby-libguestfs using dnf by running the following command:

sudo dnf -y install ruby-libguestfs

Install ruby-libguestfs on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install ruby-libguestfs using yum by running the following command:

sudo yum -y install ruby-libguestfs

How To Uninstall ruby-libguestfs on CentOS 8

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

sudo dnf remove ruby-libguestfs

ruby-libguestfs Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/36
/usr/lib/.build-id/36/e7adaa9a09a0d7f6fa898d4fb70d72408596a2
/usr/lib64/ruby/vendor_ruby/_guestfs.so
/usr/share/doc/ruby-libguestfs
/usr/share/doc/ruby-libguestfs/api
/usr/share/doc/ruby-libguestfs/api/Guestfs
/usr/share/doc/ruby-libguestfs/api/Guestfs.html
/usr/share/doc/ruby-libguestfs/api/Guestfs/Error.html
/usr/share/doc/ruby-libguestfs/api/Guestfs/Guestfs.html
/usr/share/doc/ruby-libguestfs/api/README_rdoc.html
/usr/share/doc/ruby-libguestfs/api/created.rid
/usr/share/doc/ruby-libguestfs/api/css
/usr/share/doc/ruby-libguestfs/api/css/fonts.css
/usr/share/doc/ruby-libguestfs/api/css/rdoc.css
/usr/share/doc/ruby-libguestfs/api/fonts
/usr/share/doc/ruby-libguestfs/api/fonts/Lato-Light.ttf
/usr/share/doc/ruby-libguestfs/api/fonts/Lato-LightItalic.ttf
/usr/share/doc/ruby-libguestfs/api/fonts/Lato-Regular.ttf
/usr/share/doc/ruby-libguestfs/api/fonts/Lato-RegularItalic.ttf
/usr/share/doc/ruby-libguestfs/api/fonts/SourceCodePro-Bold.ttf
/usr/share/doc/ruby-libguestfs/api/fonts/SourceCodePro-Regular.ttf
/usr/share/doc/ruby-libguestfs/api/images
/usr/share/doc/ruby-libguestfs/api/images/add.png
/usr/share/doc/ruby-libguestfs/api/images/arrow_up.png
/usr/share/doc/ruby-libguestfs/api/images/brick.png
/usr/share/doc/ruby-libguestfs/api/images/brick_link.png
/usr/share/doc/ruby-libguestfs/api/images/bug.png
/usr/share/doc/ruby-libguestfs/api/images/bullet_black.png
/usr/share/doc/ruby-libguestfs/api/images/bullet_toggle_minus.png
/usr/share/doc/ruby-libguestfs/api/images/bullet_toggle_plus.png
/usr/share/doc/ruby-libguestfs/api/images/date.png
/usr/share/doc/ruby-libguestfs/api/images/delete.png
/usr/share/doc/ruby-libguestfs/api/images/find.png
/usr/share/doc/ruby-libguestfs/api/images/loadingAnimation.gif
/usr/share/doc/ruby-libguestfs/api/images/macFFBgHack.png
/usr/share/doc/ruby-libguestfs/api/images/package.png
/usr/share/doc/ruby-libguestfs/api/images/page_green.png
/usr/share/doc/ruby-libguestfs/api/images/page_white_text.png
/usr/share/doc/ruby-libguestfs/api/images/page_white_width.png
/usr/share/doc/ruby-libguestfs/api/images/plugin.png
/usr/share/doc/ruby-libguestfs/api/images/ruby.png
/usr/share/doc/ruby-libguestfs/api/images/tag_blue.png
/usr/share/doc/ruby-libguestfs/api/images/tag_green.png
/usr/share/doc/ruby-libguestfs/api/images/transparent.png
/usr/share/doc/ruby-libguestfs/api/images/wrench.png
/usr/share/doc/ruby-libguestfs/api/images/wrench_orange.png
/usr/share/doc/ruby-libguestfs/api/images/zoom.png
/usr/share/doc/ruby-libguestfs/api/index.html
/usr/share/doc/ruby-libguestfs/api/js
/usr/share/doc/ruby-libguestfs/api/js/darkfish.js
/usr/share/doc/ruby-libguestfs/api/js/jquery.js
/usr/share/doc/ruby-libguestfs/api/js/navigation.js
/usr/share/doc/ruby-libguestfs/api/js/navigation.js.gz
/usr/share/doc/ruby-libguestfs/api/js/search.js
/usr/share/doc/ruby-libguestfs/api/js/search_index.js
/usr/share/doc/ruby-libguestfs/api/js/search_index.js.gz
/usr/share/doc/ruby-libguestfs/api/js/searcher.js
/usr/share/doc/ruby-libguestfs/api/js/searcher.js.gz
/usr/share/doc/ruby-libguestfs/api/table_of_contents.html
/usr/share/doc/ruby-libguestfs/create_disk.rb
/usr/share/doc/ruby-libguestfs/index.html
/usr/share/doc/ruby-libguestfs/inspect_vm.rb
/usr/share/man/man3/guestfs-ruby.3.gz
/usr/share/ruby/vendor_ruby/guestfs.rb

References

Summary

In this tutorial we learn how to install ruby-libguestfs on CentOS 8 using yum and dnf.