How To Install perl-IO-String on Rocky Linux 8

In this tutorial we learn how to install perl-IO-String on Rocky Linux 8. perl-IO-String is Emulate file interface for in-core strings

Introduction

In this tutorial we learn how to install perl-IO-String on Rocky Linux 8.

What is perl-IO-String

The “IO strings. An “IO makes it possible to use the normal file operations for reading or writing data, as well as for seeking to various locations of the string. This is useful when you want to use a library module that only provides an interface to file handles on data that you have in a string variable. Note that perl-5.8 and better has built-in support for “in memory” files, which are set up by passing a reference instead of a filename to the open() call. The reason for using this module is that it makes the code backwards compatible with older versions of Perl.

We can use yum or dnf to install perl-IO-String on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-IO-String.

Install perl-IO-String 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 perl-IO-String using dnf by running the following command:

sudo dnf -y install perl-IO-String

Install perl-IO-String 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 perl-IO-String using yum by running the following command:

sudo yum -y install perl-IO-String

How To Uninstall perl-IO-String on Rocky Linux 8

To uninstall only the perl-IO-String package we can use the following command:

sudo dnf remove perl-IO-String

perl-IO-String Package Contents on Rocky Linux 8

/usr/share/doc/perl-IO-String
/usr/share/doc/perl-IO-String/Changes
/usr/share/doc/perl-IO-String/README
/usr/share/man/man3/IO::String.3pm.gz
/usr/share/perl5/vendor_perl/IO
/usr/share/perl5/vendor_perl/IO/String.pm

References

Summary

In this tutorial we learn how to install perl-IO-String on Rocky Linux 8 using yum and dnf.