Title: Theory / Unimportant / CS / Programming / oCaml / Opam
Tags: hasNotNewEffectReturnsMeaning computer_to_instruction fromCommandLine FromVariables récupéré

Instruction: opam list -a
Page: http://ocaml.github.io/platform-dev/doc/Basic_Usage.html
Effect: List all available OPAM package
Language: opam

Instruction: opam search foo
Page: http://ocaml.github.io/platform-dev/doc/Basic_Usage.html
Effect: List packages with foo in their name
Language: opam

Instruction: opam info foo
Page: http://ocaml.github.io/platform-dev/doc/Basic_Usage.html
Effect: Display information about package foo
Language: opam

Instruction: opam update
Page: http://ocaml.github.io/platform-dev/doc/Basic_Usage.html
Effect: Udpate package database
Language: opam

Instruction: opam upgrade
Page: http://ocaml.github.io/platform-dev/doc/Basic_Usage.html
Effect: Re-install packages that were updated since last upgrade
Language: opam

Instruction: opam init
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Effect: Re-install packages that were updatedAdd a new repository
Language: opam

Variable: ~/.opam/repo/foo
Meaning: The configuration of the opam package foo
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Language: opam
Typ: file

Name: Base package
Definition: Module potentially installed with ocaml's distribution
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Context: opam

Name: An optional dependency of foo
Definition: A package that foo can use, but which is not required by foo
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Variables: foo a package
Context: opam

Question: What happen if bar is installed after foo
Answer: foo will be reinstalled to use bar
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Variables: foo a package
bar an optional dependency of foo
Context: opam

Instruction: switch list
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Effect: Show the list of compilers
Language: OPAM

Instruction: switch foo
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Effect: switch to the compiler foo
Language: OPAM

Instruction: switch remove foo
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Effect: remove the compiler foo
Language: OPAM
Assuming: foo installed by opam

Question: After opam switch compiler :
Answer: run eval `opam config env`
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Context: OPAM

Instruction: opam pin foo bar
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Effect: State that the package foo source is the folder bar and not opam's server
Language: ocaml

Instruction: opam remote add foo bar
Page: http://ocaml.github.io/platform-dev/doc/Advanced_Usage.html
Effect: Add a remote named foo whose source is bar
Language: ocaml