mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
opam: add page (#3465)
This commit is contained in:
parent
1eba2d9513
commit
f2e2e3b1aa
1 changed files with 37 additions and 0 deletions
37
pages/common/opam.md
Normal file
37
pages/common/opam.md
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# opam
|
||||||
|
|
||||||
|
> OCaml Package Manager.
|
||||||
|
> Manage OCaml compilers, tools and libraries.
|
||||||
|
> More information: <https://opam.ocaml.org/>.
|
||||||
|
|
||||||
|
- Initialize opam for first use:
|
||||||
|
|
||||||
|
`opam init`
|
||||||
|
|
||||||
|
- Search for packages:
|
||||||
|
|
||||||
|
`opam search {{package_name}}`
|
||||||
|
|
||||||
|
- Install a package and all of its dependencies:
|
||||||
|
|
||||||
|
`opam install {{package_name}}`
|
||||||
|
|
||||||
|
- Display detailed information about a package:
|
||||||
|
|
||||||
|
`opam show {{package_name}}`
|
||||||
|
|
||||||
|
- List all installed packages:
|
||||||
|
|
||||||
|
`opam list`
|
||||||
|
|
||||||
|
- Update the local package database:
|
||||||
|
|
||||||
|
`opam update`
|
||||||
|
|
||||||
|
- Upgrade all installed packages:
|
||||||
|
|
||||||
|
`opam upgrade`
|
||||||
|
|
||||||
|
- Display all commands:
|
||||||
|
|
||||||
|
`opam help`
|
Loading…
Add table
Reference in a new issue