Infra_HDC

Setting UP a new local CPAN repo

Mar 7th, 2022 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. 1. sudo apt install libcpan-mini-perl
  2. 2. mkdir -p /path/to/minicpan
  3. 3. nano -w ./update-mirror-run-me.pl
  4. #!/usr/bin/perl
  5. use CPAN::Mini;
  6. CPAN::Mini->update_mirror(
  7. remote => "https://www.cpan.org/",
  8. local => "/path/to/minicpan",
  9. log_level => 'debug',
  10. );
  11. 4. chmod +x ./update-mirror-run-me.pl
  12. 5. ./update-mirror-run-me.pl
  13. 6. Use of new local CPAN repo (TBD)
  14.  
Add Comment
Please, Sign In to add comment