OSTREE(1)
๐ OSTREE(1) โ the ostree manual, bestie edition ๐
okay so this is the manual page for ostree, straight out of the ostree manual itself โ like, the whole thing, every flag and every command, just with me explaining it to you. no gatekeeping. ๐
โจ NAME โจ
ostree โ manage multiple bootable versioned filesystem trees ๐
โจ SYNOPSIS โจ
ostree {COMMAND} [OPTIONS...]
๐ธ DESCRIPTION ๐ธ
OSTree is a tool for managing multiple bootable versioned filesystem trees โ or just "tree" for short, bc we're casual like that. ๐ณ
In the OSTree model, operating systems no longer live in the physical / root directory. Instead โ plot twist โ they parallel install to the new toplevel /ostree directory. Each installed system gets its own /ostree/deploy/stateroot directory. (stateroot is the newer term for osname, iykyk.)
Unlike rpm or dpkg, OSTree is only aware of complete filesystem trees. It has no built-in knowledge of what components went into creating the filesystem tree. it literally does not care. it sees tree, it handles tree. ๐ฆ
It is possible to use OSTree in several modes; the most basic form is to replicate pre-built trees from a build server. Usually, these pre-built trees are derived from packages. You might also be using OSTree underneath a higher level tool which computes filesystem trees locally. ๐ซ
โ ๏ธ It must be emphasized that OSTree only supports read-only trees. To change to a different tree (upgrade, downgrade, install software), a new tree is checked out, and a 3-way merge of configuration is performed. The currently running tree is never ever modified โ not even a little bit, bestie, do not try โ and the new tree becomes active on a system reboot. ๐ฅ
To see the man page for a command run man ostree COMMAND or man ostree-admin COMMAND ๐ซถ
๐ OPTIONS ๐
The following options are understood:
--repoโ for most commands, a repository is required. If unspecified, the current directory is used if it appears to be an OSTree repository. If it isn't, either theOSTREE_REPOenvironment variable is used, or the system repository located at/sysroot/ostree/repo. so it's got a whole fallback ladder, iconic honestly โจ-v,--verboseโ produce debug level output. give me the lore. ๐ฃ๏ธ--versionโ print version information, including the features enabled at compile time, and exit. ๐
๐ COMMANDS ๐
System administrators will primarily interact with OSTree via the subcommand ostree admin. that's the main character energy right there ๐
ostree-admin-cleanup(1)โ delete untagged deployments and repository objects. ๐งนostree-admin-config-diff(1)โ see changes to/etcas compared to the current default (from/usr/etc). diff but for your config, slayostree-admin-deploy(1)โ takes a particular commit or revision, and sets it up for the next boot. ๐ostree-admin-init-fs(1)โ initialize a root filesystem in a specified path.ostree-admin-instutil(1)โ utility functions intended primarily for operating system installation programs.ostree-admin-os-init(1)โ initialize the deployment location for an operating system with a specified name.ostree-admin-status(1)โ show and list the deployments. status check bestie ๐ฉบostree-admin-switch(1)โ choose a different ref to track from the same remote as the current tree.ostree-admin-undeploy(1)โ remove the previouslyINDEXdeployed tree from the bootloader configuration.ostree-admin-upgrade(1)โ download the latest version for the current ref, and deploy it. โจ
Both administrators and operating system builders may interact with OSTree via the regular filesystem manipulation commands. and here's the whole squad:
ostree-cat(1)โ concatenate contents of files.ostree-checkout(1)โ check out a commit into a filesystem tree. ๐งณostree-checksum(1)โ gives checksum of any file.ostree-commit(1)โ given one or more trees, create a new commit using those contents.ostree-config(1)โ change settings. โ๏ธostree-create-usb(1)โ put the given refs on an external drive for P2P distribution. ๐ostree-diff(1)โ concisely list differences between the given refs.ostree-find-remotes(1)โ find remotes to serve the given refs.ostree-fsck(1)โ check a repository for consistency. the vibe check, literally ๐ซถostree-init(1)โ initialize a new repository.ostree-log(1)โ show revision log.ostree-ls(1)โ list the contents of a given commit.ostree-prune(1)โ search for unreachable objects.ostree-pull-local(1)โ copy data from source-repo.ostree-pull(1)โ download data from remote repo. if you have libsoup. (conditional queen ๐ญ)ostree-refs(1)โ list refs.ostree-remote(1)โ manipulate remote archive configuration.ostree-reset(1)โ reset a ref to a previous commit. โชostree-rev-parse(1)โ show the SHA256 corresponding to a given rev.ostree-show(1)โ given an OSTree SHA256 checksum, display its contents.ostree-static-delta(1)โ manage static delta files.ostree-summary(1)โ regenerate the repository summary metadata.
๐ฆ EXAMPLES ๐ฆ
For specific examples, please see the man page regarding the specific ostree command. For example:
man ostree init or man ostree-admin status
๐ GPG VERIFICATION ๐
OSTree supports signing commits with GPG. ๐
Operations on the system repository by default use keyring files in /usr/share/ostree/trusted.gpg.d. Any public key in a keyring file in that directory will be trusted by the client. No private keys should be present in this directory. like, none. zero. do not. ๐
In addition to the system repository, OSTree supports two other paths.
First, there is a gpgkeypath option for remotes, which must point to the filename of an ASCII-armored GPG key, or a directory containing ASCII-armored GPG keys to import. Multiple file and directory paths to import from can be specified, as a comma-separated list of paths. This option may be specified by using --set in ostree remote add. โจ
Second, there is support for a per-remote remotename.trustedkeys.gpg file stored in the toplevel of the repository (alongside objects/ and such). This is particularly useful when downloading content that may not be fully trusted (e.g. you want to inspect it but not deploy it as an OS), or use it for containers. This file is written via ostree remote add --gpg-import. ๐
โญ TERMINOLOGY โญ
The following terms are commonly used throughout the man pages. Terms in UPPER CASE letters are literals used in command line arguments. ok vocabulary time, bestie ๐
BRANCHโ branch name. Part of aREF.CHECKSUMโ a SHA256 hash of a object stored in the OSTree repository. This can be a content, a dirtree, a dirmeta or a commit object. If the SHA256 hash of a commit object is meant, the termCOMMITis used.COMMITโ a SHA256 hash of a commit object.REFโ a reference to a particular commit. References are text files stored inrefs/that name (refer to) a particular commit. A reference can only be the branch name part, in which case a local reference is used (e.g.mybranch/stable). If a remote branch is referred to, the remote name followed by a colon and the branch name needs to be used (e.g.myremote:mybranch/stable).REV,REFSPECโ a specific revision, a commit. This can be anything which can be resolved to a commit, e.g. aREFor aCOMMIT.SHA256โ a cryptographic hash function used to store objects in the OSTree repository. The hashes have a length of 256 bites and are typically shown and passed toostreein its 64 ASCII character long hexadecimal representation (e.g.0fc70ed33cfd7d26fe99ae29afb7682ddd0e2157a4898bd8cfcdc8a03565b870). (yes, "bites", that's what the page says, we don't edit the sacred text ๐ญ but it's 256 bits, love u)
๐ธ SEE ALSO ๐ธ
and that's the whole thing! ๐ this page came to you from the OSTree manual, labeled OSTREE(1) โ like the same OSTREE(1) you'd see in the corner of every page. go read the other man pages, they're waiting for you. mwah ๐โจ
๐ฆ where this page comes from
- arch rolling: ostree 2026.6-1 ยท LGPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms