CentOS 8
Sponsored Link

Perl 5.26 : インストール2020/01/10

 
Perl 5.26 をインストールします。
[1] Perl のバージョンを確認してインストールします。
[root@dlp ~]#
dnf module list perl

CentOS-8 - AppStream
Name   Stream     Profiles             Summary
perl   5.24       common [d], minimal  Practical Extraction and Report Language
perl   5.26 [d]   common [d], minimal  Practical Extraction and Report Language

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# Perl 5.26 を指定してインストール

[root@dlp ~]#
dnf module -y install perl:5.26

Dependencies resolved.
================================================================================
 Package                        Arch     Version              Repository   Size
================================================================================
Upgrading:
 perl                           x86_64   4:5.26.3-416.el8     AppStream    72 k
     replacing  perl-core.x86_64 5.24.4-398.module_el8.0.0+50+c3b345cd
 perl-Archive-Zip               noarch   1.60-3.el8           AppStream   108 k
 perl-Attribute-Handlers        noarch   0.99-416.el8         AppStream    88 k
 perl-B-Debug                   noarch   1.26-2.el8           AppStream    26 k
 perl-CPAN                      noarch   2.18-397.el8         AppStream   554 k
 perl-Compress-Raw-Bzip2        x86_64   2.081-1.el8          AppStream    40 k
.....
.....

[root@dlp ~]#
perl -v


This is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi
(with 51 registered patches, see perl -V for more detail)

Copyright 1987-2018, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

# テストスクリプトを作成して動作確認

[root@dlp ~]#
echo 'print "$^V\n";' > perl_test.pl

[root@dlp ~]#
perl perl_test.pl

v5.26.3
関連コンテンツ