Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Thomas Gazagnaire <thomas@gazagnaire.org>
To: Christian Lindig <lindig@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Running an Opam Cache?
Date: Mon, 31 Oct 2016 19:25:26 +0100	[thread overview]
Message-ID: <95A490A3-072E-4F6B-A889-2B3DA1FF3B3A@gazagnaire.org> (raw)
In-Reply-To: <AF14B101-A2B6-4059-BB04-DEB72F22315F@gmail.com>

> I understand that packages can be pinned locally using each package’s Git repo and this would work if each package also includes its opam files. I am looking for a way to populate the cache with the tar/zip files that the Opam packages point to.

There are various ways to do it, the easiest one would be to use `opam-admin`:

```
$ git clone https://github.com/ocaml/opam-repository
$ cd opam-repository
$ opam-admin make --resolve [an optional list of packages to limit the size of the cache]
$ opam remote add local-cache .
```
Best,
Thomas


  reply	other threads:[~2016-10-31 18:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-30  8:34 Christian Lindig
2016-10-31 18:25 ` Thomas Gazagnaire [this message]
2016-10-31 21:37   ` Hezekiah M. Carty
2016-11-01 20:21     ` Thomas Gazagnaire

Reply instructions:

You may reply publicly 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=95A490A3-072E-4F6B-A889-2B3DA1FF3B3A@gazagnaire.org \
    --to=thomas@gazagnaire.org \
    --cc=caml-list@inria.fr \
    --cc=lindig@gmail.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox