ostree: add page (#9843)

* ostree: add page

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
pull/3/head
Florian Wilhelm 2023-02-09 15:52:17 +01:00 committed by GitHub
parent 6b405eb7e0
commit cff95fd1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

33
pages/linux/ostree.md Normal file
View File

@ -0,0 +1,33 @@
# ostree
> Version control for binary files similar to git but optimized for operating system root filesystems.
> OSTree is the foundation for immutable image-based operating systems such as Fedora Silverblue, Fedora IoT or Fedora CoreOS.
> More information: <https://ostreedev.github.io/ostree>.
- Initialize a repository of the files in `$PWD` with metadata in `$PWD/{{path/to/repo}}`:
`ostree init --repo {{path/to/repo}}`
- Create a commit (snapshot) of the files:
`ostree commit --repo {{path/to/repo}} --branch {{branch_name}}`
- Show files in commit:
`ostree ls --repo {{path/to/repo}} {{commit_id}}`
- Show metadata of commit:
`ostree show --repo {{path/to/repo}} {{commit_id}}`
- Show list of commits:
`ostree log --repo {{path/to/repo}} {{branch_name}}`
- Show repo summary:
`ostree summary --repo {{path/to/repo}} --view`
- Show available refs (branches):
`ostree refs --repo {{path/to/repo}}`