How To Install perl-threads-shared.x86_64 on Amazon Linux 2

In this tutorial we learn how to install perl-threads-shared.x86_64 in Amazon Linux 2. perl-threads-shared.x86_64 is Perl extension for sharing data structures between threads

Introduction

In this tutorial we learn how to install perl-threads-shared.x86_64 on Amazon Linux 2.

What is perl-threads-shared.x86_64

By default, variables are private to each thread, and each newly created thread gets a private copy of each existing variable. This module allows you to share variables across different threads (and pseudo-forks on Win32). It is used together with the threads module.

We can use yum to install perl-threads-shared.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-threads-shared.x86_64.

Install perl-threads-shared.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-threads-shared.x86_64 using yum by running the following command:

sudo yum -y install perl-threads-shared.x86_64

How To Uninstall perl-threads-shared.x86_64 on Amazon Linux 2

To uninstall only the perl-threads-shared.x86_64 package we can use the following command:

sudo yum remove perl-threads-shared.x86_64

perl-threads-shared.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/perl5/vendor_perl/auto/threads
/usr/lib64/perl5/vendor_perl/auto/threads/shared
/usr/lib64/perl5/vendor_perl/auto/threads/shared/shared.so
/usr/lib64/perl5/vendor_perl/threads
/usr/lib64/perl5/vendor_perl/threads/shared.pm
/usr/share/doc/perl-threads-shared-1.43
/usr/share/doc/perl-threads-shared-1.43/Changes
/usr/share/doc/perl-threads-shared-1.43/README
/usr/share/man/man3/threads::shared.3pm.gz

References

Summary

In this tutorial we learn how to install perl-threads-shared.x86_64 on Amazon Linux 2 using yum.