Skip to content

Command Reference ​

Commands ​

CommandAction
flux install [-y] [-f] [--flatpak] <package>...Install one or more packages. A kira--prefixed name is built from a kotodama recipe, anything else is resolved against Alpine's package index. Dependencies across all of them are resolved together into one list, always shown before installing. -y skips the confirmation prompt; -f forces a reinstall even if the package is already installed at the current version. --flatpak installs from Flathub instead, skipping both other sources entirely.
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 kotodama recipes by name or description. Does not search the Alpine index.
flux info <package>Show a package's metadata, dependencies, and install status, from its kotodama recipe. For an installed Alpine package, shows what the package database knows (version, install date, source) without recipe-level detail.
flux check [--files]Sync the local kotodama recipe repo and the Alpine package index, then report which installed packages (either source) have a newer version available. Read-only: it never installs anything. --files also lists installed files you have modified since they were installed.
flux upgradeInstall whatever flux check found, in one batch.
flux why <package>Show the chain of packages that keeps a package installed, ending at what you installed by name.
flux build [--cross] <package>Force a local build of a kotodama recipe, optionally against the configured cross sysroot. Alpine packages are never built locally.
flux list [-a]List installed packages, sorted alphabetically, with their version and source. -a includes auto-installed dependencies.
flux cache <subcommand>Manage the local binary cache. Not implemented yet - every subcommand currently just prints a placeholder.
flux versionPrint the installed flux version.
flux sys checkReport whether a newer flux, kira-base, or kernel release is available. Never changes anything.
flux sys upgrade [flux|base|kernel] [-f]Update flux itself, the kira-base core image (musl, BusyBox, runit, eudev, curl), or the Shinigami kernel. With no target, all three in turn. -f redoes it even if already current.
flux sys clean kernel [--keep N] [-y]Remove old kernels beyond the newest N (default 2). The running kernel is never removed.
flux checksum-backfillRecord checksums for packages installed before modified-file tracking existed.

Commands that change the system (install, remove, autoremove, check, upgrade, build) need root: run them with sudo.

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, corruption, or a required cache that hasn't been synced yet
7FLUX_ERR_NETWORKNetwork error
8FLUX_ERR_PERMISSIONPermission error, usually meaning the command needs root
9FLUX_ERR_CONTAINERReserved, currently unused
10FLUX_ERR_SOURCEInvalid or unavailable source
11FLUX_ERR_KOTODAMAMalformed or unreadable recipe file

Examples ​

Install a package, skipping the confirmation prompt. ripgrep has no kira- prefix, so it's resolved against Alpine:

sh
flux install -y ripgrep

Install several packages together, kotodama and Alpine names freely mixed. Dependencies are resolved and shown as one combined list before anything happens:

sh
flux install kira-the-line ripgrep fd

If the Alpine index has never been synced yet, flux install on an Alpine-only name fails fast instead of fetching on its own:

sh
sudo flux check    # syncs the Alpine index and the recipe repo
sudo flux install jq

Check what a package actually is before installing it:

sh
flux info kira-the-line

See everything currently installed, including dependencies pulled in automatically, with each one's source:

sh
flux list -a

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

sh
flux autoremove

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

sh
flux build kira-the-line

Where to go next ​

A Linux distribution you actually understand.