How To Install rpm-ostree on Rocky Linux 8

In this tutorial we learn how to install rpm-ostree on Rocky Linux 8. rpm-ostree is Hybrid image/package system

Introduction

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

What is rpm-ostree

rpm-ostree is a hybrid image/package system. It supports “composing” packages on a build server into an OSTree repository, which can then be replicated by client systems with atomic upgrades. Additionally, unlike many “pure” image systems, with rpm-ostree each client system can layer on additional packages, providing a “best of both worlds” approach.

We can use yum or dnf to install rpm-ostree on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rpm-ostree.

Install rpm-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 rpm-ostree using dnf by running the following command:

sudo dnf -y install rpm-ostree

Install rpm-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 rpm-ostree using yum by running the following command:

sudo yum -y install rpm-ostree

How To Uninstall rpm-ostree on Rocky Linux 8

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

sudo dnf remove rpm-ostree

rpm-ostree Package Contents on Rocky Linux 8

/etc/rpm-ostreed.conf
/usr/bin/rpm-ostree
/usr/lib/.build-id
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/14ee78b79dded441346a98e115d255906836c9
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/ebf9a5775715670f6ae7de3f32158e9aa7e604
/usr/lib/systemd/system/rpm-ostree-bootstatus.service
/usr/lib/systemd/system/rpm-ostreed-automatic.service
/usr/lib/systemd/system/rpm-ostreed-automatic.timer
/usr/lib/systemd/system/rpm-ostreed.service
/usr/lib64/rpm-ostree
/usr/lib64/rpm-ostree/libdnf.so.2
/usr/lib64/rpm-ostree/rpm-ostree-0-integration.conf
/usr/libexec/rpm-ostreed
/usr/share/bash-completion/completions/rpm-ostree
/usr/share/dbus-1/system-services
/usr/share/dbus-1/system-services/org.projectatomic.rpmostree1.service
/usr/share/dbus-1/system.d/org.projectatomic.rpmostree1.conf
/usr/share/doc/rpm-ostree
/usr/share/doc/rpm-ostree/COPYING.GPL
/usr/share/doc/rpm-ostree/COPYING.LGPL
/usr/share/doc/rpm-ostree/LICENSE
/usr/share/doc/rpm-ostree/README.md
/usr/share/man/man1/rpm-ostree.1.gz
/usr/share/man/man5/rpm-ostreed.conf.5.gz
/usr/share/man/man8/rpm-ostreed-automatic.service.8.gz
/usr/share/man/man8/rpm-ostreed-automatic.timer.8.gz
/usr/share/polkit-1/actions/org.projectatomic.rpmostree1.policy

References

Summary

In this tutorial we learn how to install rpm-ostree on Rocky Linux 8 using yum and dnf.