How To Install ostree on Rocky Linux 8

In this tutorial we learn how to install ostree on Rocky Linux 8. ostree is Tool for managing bootable, immutable filesystem trees

Introduction

In this tutorial we learn how to install ostree on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ostree.

Install ostree on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8

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

sudo dnf remove ostree

ostree Package Contents on Rocky Linux 8

/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/d4d04d6c3efccb7e4efac9e41899ff024819dd
/usr/lib/.build-id/77
/usr/lib/.build-id/77/aa6c785a0270f52ee35c1225b646520b98c4cd
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/8a1795251fc78444197f9b98d10aa83616e307
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/fcb94bf933ffdd0781772d5b0319f8bd535c16
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/d67cbd73cc6f87fdecb1fbe16aa07234ebafa1
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/972f59d9566c957cfc898cd8776419952c82fe
/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/1d
/usr/lib/.build-id/1d/c99aca05593e8e7f747faf3dfce2edc85429b9
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/87b913c7c824d3a0d3afedcd12a006af56124e
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/e62eea910d3c08d75b9c5334f36c5c894e9ec6
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/cad5bb1f83e33db049fd56e0b8a0097c7ef529
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/39a4a332076ab9c247c52fc9dde97518b7bfc6
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/c1c89a643d1a9be5e47bad1dfc9f7932afd079
/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 Rocky Linux 8 using yum and dnf.