How To Install ostree on CentOS 8

ostree is Tool for managing bootable, immutable filesystem trees Tool for managing bootable, immutable filesystem trees

Introduction

In this tutorial we learn how to install ostree on CentOS 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. ostree 2020.7 4.el8 x86_64 245 k ostree-2020.7-4.el8.src.rpm appstream 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ostree.

Install ostree on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8

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

sudo dnf remove ostree

ostree Package Contents on CentOS 8

/usr/bin/ostree
/usr/bin/rofiles-fuse
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/a92049dec7b518f1c1deb362c096e7657eb930
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/ed328b7a65f1f9dbb2a863b1f668e0a0234707
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/ace1ae564f037491c14e06e86a9047b3d10f80
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/dca63038ca85214dda13f3e14cda44ca4871a9
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/44ec37011796a6f84f9f129bfee5eb59643676
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/0fdfca033704a7480838b5567a118a4508218b
/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/15
/usr/lib/.build-id/15/5e00ad59ecf474e5aa7a5b91cd3b26fab7a5da
/usr/lib/.build-id/38
/usr/lib/.build-id/38/a05989d5fa3173a5530260f048c7fca680903d
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/44490ec1d3e49d1115da81f8e0166d97260425
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/fcb938fbb472224d46827d15574d6cbf91f5f1
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/94e2c1ea9a3803ebdab8019daa974fb6849c0f
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/410c000042d586820ba91f2374d71d99f73418
/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 CentOS 8 using yum and dnf.