Package
Understand the on-device package installer and its trust checks.
The package executable in the Applications repository installs packages into the virtual file system (VFS) of Xila. It accepts local packages and packages from configured repositories.
Context
Section titled “Context”The executable connects repository metadata and package verification to VFS storage. Its desktop counterpart, xila-package, builds and signs packages.
How it works
Section titled “How it works”Repository installation verifies signed metadata with the configured root key. It then checks the developer key, the package signature, and the payload hashes. Installation also checks that the package targets wasm32-wasip1 and that its xila_version is compatible with the running Xila. A local archive goes through the registry entry that pins it: the installer looks up the archive’s name and version in the configured repositories, and that entry must match the archive’s SHA-256 and size. The --public-key option verifies a local archive with a given key instead, for offline sideloading. The --allow-untrusted option skips publisher authentication for a local package but keeps the integrity checks.
The following diagram shows the install path of a package archive on the device.
The installer reads the archive in 512-byte TAR blocks and writes them to a staging directory (mode 0700) inside /applications/bundles/. Verification checks the signature, the payload hashes, the target, and the Xila version, and rejects packages that request capabilities or whose entry point is not a bundled WASI binary. A repository install also matches the archive against its registry entry; that step does not apply with --public-key or --allow-untrusted. A journaled activation then moves the bundle to /applications/bundles/<identifier>/. The commands install, upgrade, remove, recover, list, info, and search manage packages. The repository commands add, list, and remove configured repositories. See Package management for the trust chain.
Design choices and trade-offs
Section titled “Design choices and trade-offs”Streaming avoids holding a complete package in memory. Staging keeps a failed verification from being promoted as an installed bundle. A local key override does not add that key to system trust.
Limits
Section titled “Limits”Root and the members of the administrator group may change packages and repositories. Package changes run as crash-consistent transactions, journaled in /configuration/system/packages/transaction.json; package recover finishes or undoes an interrupted operation. The Wasm runtime hashes each installed package executable against the installed manifest before compiling it. It does not verify a signature at launch. Repository index expiry is not checked without a trustworthy clock.
API reference
Section titled “API reference”-
Command parser
: commands and options. -
Installer
: local package staging. -
Repository client
: authenticated metadata and downloads.