How To Install rubygem-POpen4 on Fedora 36

In this tutorial we learn how to install rubygem-POpen4 in Fedora 36. rubygem-POpen4 is Open4 cross-platform

Introduction

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

What is rubygem-POpen4

POpen4 provides the Rubyist a single API across platforms for executing a command in a child process with handles on stdout, stderr, stdin streams as well as access to the process ID and exit status. It does very little other than to provide an easy way to use either Ara Howard’s Open4 library or the win32-popen3 library by Park Heesob and Daniel Berger depending on your platform and without having to code around the slight differences in their APIs.

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

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

sudo dnf -y install rubygem-POpen4

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

sudo yum -y install rubygem-POpen4

How To Uninstall rubygem-POpen4 on Fedora 36

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

sudo dnf remove rubygem-POpen4

rubygem-POpen4 Package Contents on Fedora 36

/usr/share/gems/cache/POpen4-0.1.4.gem
/usr/share/gems/gems/POpen4-0.1.4
/usr/share/gems/gems/POpen4-0.1.4/LICENSE
/usr/share/gems/gems/POpen4-0.1.4/lib
/usr/share/gems/gems/POpen4-0.1.4/lib/popen4.rb
/usr/share/gems/specifications/POpen4-0.1.4.gemspec

References

Summary

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