How To Install rpm-ostree on CentOS 8

rpm-ostree is Hybrid image/package system

Introduction

In this tutorial we learn how to install rpm-ostree on CentOS 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 CentOS 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 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 rpm-ostree using dnf by running the following command:

sudo dnf -y install rpm-ostree

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

sudo yum -y install rpm-ostree

How To Uninstall rpm-ostree on CentOS 8

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

sudo dnf remove rpm-ostree

rpm-ostree Package Contents on CentOS 8

/etc/rpm-ostreed.conf
/usr/bin/rpm-ostree
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/c5a4a754f9d7231b942be047e55d3844ba63c9
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/6374db5dec40209acdd66dcad9a912ce9870f0
/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 CentOS 8 using yum and dnf.