Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

There's a lot of CPAN distributions in the Arch repositories, but not all of them. How should I handle a situation when I need a dist that is not already in the repos?

Should I use the cpan program then, or is there a better solution?

share|improve this question

2 Answers 2

There are several methods described in the Arch wiki. The easiest version is probably to use perl-cpanplus-dist-arch, which, after installing and running the setup with setupdistarch can install perl modules as pacman packages with cpanp -i Your::Module::Name as described in its documentation.

share|improve this answer

Well, the best solution would probably be to create a distribution package for the CPAN package you want, contribute it to the Arch team, and maintain it (of course, the best solution for you would be for someone else to do this, :-) ). This way, everyone would benefit from it.

In reality, you're probably fine to just use CPAN directly to install it:

perl -MCPAN -e "install Package"

of course, the drawback here is that you don't get automatic updates when the upstream package changes. You'll need to keep track of the CPAN package yourself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.