Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How do I locally host a CPAN repository on an air-gapped server

by Corion (Patriarch)
on Aug 13, 2024 at 07:15 UTC ( [id://11161030]=note: print w/replies, xml ) Need Help??


in reply to How do I locally host a CPAN repository on an air-gapped server ?

Personally, I also use CPAN::Mini, but there also is Pinto, which aims for fine-grained control of what versions you import into your server. I never got it to run, but I didn't spend much time on it either, since I have a working CPAN::Mini installation already.

The "downside" of CPAN::Mini is, that it always keeps a complete mirror and always has the latest version. There is very little in customizing distributions or adding your own, internal modules to it. There is CPAN::Mini::Inject for that, but I've never used it.

  • Comment on Re: How do I locally host a CPAN repository on an air-gapped server

Replies are listed 'Best First'.
Re^2: How do I locally host a CPAN repository on an air-gapped server
by cavac (Parson) on Aug 14, 2024 at 07:56 UTC

    CPAN::Mini::Inject works quite well. It has a somewhat strange array of command line options, but they are well explained and easy to understand (just hard to remember).

    The biggest hurdle to get a local CPAN mirror going these days is the regretable descission of some (not top be named here) people regarding the topic "Mirrors are a thing of the past, we'll do everything in our power to curtail the use of CPAN mirrors". That has unfortunately caused the cpan shell to have a somewhat worse support for local mirrors.

    It's been some time since i last my local mirror, but it boiled down to having extra steps to configure the cpan shell, and running (if i remember correctly) into problems with signatures. In that instance, i ended up running a patched version of the cpan shell that disabled some security checks...

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
    Also check out my sisters artwork and my weekly webcomics

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11161030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-09-13 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.