CentOS 8
Sponsored Link

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

 
Perl 5.24 をインストールします。
[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.24 を指定してインストール

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

Dependencies resolved.
================================================================================
 Package           Arch   Version                               Repository
                                                                           Size
================================================================================
Installing group/module packages:
 perl-core         x86_64 5.24.4-398.module_el8.0.0+50+c3b345cd AppStream  68 k
Installing dependencies:
 libdb-devel       x86_64 5.3.28-36.el8                         AppStream  46 k
 perl              x86_64 4:5.24.4-398.module_el8.0.0+50+c3b345cd
                                                                AppStream 6.1 M
 perl-Algorithm-Diff
                   noarch 1.1903-9.module_el8.0.0+50+c3b345cd   AppStream  52 k
.....
.....

[root@dlp ~]#
perl -v


This is perl 5, version 24, subversion 4 (v5.24.4) built for x86_64-linux-thread-multi
(with 85 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.24.4
関連コンテンツ