summaryrefslogtreecommitdiff
path: root/posts/2008-06-20-mirror-cpan.md
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-08-10 14:33:04 -0700
committerFranck Cuny <franck.cuny@gmail.com>2016-08-10 20:17:56 -0700
commit8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d (patch)
treea6cecddaaea7e87d901a6c28bebe3a531438f24b /posts/2008-06-20-mirror-cpan.md
parentMerge branch 'convert-to-org' (diff)
downloadlumberjaph-8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d.tar.gz
convert back to md
Diffstat (limited to '')
-rw-r--r--posts/2008-06-20-mirror-cpan.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/posts/2008-06-20-mirror-cpan.md b/posts/2008-06-20-mirror-cpan.md
new file mode 100644
index 0000000..e277b7d
--- /dev/null
+++ b/posts/2008-06-20-mirror-cpan.md
@@ -0,0 +1,24 @@
+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:
+
+``` bash
+local: /path/to/my/mirror/cpan
+remote: ftp://ftp.demon.co.uk/pub/CPAN/
+```
+
+And to finish, add this in your crontab:
+
+``` bash
+5 14 * * * /usr/local/bin/minicpan > /dev/null 2>&1
+```
+
+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.