Skip to content

ostree

init

  • Initialize an empty ostree repo
ostree init \
  --repo=/path/to/new/repo

commit

  • commit a directory into the repo
  • The directory do not need to live in the repo structure. The repo can manage a completely isolated filesystem
  • If --repo is not speficied, defaults to the current directory (if a ostree repo)
ostree commit \
  --repo==<repo-path> \
  --branch=mybranch \
  "tree/"

checkout

  • Checkout (copies) the files of the repo into a directory
ostree checkout \
  --repo=<repo>
  <branch> \
  <target-dir>

refs

  • Show all the refs (or branches) of a given repo
ostree refs \
  --repo=<repo>

ls

  • Inspect the filesystem of a given repo
ostree ls --repo=<repo> <branch>

cat

  • cat a file in the filesystem of a given repo
ostree cat --repo=<repo> <branch> <file>