caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anil Madhavapeddy <anil@recoil.org>
To: Dario Teixeira <darioteixeira@yahoo.com>
Cc: Thomas Gazagnaire <thomas@ocamlpro.com>,
	OCaml mailing-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Creating fresh OPAM repository
Date: Tue, 11 Dec 2012 16:48:38 +0000	[thread overview]
Message-ID: <182A6D66-36B5-40E5-AB52-2BF45E7B4BCC@recoil.org> (raw)
In-Reply-To: <1355243493.7338.YahooMailNeo@web120405.mail.ne1.yahoo.com>

On 11 Dec 2012, at 16:31, Dario Teixeira <darioteixeira@yahoo.com> wrote:

> Hi,
> 
>> If you want to start an empty local repository in /foo/bar, just run:
> 
>> 
>> $ opam remote local /foo/bar
>> 
>> (you can replace 'local' by any other name in the previous commands, 
>> it's just a way to identify the repository)
> 
> Thanks for the prompt reply, Thomas.  The command you suggested
> does not seem to work, at least with OPAM version 0.8.1.
> 
> The error message suggests that one of -add, -rm, or -list must be given.
> However, all the following fail:
> 
>   opam remote -add local /foo/bar
>   opam remote -add local file:///foo/bar
>   opam remote -add -kind local local /foo/bar
>   opam remote -add -kind local local file:///foo/bar
> 
> The 'remote' subcommand seems to expect an already formed repository
> at the given address.

Just mkdir the directory first.  There's nothing special about a local remote
except that a "packages" directory is expected.

$ mkdir -p /foo/bar/packages
$ opam remote -add local /foo/bar

should (hopefully) do the trick.

-anil

  reply	other threads:[~2012-12-11 16:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 15:06 Dario Teixeira
2012-12-11 15:55 ` Thomas Gazagnaire
2012-12-11 16:31   ` Dario Teixeira
2012-12-11 16:48     ` Anil Madhavapeddy [this message]
2012-12-11 16:52       ` Thomas Gazagnaire
2012-12-11 18:40       ` Dario Teixeira

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=182A6D66-36B5-40E5-AB52-2BF45E7B4BCC@recoil.org \
    --to=anil@recoil.org \
    --cc=caml-list@inria.fr \
    --cc=darioteixeira@yahoo.com \
    --cc=thomas@ocamlpro.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;
as well as URLs for NNTP newsgroup(s).