I have an offline CPAN archive. Sometimes it happens that I have to update a module there. For example some weeks ago I used the module Mojo::DOM; for some XML stuff. Later I wanted to pack my script with pp. But it didn't work. Investigating a little bit showed up that a new version of Module::ScanDeps fixes the issue. But this new version is not in CPAN, but in a private github of the author.
So I decided to update Module::ScanDeps Version 1.31 in my offline CPAN with the new version 1.32 from Github.
I did it as follows.
- download ModuleScanDeps 1.32 from Github and put in the correct folder in my offline cpan
- update 02packages.details.txt.gz, i.e. replacing Module::ScanDeps 1.31 R/RS/RSCHUPP/Module-ScanDeps-1.31.tar.gz to Module::ScanDeps 1.32 R/RS/RSCHUPP/Module-ScanDeps-1.32.tar.gz
- update RECENT file, i.e. authors/id/R/RS/RSCHUPP/Module-ScanDeps-1.31.tar.gz to authors/id/R/RS/RSCHUPP/Module-ScanDeps-1.32.tar.gz
- update CHECKSUMS file by using use CPAN::Checksums qw(updatedir); updatedir("./cpan/sources/authors/id/R/RS/RSCHUPP");
It worked well. But I don't want to do so many steps manually each time I want to update a module in my offline CPAN. Furthermore CPAN::Checksums works only on Linux for me and not on Windows. Of course I could script the steps above by myself. But I think it is a bad idea to reinvent the wheel. For such a basic problem I'm sure there has to be a good solution out there.
So my question is. What is the best way to update a module in an offline CPAN?
Thank you very much in advance!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.