How To Install ruby-libguestfs on Rocky Linux 8

In this tutorial we learn how to install ruby-libguestfs on Rocky Linux 8. ruby-libguestfs is Ruby bindings for libguestfs

Introduction

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

What is ruby-libguestfs

ruby-libguestfs contains Ruby bindings for libguestfs.

We can use yum or dnf to install ruby-libguestfs on Rocky Linux 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 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 ruby-libguestfs using dnf by running the following command:

sudo dnf -y install ruby-libguestfs

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

sudo yum -y install ruby-libguestfs

How To Uninstall ruby-libguestfs on Rocky Linux 8

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

sudo dnf remove ruby-libguestfs

ruby-libguestfs Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/ee50ecb8bcde06d295f6cd6f2519bd9b241226
/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 Rocky Linux 8 using yum and dnf.