mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 20:00:25 +00:00
Update cheatsheets
This commit is contained in:
42
opam
Normal file
42
opam
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 {{query}}`
|
||||
|
||||
- Install a package and all of its dependencies:
|
||||
|
||||
`opam install {{package}}`
|
||||
|
||||
- Display detailed information about a package:
|
||||
|
||||
`opam show {{package}}`
|
||||
|
||||
- List all installed packages:
|
||||
|
||||
`opam list`
|
||||
|
||||
- Update the local package database:
|
||||
|
||||
`opam update`
|
||||
|
||||
- Upgrade all installed packages:
|
||||
|
||||
`opam upgrade`
|
||||
|
||||
- Display help:
|
||||
|
||||
`opam help`
|
||||
Reference in New Issue
Block a user