How To Install ostree on Fedora 36

In this tutorial we learn how to install ostree in Fedora 36. ostree is Tool for managing bootable, immutable filesystem trees

Introduction

In this tutorial we learn how to install ostree on Fedora 36.

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.

We can use yum or dnf to install ostree on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ostree.

Install ostree on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ostree using dnf by running the following command:

sudo dnf -y install ostree

Install ostree on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

To uninstall only the ostree package we can use the following command:

sudo dnf remove ostree

ostree Package Contents on Fedora 36

/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/39aff64c8523dfe9ae6087533d76a35faa614a
/usr/lib/.build-id/53
/usr/lib/.build-id/53/e9a7c90623ee14d6042d2038d19cc65a1170a7
/usr/lib/.build-id/82
/usr/lib/.build-id/82/15bb9d6f47a3beb7fe4e466ff3ac94e12429a7
/usr/lib/.build-id/97
/usr/lib/.build-id/97/515b7198f3b3fd7044075111c27f7febf349e2
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/793e3c23648723b7393b19a7aef6a56c8ef9e4
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/93c778e1fabf7084ff2c9817d6f008141468b5
/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 36 using yum and [dnf]((/fedora/36/dnf/).