How To Install rubygem-serialport on Fedora 36

In this tutorial we learn how to install rubygem-serialport in Fedora 36. rubygem-serialport is Ruby library that provides a class for using RS-232 serial ports

Introduction

In this tutorial we learn how to install rubygem-serialport on Fedora 36.

What is rubygem-serialport

Ruby SerialPort is a class for using RS232 serial ports. It also contains low-level function to check current state of signals on the line.

We can use yum or dnf to install rubygem-serialport on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-serialport.

Install rubygem-serialport on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rubygem-serialport

Install rubygem-serialport on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rubygem-serialport

How To Uninstall rubygem-serialport on Fedora 36

To uninstall only the rubygem-serialport package we can use the following command:

sudo dnf remove rubygem-serialport

rubygem-serialport Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/c185b82848c78b393fce87361781a440f79b7f
/usr/lib64/gems/ruby/serialport-1.3.2
/usr/lib64/gems/ruby/serialport-1.3.2/gem.build_complete
/usr/lib64/gems/ruby/serialport-1.3.2/serialport.so
/usr/share/gems/gems/serialport-1.3.2
/usr/share/gems/gems/serialport-1.3.2/LICENSE
/usr/share/gems/gems/serialport-1.3.2/README.md
/usr/share/gems/gems/serialport-1.3.2/lib
/usr/share/gems/gems/serialport-1.3.2/lib/serialport
/usr/share/gems/gems/serialport-1.3.2/lib/serialport.rb
/usr/share/gems/gems/serialport-1.3.2/lib/serialport/version.rb
/usr/share/gems/specifications/serialport-1.3.2.gemspec

References

Summary

In this tutorial we learn how to install rubygem-serialport on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).