モジュールをyumからインストール

開発環境だとcpanコマンドを使うのが便利ですが、yumリポジトリから入れてみます。

準備はCentOSリポジトリで終わっているので、あとは簡単。

例1: JSONをdagリポジトリから

yum search  perl-JSON --enablerepo=dag
yum install perl-JSON --enablerepo=dag

例2: Path::Classをrpmforgeリポジトリから

yum search  perl-Path-Class --enablerepo=rpmforge
yum install perl-Path-Class --enablerepo=rpmforge

実はどうやるのか分からず悶々としていた箇所なので、思いがけず理解できてラッキーでした。