diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-08-04 11:45:44 -0700 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-08-04 11:45:44 -0700 |
| commit | 585b48b6a605cb71ef99dd767880e1b7ee5bf24e (patch) | |
| tree | c65377350d12bd1e62e0bdd58458c1044541c27b /posts/2008-06-20-mirror-cpan.org | |
| parent | Use Bullet list for the index. (diff) | |
| parent | Mass convert all posts from markdown to org. (diff) | |
| download | lumberjaph-585b48b6a605cb71ef99dd767880e1b7ee5bf24e.tar.gz | |
Merge branch 'convert-to-org'
Diffstat (limited to 'posts/2008-06-20-mirror-cpan.org')
| -rw-r--r-- | posts/2008-06-20-mirror-cpan.org | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/posts/2008-06-20-mirror-cpan.org b/posts/2008-06-20-mirror-cpan.org new file mode 100644 index 0000000..3659d41 --- /dev/null +++ b/posts/2008-06-20-mirror-cpan.org @@ -0,0 +1,31 @@ +For the last 10 months, I've been living with no internet connection at +home (not on purpose, but this is another story), so I've tried to be as +much as possible independent from the web. I've started to use git for +being able to work off-line, I use Vim as a wiki on my computer, my blog +engine for writing post off-line, ... + +As as perl developer, I use a lot the CPAN. So, I've start to mirror the +CPAN on my computer. Here is how: + +First, you will need the minicpan: =cpan CPAN::Mini=. + +Then, edit a *.minicpanrc* file and add the following: + +#+BEGIN_SRC sh + local: /path/to/my/mirror/cpan + remote: ftp://ftp.demon.co.uk/pub/CPAN/ +#+END_SRC + +And to finish, add this in your crontab: + +#+BEGIN_SRC sh + 5 14 * * * /usr/local/bin/minicpan > /dev/null 2>&1 +#+END_SRC + +Everyday, at 14h05, your cpan will be updated. + +Now use the CPAN cli: =sudo cpan= and execute the following command +=cpan[1]> o conf urllist unshift file:///path/to/my/mirror/cpan= + +And voilĂ , I've got my own minicpan on my computer, so I can install +everything when I need it, being off-line or not. |
