rpm-ostree¶
- ID
rpm-ostree- Links
- Version requirement
>= 2023.6
- Platforms
🐧 Linux
- Operations
installed·outdated·search·install·upgrade_all·remove·sync·cleanup- purl types
pkg:rpm/·pkg:rpm-ostree/- CLI name
rpm-ostree- Issues and PRs
- Source
rpm-ostree, the hybrid image and package system of Fedora’s ostree variants.
Fedora IoT, the Fedora Atomic Desktops (Silverblue, Kinoite, …) and Fedora
CoreOS boot a read-only base image, on which rpm-ostree layers RPM
packages. dnf cannot write to the read-only /usr of these hosts, so
rpm-ostree is the only manager that reaches the packages of the Fedora
repositories.
mpm considers this manager available only on a host that booted from an
ostree deployment, which /run/ostree-booted marks.
Each install, removal and upgrade writes a new deployment, which becomes
active at the next boot. Run systemctl reboot to switch to it. The
installed listing reads the deployment that boots next, so a package shows
there as soon as its install succeeds. To make an install active at once,
add --apply-live to it:
[mpm.overrides.rpm-ostree]
operations.install.extra_args = ["--apply-live"]
upgrade --all follows the ref of the deployment. On Fedora IoT, the
fedora/stable ref moves to each new Fedora release, so an upgrade can
move the host to the next major version. rpm-ostree rollback returns to
the previous deployment.
The daemon refuses every change, and the update check of outdated, from
a user who is not root. mpm runs these commands with sudo.
What mpm adds to rpm-ostree¶
Through mpm, rpm-ostree gains --exact search, to narrow results to exact names.
Bigger still, mpm reaches across every manager at once: mpm installed and mpm outdated cover rpm-ostree alongside dnf, dnf5, microdnf, urpmi, yum, zypper and any other manager you run in one table, mpm upgrade --all updates them together, and mpm sbom exports the whole machine as one bill of materials.
Every mpm command also gains --dry-run and --plan previews, cross-scheme version comparison and purl identifiers. See manager augmentations for how each one is built.
Your rpm-ostree commands, in mpm¶
You already know rpm-ostree: each operation maps one-to-one onto mpm, in an interface shared by every manager.
To… |
With |
With |
|---|---|---|
List what’s installed |
|
|
List outdated packages |
|
|
Search for a package |
|
|
Install a package |
|
|
Upgrade everything |
|
|
Remove a package |
|
|
Clear caches |
|
|
Prefix any command above with --dry-run to simulate the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.
Operations¶
Operation |
Supported |
Notes |
|---|---|---|
|
✅ |
Lists the layered packages only: the packages of the base image are left out. |
|
✅ |
|
|
||
|
✅ |
Exact search backfilled by |
|
✅ |
|
|
❌ |
Upgrades the base image and every layered package together: no verb upgrades one package. |
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
Configuration¶
Ignore
rpm-ostreeon thempmCLI by passing the--no-rpm-ostreeoption.Ignore it for every run in your configuration:
[mpm] rpm-ostree = false
Raise the timeout of all
rpm-ostreecalls:[mpm.overrides.rpm-ostree] timeout = 900
Run
mpm config-template rpm-ostreeto print all overridable settings for your configuration file:[mpm.overrides.rpm-ostree] cli_names = [ "rpm-ostree", ] cli_search_path = [] dry_run = false plan = false post_args = [] pre_args = [] pre_cmds = [] requirement = ">=2023.6" stop_on_error = false unmaintained = false version_cli_options = [ "--version", ] version_regexes = [ "Version: '(?P<version>[^']+)'", ] [mpm.overrides.rpm-ostree.operations.cleanup_cache] extra_args = [] [mpm.overrides.rpm-ostree.operations.install] extra_args = [] [mpm.overrides.rpm-ostree.operations.installed] extra_args = [] [mpm.overrides.rpm-ostree.operations.outdated] extra_args = [] [mpm.overrides.rpm-ostree.operations.remove] extra_args = [] [mpm.overrides.rpm-ostree.operations.search] extra_args = [] [mpm.overrides.rpm-ostree.operations.sync] extra_args = [] [mpm.overrides.rpm-ostree.operations.upgrade_all] extra_args = []
Recipes¶
A few jobs you would otherwise script around rpm-ostree, one mpm command each:
Snapshot and clone a machine:
mpm --rpm-ostree dump rpm-ostree.toml, thenmpm restore rpm-ostree.tomlon the next one.Export a compliance SBOM:
mpm --rpm-ostree sbom(CycloneDX by default,--spdxfor SPDX).
Privilege escalation¶
System-wide manager: mpm wraps its privileged operations in sudo out of the box. Instead of letting the tool prompt mid-run, mpm primes the credential cache up-front, with a single branded password prompt at most. Turn escalation off for rootless setups with --no-sudo or the per-manager sudo override.
Its privileged operations are cleanup, install, outdated, remove, sync, upgrade_all.
See privilege escalation for the full policy.
Cooldown¶
State of rpm-ostree’s release-age gating, from the cooldown support table:
Status: ➖ N/A (Fedora curates and stages its image and repositories)
A cooldown only pays off where a compromised release can be withdrawn while the clock runs, and can only be emulated where the registry dates its releases. From the retraction table:
Registry: Distro binary archives (
pkg:deb,pkg:rpm,pkg:alpm,pkg:apk)Retraction: Index revert: removal is an archive operation and the mirror is rebuilt without the package. Debian, for one, requires filing an
RM:bug againstftp.debian.org(developers-reference)Publish date: ❌ the version string is the distro maintainer’s build, carrying no upstream publication date
With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --cooldown best-effort opts back in.
Reference traces¶
A collection of raw native outputs captured from the manager’s own CLI and recorded in the manager source. If you know rpm-ostree well and a transcript below looks wrong, or a newer release changed its output format, report it.
$ rpm-ostree status --jsonpath '$.deployments[0]'
[
{
"unlocked" : "none",
"base-local-replacements" : [],
"requested-local-packages" : [],
"base-commit-meta" : {
"ostree.bootable" : true,
"ostree.composefs.digest.v0" : [
238,
21,
197,
170,
215,
4,
118,
39,
93,
199,
144,
139,
83,
134,
22,
107,
46,
47,
167,
90,
186,
123,
59,
149,
201,
224,
218,
117,
252,
214,
162,
186
],
"rpmostree.inputhash" : "c20f6bd494cc113df869766070443fed1221640f9b1777daf43f892d7f27a142",
"version" : "45.20261118.0",
"rpmostree.initramfs-args" : [
"--no-hostonly",
"--add",
"ignition watchdog"
],
"ostree.linux" : "7.3.4-300.fc45.aarch64",
"rpmostree.rpmmd-repos" : [
{
"id" : "repo-0",
"timestamp" : 7014605364523958272
},
{
"id" : "repo-1",
"timestamp" : 4000882475696914432
},
{
"id" : "repo-2",
"timestamp" : -4832935889971707904
},
{
"id" : "repo-3",
"timestamp" : -3893084345665060864
}
]
},
"base-removals" : [],
"gpg-enabled" : true,
"pinned" : false,
"osname" : "fedora-iot",
"base-remote-replacements" : { },
"origin" : "fedora-iot:fedora/stable/aarch64/iot",
"regenerate-initramfs" : false,
"checksum" : "f392b68304abf7f3e65f94efd6b5d19f430f7f13757f0de581d6276ef42516f6",
"requested-base-local-replacements" : [],
"id" : "fedora-iot-f392b68304abf7f3e65f94efd6b5d19f430f7f13757f0de581d6276ef42516f6.0",
"version" : "45.20261118.0",
"base-version" : "45.20261118.0",
"base-checksum" : "bb7e47ed47aaff673f8e9351c987e52006c93467a4b90060fad0a7b2c353f8c3",
"requested-base-removals" : [],
"requested-local-fileoverride-packages" : [],
"serial" : 0,
"base-timestamp" : 1794999966,
"staged" : false,
"booted" : true,
"layered-commit-meta" : {
"rpmostree.clientlayer" : true,
"version" : "45.20261118.0",
"rpmostree.clientlayer_version" : 6,
"rpmostree.state-sha512" : "9594d534fb5df2931ad9708e92ff62aa59785dc20a9c858ba9b0b635c448de57f2f2d1a0f987e3da5635a2eb799afaea38c46b6e1d9cb89e4a24a9d33583b9ae",
"rpmostree.rpmmd-repos" : [
{
"id" : "fedora",
"timestamp" : 1793218657
},
{
"id" : "fedora-cisco-openh264",
"timestamp" : 1774349753
},
{
"id" : "updates",
"timestamp" : 1795309053
}
],
"ostree.linux" : "7.3.4-300.fc45.aarch64",
"ostree.bootable" : true
},
"packages" : [
"nyancat"
],
"requested-packages" : [
"nyancat"
],
"timestamp" : 1795334884,
"signatures" : [
[
true,
false,
false,
false,
false,
"4F50A6114CD5C6976A7F1179655A4B02F577861E",
1795000005,
0,
"RSA",
"SHA256",
"Fedora",
"[email protected]",
"4F50A6114CD5C6976A7F1179655A4B02F577861E",
0,
0
]
]
}
]
$ sudo rpm-ostree upgrade --check
2 metadata, 0 content objects fetched; 24 KiB transferred in 5 seconds; 0 bytes content written
Receiving metadata objects: 1/(estimating) 148 bytes/s 592 bytes...done
Enabled rpm-md repositories: fedora fedora-cisco-openh264 updates
Updating metadata for 'fedora'...done
Updating metadata for 'fedora-cisco-openh264'...done
Updating metadata for 'updates'...done
Importing rpm-md...done
rpm-md repo 'fedora'; generated: 2026-10-28T20:17:37Z solvables: 66681
rpm-md repo 'fedora-cisco-openh264'; generated: 2026-03-24T10:55:53Z solvables: 3
rpm-md repo 'updates'; generated: 2026-11-22T00:57:33Z solvables: 11615
AvailableUpdate:
Version: 45.20261121.0 (2026-11-21T11:05:41Z)
Commit: 9282cc873b386fc0e61815760a55d0ec9aa46050ceb1c298c31600878d51e665
GPGSignature: Valid signature by 4F50A6114CD5C6976A7F1179655A4B02F577861E
SecAdvisories: 2 important
Diff: 3 upgraded
$ rpm-ostree status --jsonpath $.cached-update.rpm-diff.upgraded
[
[
[
0,
"ignition",
[
"2.27.0-2.fc45",
"aarch64"
],
[
"2.28.0-2.fc45",
"aarch64"
]
],
[
0,
"ignition-edge",
[
"2.27.0-2.fc45",
"aarch64"
],
[
"2.28.0-2.fc45",
"aarch64"
]
],
[
0,
"sqlite-libs",
[
"3.53.4-1.fc45",
"aarch64"
],
[
"3.54.1-2.fc45",
"aarch64"
]
]
]
]
Version check¶
The version is probed by running:
$ rpm-ostree --version
rpm-ostree:
Version: '2026.3'
Git: 937cd35dc42acb965b72e03f662cf4e19e770277
Features:
- rust
- compose
- container
- fedora-integration
and extracted with:
r"Version: '(?P<version>[^']+)'"
Changelog¶
8.4.0.dev0(unreleased)Add
rpm-ostreefor Fedora’s image-based variants, withinstalled,outdated,search,install,upgrade,remove,syncandcleanupsupport.