caml-list - the Caml user's mailing list
 help / Atom feed
From: Anil Madhavapeddy <>
To: "Soegtrop, Michael" <>
Cc: "" <>
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: <> (raw)
In-Reply-To: <>

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,

> On 25 Apr 2019, at 17:54, Soegtrop, Michael <> 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,
> 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:

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

  git send-email \ \ \ \ \

* 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

AGPL code for this site: git clone public-inbox