Skip to content

Command Reference

Commands

CommandAction
flux install [-y] <package>Install a package, from the binary cache or compiled from source. -y skips the dependency confirmation prompt.
flux remove [-a] <package>Remove a package and every file it installed. -a / --autoremove also sweeps any dependencies left orphaned by the removal.
flux autoremoveRemove every installed package that was pulled in only as a dependency and is no longer needed by anything.
flux search <term>Search the recipe repository by name or description.
flux info <package>Show a package's metadata, dependencies, and install status.
flux updateSync the local recipe repository with the remote one, and check whether a newer flux, kira-base, or kernel release is available.
flux build [--cross] <package>Force a local build, optionally against the configured cross sysroot.
flux list [-a]List installed packages, sorted alphabetically. -a includes auto-installed dependencies.
flux cache <subcommand>Manage the local binary cache.
flux compat <package>Install through the Debian compatibility container, for the rare package with nowhere else to come from.
flux versionPrint the installed flux version.
flux self-updateRebuild flux from the latest release tag and atomically replace the running binary.
flux base-updateUpdate kira-base's core image (musl, BusyBox, runit, eudev, curl) to the latest release.
flux kernel-updateDownload and install the latest signed Shinigami kernel.

Exit codes

flux's exit codes are stable and will not be renumbered, which makes it safe to script against them directly.

CodeConstantMeaning
0FLUX_ERR_NONESuccess
1FLUX_ERR_GENERALGeneral or unrecoverable error
2FLUX_ERR_USAGEUsage error: bad command or missing argument
3FLUX_ERR_NOT_FOUNDPackage not found
4FLUX_ERR_DEPENDENCYDependency resolution failure
5FLUX_ERR_BUILDBuild failure
6FLUX_ERR_CACHECache error: read, write, or corruption
7FLUX_ERR_NETWORKNetwork error
8FLUX_ERR_PERMISSIONPermission error, usually meaning the command needs root
9FLUX_ERR_CONTAINERCompatibility container error
10FLUX_ERR_SOURCEInvalid or unavailable source
11FLUX_ERR_KOTODAMAMalformed or unreadable recipe file

Examples

Install a package, skipping the confirmation prompt:

sh
flux install -y ripgrep

Check what a package actually is before installing it:

sh
flux info neovim
version 0.11 · size 24M · auto-installed: no
deps: libuv luajit tree-sitter ...

See everything currently installed, including dependencies pulled in automatically:

sh
flux list -a

Clean up anything that used to be a dependency and no longer is:

sh
flux autoremove

Force a package to build from source instead of using the cache, useful when testing a recipe change:

sh
flux build ripgrep

Where to go next

A Linux distribution you actually understand.