summaryrefslogtreecommitdiff
path: root/_posts/2008-06-20-mirror-cpan.md
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2013-11-26 10:36:10 -0800
committerFranck Cuny <franck.cuny@gmail.com>2013-11-26 10:36:10 -0800
commit8ddf2e94df70707b458528a437759b96046d3e01 (patch)
treed442818d92d3c9c6f7fcdc92857a1228963849a1 /_posts/2008-06-20-mirror-cpan.md
parentDon't need to use the IP in the makefile. (diff)
downloadlumberjaph-8ddf2e94df70707b458528a437759b96046d3e01.tar.gz
Huge update.
Moved all posts from textile to markdown. Updated all the CSS and styles. Added a new page for the resume.
Diffstat (limited to '')
-rw-r--r--_posts/2008-06-20-mirror-cpan.md (renamed from _posts/2008-06-20-mirror-cpan.textile)28
1 files changed, 10 insertions, 18 deletions
diff --git a/_posts/2008-06-20-mirror-cpan.textile b/_posts/2008-06-20-mirror-cpan.md
index 461aeaa..dc026e1 100644
--- a/_posts/2008-06-20-mirror-cpan.textile
+++ b/_posts/2008-06-20-mirror-cpan.md
@@ -1,38 +1,30 @@
---
layout: post
-category: perl
title: Mirror cpan
+summary: In which I setup a mirror of CPAN using minicpan.
---
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:
+First, you will need the minicpan: `cpan CPAN::Mini`.
-{% highlight bash %}
-cpan CPAN::Mini
-{% endhighlight %}
-
-Then, edit a .minicpanrc file and add the following:
+Then, edit a **.minicpanrc** file and add the following:
-bc. local: /path/to/my/mirror/cpan
+{% highlight sh %}
+local: /path/to/my/mirror/cpan
remote: ftp://ftp.demon.co.uk/pub/CPAN/
+{% endhighlight %}
And to finish, add this in your crontab:
-bc. 5 14 * * * /usr/local/bin/minicpan > /dev/null 2>&1
-
-Everyday, at 14h05, your cpan will be updated.
-
-Now use the CPAN cli:
-
-{% highlight bash %}
-sudo cpan
+{% highlight sh %}
+5 14 * * * /usr/local/bin/minicpan > /dev/null 2>&1
{% endhighlight %}
-and do the following
+Everyday, at 14h05, your cpan will be updated.
-bc. cpan[1]> o conf urllist unshift file:///path/to/my/mirror/cpan
+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.