How To Install perl-threads.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install perl-threads.x86_64 on Amazon Linux 2.
What is perl-threads.x86_64
Since Perl 5.8, thread programming has been available using a model called interpreter threads which provides a new Perl interpreter for each thread, and, by default, results in no data or state information being shared between threads. (Prior to Perl 5.8, 5005threads was available through the “Thread.pm” API. This threading model has been deprecated, and was removed as of Perl 5.10.0.)
We can use yum to install perl-threads.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.x86_64.
Install perl-threads.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.x86_64 using yum by running the following command:
sudo yum -y install perl-threads.x86_64
How To Uninstall perl-threads.x86_64 on Amazon Linux 2
To uninstall only the perl-threads.x86_64 package we can use the following command:
sudo yum remove perl-threads.x86_64
perl-threads.x86_64 Package Contents on Amazon Linux 2
/usr/lib64/perl5/vendor_perl/auto/threads
/usr/lib64/perl5/vendor_perl/auto/threads/threads.so
/usr/lib64/perl5/vendor_perl/threads.pm
/usr/share/doc/perl-threads-1.87
/usr/share/doc/perl-threads-1.87/Changes
/usr/share/doc/perl-threads-1.87/README
/usr/share/man/man3/threads.3pm.gz
References
Summary
In this tutorial we learn how to install perl-threads.x86_64 on Amazon Linux 2 using yum.