diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:06:31 -0700 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:06:31 -0700 |
| commit | 4b8e43f75b394a4e6169884fbfb4c606865c6a22 (patch) | |
| tree | 48cae6b8e8f9b68cae29676d8a15cb3ddbfcccda /content/post/2008-06-20-mirror-cpan.md | |
| parent | Stop using Jekyll. (diff) | |
| download | lumberjaph-4b8e43f75b394a4e6169884fbfb4c606865c6a22.tar.gz | |
Import migration from Jekyll to Hugo.
All the posts were converted, and the layout is created. This looks like
it works just fine.
Diffstat (limited to 'content/post/2008-06-20-mirror-cpan.md')
| -rw-r--r-- | content/post/2008-06-20-mirror-cpan.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/content/post/2008-06-20-mirror-cpan.md b/content/post/2008-06-20-mirror-cpan.md new file mode 100644 index 0000000..492eb9d --- /dev/null +++ b/content/post/2008-06-20-mirror-cpan.md @@ -0,0 +1,30 @@ +--- +date: 2008-06-20T00:00:00Z +summary: In which I setup a mirror of CPAN using minicpan. +title: Mirror cpan +--- + +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: + +```sh +local: /path/to/my/mirror/cpan +remote: ftp://ftp.demon.co.uk/pub/CPAN/ +``` + +And to finish, add this in your crontab: + +```sh +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. |
