caml-list - the Caml user's mailing list
 help / Atom feed
From: Anil Madhavapeddy <anil@recoil.org>
To: "Soegtrop, Michael" <michael.soegtrop@intel.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Is it possible to have a common download cache for serval opam installations
Date: Thu, 25 Apr 2019 20:23:03 +0100
Message-ID: <CD6B97F1-2825-4AC8-B6F3-E5F2EA228389@recoil.org> (raw)
In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A178FD5D0AA@IRSMSX102.ger.corp.intel.com>

Dear Michael,

If you’re on opam2, you can use the “archive-mirrors” field in your opam .config file to specify an alternative location to look for download files in.  The opam CI, for example, does something like:

    echo 'archive-mirrors: [ "file:///home/opam/opam-repository/cache" ]' >> /home/opam/.opam/config

and the contents of /home/opam/opam-repository/cache are created via “opam admin cache”.

Hope that helps,
Anil

> On 25 Apr 2019, at 17:54, Soegtrop, Michael <michael.soegtrop@intel.com> wrote:
> 
> Dear Opam Team,
>  
> I am working on scripts to automatically setup a Cygwin MinGW cross based development environment for Coq developers on Windows and for testing these scripts I have to reinstall Cygwin and opam frequently. I wonder if I could spare the downloads by specifying a common download cache folder somewhere outside of my Cygwin and .opam folders. Is there an option for this or could I e.g. symlink the download folder somewhere or does opam keep and index of what is in the download cache folder so that sharing won’t work?
>  
> Best regards,
>  
> Michael
> Intel Deutschland GmbH
> Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
> Tel: +49 89 99 8853-0, www.intel.de
> Managing Directors: Christin Eisenschmid, Gary Kershaw
> Chairperson of the Supervisory Board: Nicole Lau
> Registered Office: Munich
> Commercial Register: Amtsgericht Muenchen HRB 186928
> 


  parent reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 16:54 Soegtrop, Michael
2019-04-25 19:08 ` Chet Murthy
2019-04-25 19:23 ` Anil Madhavapeddy [this message]
2019-04-26  8:39   ` Soegtrop, Michael

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CD6B97F1-2825-4AC8-B6F3-E5F2EA228389@recoil.org \
    --to=anil@recoil.org \
    --cc=caml-list@inria.fr \
    --cc=michael.soegtrop@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox