flox install command¶
flox-install - Install package(s) to environment.
<general-options> ] install [
<package> … ]
Install package(s) to environment.
Many flox commands wrap Nix commands of the same name, and will
correspondingly pass on options and arguments directly to the underlying
nix invocation. For more information on the options supported by
specific Nix commands please invoke
flox nix <command> help.
The following options are used specifically by
flox and must be
specified before the
Verbose mode. Invoke multiple times for increasing detail.
Debug mode. Invoke multiple times for increasing detail.
flox installation prefix / Nix store path. (flox internal use
Force execution in
flox-bash (flox internal use only.)
The following option is supported by environment commands:
Selects flox environment to be modified or used. If not provided then flox will fall back to using the default environment.
Flox package arguments are specified as a tuple of stability, channel,
name, and version in the format:
The version field is optional, defaulting to the latest version if not specified.
The stability field is also optional, defaulting to “stable” if not specified.
The channel field is also optional, defaulting to “nixpkgs-flox” if not specified, but only if using the “stable” stability. If using anything other than the default “stable” stability, the channel must be specified.
For example, each of the following will install the latest hello version 2.12 from the stable channel:
flox install [email protected] flox install stable.nixpkgs-flox.hello flox install [email protected] flox install nixpkgs-flox.hello flox install [email protected] flox install hello
… and each of the following will install the older hello version 2.10 from the stable channel:
… but only the following will install the older hello version 2.10 from the unstable channel:
flox install [email protected]