From: Arlen Cox <arlencox@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Offline opam
Date: Tue, 4 Oct 2016 12:09:15 -0400 [thread overview]
Message-ID: <CAHEcMuFdD=fAW5AcVf4HNVFtKQHhAk-Mtez44iLSXDzyVDMeFQ@mail.gmail.com> (raw)
In-Reply-To: <49389010-1D72-4BE8-B3AE-8DA208A7CC2E@recoil.org>
Hi Anil,
There appears to be no issue installing packages, but switch does not
seem to work.
'opam switch 4.03' connects via http to download the compiler. How do
I make the compiler versions available offline as well?
Thanks,
Arlen
On Tue, Oct 4, 2016 at 5:55 AM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 3 Oct 2016, at 19:05, Arlen Cox <arlencox@gmail.com> wrote:
>>
>> Hi all,
>>
>> Is there good documentation anywhere on how to make an offline opam
>> repo? I would like to be able to use the repo just like I would opam
>> with an internet connection.
>>
>> I would like to be able to do the following:
>> - Install any package: opam install package_x
>> - Search for any package: opam search package_y
>> - Switch the compiler (even if I have not yet installed that
>> compiler version): opam switch 4.02.0
>>
>> Using opam-admin make, I can cause all packages to be downloaded, but
>> they're tagged with the compiler version that I used to fetch them.
>> This means that if I run a switch, the existing archives are no longer
>> valid (I presume). Furthermore none of the ocaml compiler sources are
>> downloaded, so I cannot actually use opam switch with this install.
>
> Dear Arlen,
>
> The OPAM archives generated by `opam admin make` should be
> independent of the version of the compiler that has been selected.
> They are placed in the archives/ directory of the remote so that you
> can confirm this.
>
> How is the issue manifesting that you are seeing -- is it definitely
> failing to retrieve the package in just one switch? If this is the case,
> then an issue on https://github.com/ocaml/opam/issues would be
> appreciated, with details on `opam remote` so that we can see how
> you are accessing the local package.
>
> OPAM should support complete offline access (assuming that package
> builds themselves do not depend on the network), so the model you
> want should work with OPAM 1.2.2.
>
> regards
> Anil
next prev parent reply other threads:[~2016-10-04 16:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-03 18:05 Arlen Cox
2016-10-04 9:55 ` Anil Madhavapeddy
2016-10-04 16:09 ` Arlen Cox [this message]
2016-10-04 16:17 ` Anil Madhavapeddy
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='CAHEcMuFdD=fAW5AcVf4HNVFtKQHhAk-Mtez44iLSXDzyVDMeFQ@mail.gmail.com' \
--to=arlencox@gmail.com \
--cc=anil@recoil.org \
--cc=caml-list@inria.fr \
/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