All apps/opam

opam

opam

A source-based package manager for OCaml.

Runs as opam|macOS, Linux, Windows|opam.ocaml.org

Command form

ai-draft · 5 tasks · 25 fields

Install packages or list them with opam. Switches, pinning, repositories and removal are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui opam

opam install

Install packages
Install packagesExample values, fixed in this page — nothing here reaches a terminal
Basic
Packages*
string
Parallel jobs
integer
Answer yes to prompts
--yes
TasksEach one presets the form for one job
Install packages
packagesjobsyes
Preview the plan
packagesshow_actions
Install project dependencies
packagesdeps_onlywith_testwith_doc
ParametersOnly these flags are editable in the form
Packages
Package names, optionally with a version or constraint (pkg, pkg.1.0, pkg>=0.5) or a path to a project directory.
string · positional 0 · repeatable
Dependencies only
boolean
--deps-only
Dry run
boolean
--dry-run
Show actions only
boolean
--show-actions
Run tests
boolean
--with-test-t
Build documentation
boolean
--with-doc-d
Parallel jobs
integer
--jobs-j
Keep build directories
boolean
--keep-build-dir-b
Allow changing the switch compiler
Use with caution: lets the solver change the packages set as the switch base.
boolean
--update-invariant
Switch
string
--switch
Answer yes to prompts
boolean
--yes-y
Verbose
boolean
--verbose

opam list

List packages
List packagesExample values, fixed in this page — nothing here reaches a terminal
Basic
Installed only
--installed
Names only, no header
--short
TasksEach one presets the form for one job
List installed packages
installedshort
Search package descriptions
patternssearchavailable
ParametersOnly these flags are editable in the form
Patterns
Package patterns with globs; matched against NAME or NAME.VERSION.
string · positional 0 · repeatable
Available only
boolean
--available-a
Include uninstalled and unavailable
boolean
--all-A
Installed only
boolean
--installed-i
Explicitly installed only
boolean
--roots--installed-roots
Pinned only
boolean
--pinned
Latest version only
boolean
--latests-only
Depends on
Comma-separated packages.
string
--depends-on
Required by
Comma-separated packages.
string
--required-by
Transitive dependencies
boolean
--recursive
Search descriptions
boolean
--search
Names only, no header
boolean
--short-s
Ignore the current switch
boolean
--no-switch
SourcesEvery flag above is checked against these
man
PACKAGES: List of package names, with an optional version or constraint, e.g 'pkg', 'pkg.1.0' or 'pkg>=0.5' --deps-only: Install all its dependencies, but don't actually install the package. --dry-run: Simulate the command, but don't actually perform any changes. --show-actions: Call the solver and display the actions. Don't perform any changes. -t, --with-t…
manualopam 2.7

opam.ocaml.org

man
PATTERNS: Package patterns with globs. Unless --search is specified, they match against NAME or NAME.VERSION -a, --available: List only packages that are available on the current system -A, --all: Include all, even uninstalled or unavailable packages -i, --installed: List installed packages only. This is the default when no further arguments are supplied --r…
manualopam 2.7

opam.ocaml.org

Before it fills your prompt, Otty checks the installed opam against its version. A form that does not match your version is not offered.