Skip to content

Instantly share code, notes, and snippets.

@skaji
Last active May 13, 2017 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skaji/1810c9f6a4409a903df45c520ae10a3f to your computer and use it in GitHub Desktop.
Save skaji/1810c9f6a4409a903df45c520ae10a3f to your computer and use it in GitHub Desktop.

If you want to use cpanfile.snapshot to resolve CPAN modules, then try:

curl -sSL https://git.io/cpm | perl - install --resolver snapshot
  • note1: this is the default behavior if there is cpanfile.snapshot in the current directory
  • note2: to load cpanfile.snpahost, you should have Carton::Snapshot. So if you don't have it, you should install it first. cf perl-carton/carton#223

On the other hand, if you want to ignore cpanfile.snapshot, and want to resolve CPAN modules by cpanmetadb, then try:

curl -sSL https://git.io/cpm | perl - install --resolver metadb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment