How To Install ostree on Fedora 34
Introduction
In this tutorial we learn how to install ostree
on Fedora 34.
What is ostree
libostree is a shared library designed primarily for use by higher level tools to manage host systems (e.g. rpm-ostree), as well as container tools like flatpak and the atomic CLI. ostree 2021.3 1.fc34 x86_64 235 k ostree-2021.3-1.fc34.src.rpm updates Tool for managing bootable, immutable filesystem trees https LGPLv2+ libostree is a shared library designed primarily for use by higher level tools to manage host systems (e.g. rpm-ostree), as well as container tools like flatpak and the atomic CLI.
We can use yum
or dnf
to install ostree
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ostree.
Install ostree on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install ostree
using dnf
by running the following command:
sudo dnf -y install ostree
Install ostree on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install ostree
using yum
by running the following command:
sudo yum -y install ostree
How To Uninstall ostree on Fedora 34
To uninstall only the ostree
package we can use the following command:
sudo dnf remove ostree
ostree Package Contents on Fedora 34
/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/55f03e7d0b08b25192e7ba2ee7a7d769120d14
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/f0b313922ee7dc9e0992f1f8ccc0fccb4bedf2
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/b1bdcc797a50a18b5c6c91e1a4dad8b5a35e99
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/de861bf3f9f4f7e9a741ccfc2486a9432b8c94
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/4bdd74db7cbc8a1dc1fbbf6620165dfe7b2f6b
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/ff30fea451251ffdb246ed9d61af041dc57ce0
/usr/lib/dracut/modules.d/98ostree
/usr/lib/dracut/modules.d/98ostree/module-setup.sh
/usr/lib/ostree
/usr/lib/ostree/ostree-prepare-root
/usr/lib/ostree/ostree-remount
/usr/lib/systemd/system-generators/ostree-system-generator
/usr/lib/systemd/system/ostree-finalize-staged.path
/usr/lib/systemd/system/ostree-finalize-staged.service
/usr/lib/systemd/system/ostree-prepare-root.service
/usr/lib/systemd/system/ostree-remount.service
/usr/lib/tmpfiles.d/ostree-tmpfiles.conf
/usr/share/bash-completion/completions/ostree
/usr/share/doc/ostree
/usr/share/doc/ostree/README.md
/usr/share/licenses/ostree
/usr/share/licenses/ostree/COPYING
/usr/share/man/man1/ostree-admin-cleanup.1.gz
/usr/share/man/man1/ostree-admin-config-diff.1.gz
/usr/share/man/man1/ostree-admin-deploy.1.gz
/usr/share/man/man1/ostree-admin-init-fs.1.gz
/usr/share/man/man1/ostree-admin-instutil.1.gz
/usr/share/man/man1/ostree-admin-os-init.1.gz
/usr/share/man/man1/ostree-admin-pin.1.gz
/usr/share/man/man1/ostree-admin-set-origin.1.gz
/usr/share/man/man1/ostree-admin-status.1.gz
/usr/share/man/man1/ostree-admin-switch.1.gz
/usr/share/man/man1/ostree-admin-undeploy.1.gz
/usr/share/man/man1/ostree-admin-unlock.1.gz
/usr/share/man/man1/ostree-admin-upgrade.1.gz
/usr/share/man/man1/ostree-admin.1.gz
/usr/share/man/man1/ostree-cat.1.gz
/usr/share/man/man1/ostree-checkout.1.gz
/usr/share/man/man1/ostree-checksum.1.gz
/usr/share/man/man1/ostree-commit.1.gz
/usr/share/man/man1/ostree-config.1.gz
/usr/share/man/man1/ostree-create-usb.1.gz
/usr/share/man/man1/ostree-diff.1.gz
/usr/share/man/man1/ostree-export.1.gz
/usr/share/man/man1/ostree-find-remotes.1.gz
/usr/share/man/man1/ostree-fsck.1.gz
/usr/share/man/man1/ostree-gpg-sign.1.gz
/usr/share/man/man1/ostree-init.1.gz
/usr/share/man/man1/ostree-log.1.gz
/usr/share/man/man1/ostree-ls.1.gz
/usr/share/man/man1/ostree-prune.1.gz
/usr/share/man/man1/ostree-pull-local.1.gz
/usr/share/man/man1/ostree-pull.1.gz
/usr/share/man/man1/ostree-refs.1.gz
/usr/share/man/man1/ostree-remote.1.gz
/usr/share/man/man1/ostree-reset.1.gz
/usr/share/man/man1/ostree-rev-parse.1.gz
/usr/share/man/man1/ostree-show.1.gz
/usr/share/man/man1/ostree-sign.1.gz
/usr/share/man/man1/ostree-static-delta.1.gz
/usr/share/man/man1/ostree-summary.1.gz
/usr/share/man/man1/ostree-trivial-httpd.1.gz
/usr/share/man/man1/ostree.1.gz
/usr/share/man/man1/rofiles-fuse.1.gz
/usr/share/man/man5/ostree.repo-config.5.gz
/usr/share/man/man5/ostree.repo.5.gz
/usr/share/ostree
/usr/share/ostree/trusted.gpg.d
/usr/share/ostree/trusted.gpg.d/README-gpg
/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/e8ea93ef4eae4aafd6e5b5cd662af8aaadde0a
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/207246f099ffd69577c0ef6d1ba0a36ece673a
/usr/lib/.build-id/76
/usr/lib/.build-id/76/a142fc43b91f163958805d08b263d4f10984b6
/usr/lib/.build-id/77
/usr/lib/.build-id/77/6048408c27092a0bfce1e49819b06081cd1ee3
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/8af4bdf85d56d801704ea3d5737e95ffa9a9c8
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/ac9a10e76d3d265a824e1a8d0b0151aa0e1147
/usr/lib/dracut/modules.d/98ostree
/usr/lib/dracut/modules.d/98ostree/module-setup.sh
/usr/lib/ostree
/usr/lib/ostree/ostree-prepare-root
/usr/lib/ostree/ostree-remount
/usr/lib/systemd/system-generators/ostree-system-generator
/usr/lib/systemd/system/ostree-finalize-staged.path
/usr/lib/systemd/system/ostree-finalize-staged.service
/usr/lib/systemd/system/ostree-prepare-root.service
/usr/lib/systemd/system/ostree-remount.service
/usr/lib/tmpfiles.d/ostree-tmpfiles.conf
/usr/share/bash-completion/completions/ostree
/usr/share/doc/ostree
/usr/share/doc/ostree/README.md
/usr/share/licenses/ostree
/usr/share/licenses/ostree/COPYING
/usr/share/man/man1/ostree-admin-cleanup.1.gz
/usr/share/man/man1/ostree-admin-config-diff.1.gz
/usr/share/man/man1/ostree-admin-deploy.1.gz
/usr/share/man/man1/ostree-admin-init-fs.1.gz
/usr/share/man/man1/ostree-admin-instutil.1.gz
/usr/share/man/man1/ostree-admin-os-init.1.gz
/usr/share/man/man1/ostree-admin-pin.1.gz
/usr/share/man/man1/ostree-admin-set-origin.1.gz
/usr/share/man/man1/ostree-admin-status.1.gz
/usr/share/man/man1/ostree-admin-switch.1.gz
/usr/share/man/man1/ostree-admin-undeploy.1.gz
/usr/share/man/man1/ostree-admin-unlock.1.gz
/usr/share/man/man1/ostree-admin-upgrade.1.gz
/usr/share/man/man1/ostree-admin.1.gz
/usr/share/man/man1/ostree-cat.1.gz
/usr/share/man/man1/ostree-checkout.1.gz
/usr/share/man/man1/ostree-checksum.1.gz
/usr/share/man/man1/ostree-commit.1.gz
/usr/share/man/man1/ostree-config.1.gz
/usr/share/man/man1/ostree-create-usb.1.gz
/usr/share/man/man1/ostree-diff.1.gz
/usr/share/man/man1/ostree-export.1.gz
/usr/share/man/man1/ostree-find-remotes.1.gz
/usr/share/man/man1/ostree-fsck.1.gz
/usr/share/man/man1/ostree-gpg-sign.1.gz
/usr/share/man/man1/ostree-init.1.gz
/usr/share/man/man1/ostree-log.1.gz
/usr/share/man/man1/ostree-ls.1.gz
/usr/share/man/man1/ostree-prune.1.gz
/usr/share/man/man1/ostree-pull-local.1.gz
/usr/share/man/man1/ostree-pull.1.gz
/usr/share/man/man1/ostree-refs.1.gz
/usr/share/man/man1/ostree-remote.1.gz
/usr/share/man/man1/ostree-reset.1.gz
/usr/share/man/man1/ostree-rev-parse.1.gz
/usr/share/man/man1/ostree-show.1.gz
/usr/share/man/man1/ostree-sign.1.gz
/usr/share/man/man1/ostree-static-delta.1.gz
/usr/share/man/man1/ostree-summary.1.gz
/usr/share/man/man1/ostree-trivial-httpd.1.gz
/usr/share/man/man1/ostree.1.gz
/usr/share/man/man1/rofiles-fuse.1.gz
/usr/share/man/man5/ostree.repo-config.5.gz
/usr/share/man/man5/ostree.repo.5.gz
/usr/share/ostree
/usr/share/ostree/trusted.gpg.d
/usr/share/ostree/trusted.gpg.d/README-gpg
/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/032ac465c9b81f86ce2d9d40bd805093e31395
/usr/lib/.build-id/93
/usr/lib/.build-id/93/e3429910a08954350543f1587b740487014a47
/usr/lib/.build-id/94
/usr/lib/.build-id/94/caa9d4abaedc637621dbb492f679bd3cbc3607
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/a32b4b1501fc3ae3da4aae160a7a40bc57367e
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/b9147aa2329489a27f73dc2f2fbb7253283467
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/85f71792331a2f4148e668de4d5b69587763b8
/usr/lib/dracut/modules.d/98ostree
/usr/lib/dracut/modules.d/98ostree/module-setup.sh
/usr/lib/ostree
/usr/lib/ostree/ostree-prepare-root
/usr/lib/ostree/ostree-remount
/usr/lib/systemd/system-generators/ostree-system-generator
/usr/lib/systemd/system/ostree-finalize-staged.path
/usr/lib/systemd/system/ostree-finalize-staged.service
/usr/lib/systemd/system/ostree-prepare-root.service
/usr/lib/systemd/system/ostree-remount.service
/usr/lib/tmpfiles.d/ostree-tmpfiles.conf
/usr/share/bash-completion/completions/ostree
/usr/share/doc/ostree
/usr/share/doc/ostree/README.md
/usr/share/licenses/ostree
/usr/share/licenses/ostree/COPYING
/usr/share/man/man1/ostree-admin-cleanup.1.gz
/usr/share/man/man1/ostree-admin-config-diff.1.gz
/usr/share/man/man1/ostree-admin-deploy.1.gz
/usr/share/man/man1/ostree-admin-init-fs.1.gz
/usr/share/man/man1/ostree-admin-instutil.1.gz
/usr/share/man/man1/ostree-admin-os-init.1.gz
/usr/share/man/man1/ostree-admin-pin.1.gz
/usr/share/man/man1/ostree-admin-set-origin.1.gz
/usr/share/man/man1/ostree-admin-status.1.gz
/usr/share/man/man1/ostree-admin-switch.1.gz
/usr/share/man/man1/ostree-admin-undeploy.1.gz
/usr/share/man/man1/ostree-admin-unlock.1.gz
/usr/share/man/man1/ostree-admin-upgrade.1.gz
/usr/share/man/man1/ostree-admin.1.gz
/usr/share/man/man1/ostree-cat.1.gz
/usr/share/man/man1/ostree-checkout.1.gz
/usr/share/man/man1/ostree-checksum.1.gz
/usr/share/man/man1/ostree-commit.1.gz
/usr/share/man/man1/ostree-config.1.gz
/usr/share/man/man1/ostree-create-usb.1.gz
/usr/share/man/man1/ostree-diff.1.gz
/usr/share/man/man1/ostree-export.1.gz
/usr/share/man/man1/ostree-find-remotes.1.gz
/usr/share/man/man1/ostree-fsck.1.gz
/usr/share/man/man1/ostree-gpg-sign.1.gz
/usr/share/man/man1/ostree-init.1.gz
/usr/share/man/man1/ostree-log.1.gz
/usr/share/man/man1/ostree-ls.1.gz
/usr/share/man/man1/ostree-prune.1.gz
/usr/share/man/man1/ostree-pull-local.1.gz
/usr/share/man/man1/ostree-pull.1.gz
/usr/share/man/man1/ostree-refs.1.gz
/usr/share/man/man1/ostree-remote.1.gz
/usr/share/man/man1/ostree-reset.1.gz
/usr/share/man/man1/ostree-rev-parse.1.gz
/usr/share/man/man1/ostree-show.1.gz
/usr/share/man/man1/ostree-sign.1.gz
/usr/share/man/man1/ostree-static-delta.1.gz
/usr/share/man/man1/ostree-summary.1.gz
/usr/share/man/man1/ostree-trivial-httpd.1.gz
/usr/share/man/man1/ostree.1.gz
/usr/share/man/man1/rofiles-fuse.1.gz
/usr/share/man/man5/ostree.repo-config.5.gz
/usr/share/man/man5/ostree.repo.5.gz
/usr/share/ostree
/usr/share/ostree/trusted.gpg.d
/usr/share/ostree/trusted.gpg.d/README-gpg
/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/3e4d6ba4b2738b337fbae5aafec1540991f768
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/81fea0c7acd896f9d2d9d4c78a138fc06160a4
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/ed112a1fd7d83113c6d8b390ac63e5b7f6c00d
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/5426202dc8fd23f27c7dcaa1a56e8cb762eca8
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/11f140b2e2e7ac2a022bd6b42e6a86aa7a960c
/usr/lib/.build-id/db
/usr/lib/.build-id/db/d362e6562586916905de3bef55d7bb89ec489b
/usr/lib/dracut/modules.d/98ostree
/usr/lib/dracut/modules.d/98ostree/module-setup.sh
/usr/lib/ostree
/usr/lib/ostree/ostree-prepare-root
/usr/lib/ostree/ostree-remount
/usr/lib/systemd/system-generators/ostree-system-generator
/usr/lib/systemd/system/ostree-finalize-staged.path
/usr/lib/systemd/system/ostree-finalize-staged.service
/usr/lib/systemd/system/ostree-prepare-root.service
/usr/lib/systemd/system/ostree-remount.service
/usr/lib/tmpfiles.d/ostree-tmpfiles.conf
/usr/share/bash-completion/completions/ostree
/usr/share/doc/ostree
/usr/share/doc/ostree/README.md
/usr/share/licenses/ostree
/usr/share/licenses/ostree/COPYING
/usr/share/man/man1/ostree-admin-cleanup.1.gz
/usr/share/man/man1/ostree-admin-config-diff.1.gz
/usr/share/man/man1/ostree-admin-deploy.1.gz
/usr/share/man/man1/ostree-admin-init-fs.1.gz
/usr/share/man/man1/ostree-admin-instutil.1.gz
/usr/share/man/man1/ostree-admin-os-init.1.gz
/usr/share/man/man1/ostree-admin-pin.1.gz
/usr/share/man/man1/ostree-admin-set-origin.1.gz
/usr/share/man/man1/ostree-admin-status.1.gz
/usr/share/man/man1/ostree-admin-switch.1.gz
/usr/share/man/man1/ostree-admin-undeploy.1.gz
/usr/share/man/man1/ostree-admin-unlock.1.gz
/usr/share/man/man1/ostree-admin-upgrade.1.gz
/usr/share/man/man1/ostree-admin.1.gz
/usr/share/man/man1/ostree-cat.1.gz
/usr/share/man/man1/ostree-checkout.1.gz
/usr/share/man/man1/ostree-checksum.1.gz
/usr/share/man/man1/ostree-commit.1.gz
/usr/share/man/man1/ostree-config.1.gz
/usr/share/man/man1/ostree-create-usb.1.gz
/usr/share/man/man1/ostree-diff.1.gz
/usr/share/man/man1/ostree-export.1.gz
/usr/share/man/man1/ostree-find-remotes.1.gz
/usr/share/man/man1/ostree-fsck.1.gz
/usr/share/man/man1/ostree-gpg-sign.1.gz
/usr/share/man/man1/ostree-init.1.gz
/usr/share/man/man1/ostree-log.1.gz
/usr/share/man/man1/ostree-ls.1.gz
/usr/share/man/man1/ostree-prune.1.gz
/usr/share/man/man1/ostree-pull-local.1.gz
/usr/share/man/man1/ostree-pull.1.gz
/usr/share/man/man1/ostree-refs.1.gz
/usr/share/man/man1/ostree-remote.1.gz
/usr/share/man/man1/ostree-reset.1.gz
/usr/share/man/man1/ostree-rev-parse.1.gz
/usr/share/man/man1/ostree-show.1.gz
/usr/share/man/man1/ostree-sign.1.gz
/usr/share/man/man1/ostree-static-delta.1.gz
/usr/share/man/man1/ostree-summary.1.gz
/usr/share/man/man1/ostree-trivial-httpd.1.gz
/usr/share/man/man1/ostree.1.gz
/usr/share/man/man1/rofiles-fuse.1.gz
/usr/share/man/man5/ostree.repo-config.5.gz
/usr/share/man/man5/ostree.repo.5.gz
/usr/share/ostree
/usr/share/ostree/trusted.gpg.d
/usr/share/ostree/trusted.gpg.d/README-gpg
References
Summary
In this tutorial we learn how to install ostree
on Fedora 34 using yum and dnf.