forked from cheat/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpanm
35 lines (24 loc) · 734 Bytes
/
cpanm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
tags: [ perl ]
---
see https://github.com/miyagawa/cpanminus
# install Some::Module
cpanm <Some::Module>
# install from CPAN distribution path, like AUTHOR/Some-Module-1.00.tar.gz
cpanm <cpan-repo-path>
# install from URL
cpanm <URL-to-distro-file>
# install from a local file
cpanm <path-to-distro-file>
# Configure interactively
cpanm --interactive <Some::Module>
# install from local directory
cpanm .
# install all the deps for the current directory
cpanm --installdeps .
# install Some::Module and all non-core deps into extlib
cpanm -L extlib <Some::Module>
# use the fast-syncing mirror
cpanm --mirror <mirror-url> <Some::Module>
# use only the HTTPS mirror
cpanm --from https://some.mirror.host/ <Some::Module>