CentOS8にDNFでPerl5.30のインストール

CentOS8にDNFでPerl5.30のインストール

2020-12-223 min read

目次

  1. 概要
  2. modularityについて
  3. perl530インストール
  4. dnf-module-でハマったところ
  5. その他

概要

CentOS8 or CentOS Streamに Perl5.30をDNFでインストールする際の記録です。

検証は centos8.3.2011 の dockerイメージを用いて実施しました。

Modularityについて

CentOS8 では Modularityという仕組みが導入されています。 これはアプリケーションのライフサイクルをある程度独立させるための仕組みです。

これについては、こちら (RHEL 8/Fedora 28で導入されたModularity)で分かりやすく解説されています。

Perlの場合は dnf module list perl とコマンドを打つと利用できるパッケージが表示されます。

$ dnf module list perl
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:02:09 ago on Tue Dec 22 09:06:09 2020.
CentOS Linux 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      
perl       5.30           common [d], minimal       Practical Extraction and Report Language 
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

デフォルトでは5.26が設定されています。

Perl5.30インストール

Perl5.30をインストールする場合は以下のコマンドを入力します。

$ dnf module install perl:5.30

これを実行すると依存するRPMもインストールされます。

$ which perl
/usr/bin/perl
$ perl --version
This is perl 5, version 30, subversion 1 (v5.30.1) built for x86_64-linux-thread-multi
(with 66 registered patches, see perl -V for more detail)

Copyright 1987-2019, 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.

再度 module を確認。5.30がenableとなっています。

$ dnf module list perl
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       
perl        5.30 [e]        common [d] [i], minimal        Practical Extraction and Report Language       
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

dnf module でハマったところ

5.30に上げた状態、また5.30を上げた後に削除した状態で5.26や5.24に切り替えようとしたところ競合が発生し切り替えができなくなりました。 また、5.30に変更した場合依存関係でインストールできなくなるパッケージなども存在しました。

その他

Perl5.26の場合

$ dnf module install perl:5.26

Perl5.24の場合

$ dnf module install perl:5.24
Tags
javascript(109)
linux(54)
node.js(53)
amazon%20aws(47)
typescript(44)
%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0(36)
%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86(30)
html5(29)
php(24)
centos(24)
python(22)
%E7%AB%B6%E6%8A%80%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0(21)
mac(21)
mysql(20)
canvas(19)
opencv(17)
%E9%9B%91%E8%AB%87(16)
docker(16)
wordpress(15)
atcoder(14)
apache(12)
%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92(12)
%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9(12)
amazon%20s3(12)
red%20hat(12)
prisma(12)
ubuntu(11)
github(10)
git(10)
vue.js(10)
%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86100%E6%9C%AC%E3%83%8E%E3%83%83%E3%82%AF(10)
mariadb(10)
react(9)
aws%20cdk(9)
css3(8)
%E5%8F%AF%E8%A6%96%E5%8C%96(8)
%E5%B0%8F%E3%83%8D%E3%82%BF(8)
nestjs(8)
amazon%20lightsail(7)
next.js(7)
%E3%83%96%E3%83%AD%E3%82%B0(6)
cms(6)
oracle(6)
perl(6)
gitlab(6)
iam(5)
amazon%20ec2(5)
%E8%B3%87%E6%A0%BC%E8%A9%A6%E9%A8%93(5)
aws%20amplify(5)
curl(4)
Author
githubzennqiita
ただの備忘録です。

※外部送信に関する公表事項