LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rpm-ostree

Hybrid image and package system for immutable OS

TLDR

Show deployment status
$ rpm-ostree status
copy
Preview available upgrades
$ rpm-ostree upgrade --preview
copy
Upgrade and reboot
$ rpm-ostree upgrade -r
copy
Rollback to previous deployment
$ rpm-ostree rollback -r
copy
Install package and reboot
$ rpm-ostree install [package] -r
copy

SYNOPSIS

rpm-ostree [status|upgrade|rollback|install|uninstall] [-r] [options]

DESCRIPTION

rpm-ostree combines OSTree image-based deployment with RPM package layering. It manages immutable base images while allowing package customization, used by Fedora Silverblue, CoreOS, and similar systems.Changes create new deployments rather than modifying the running system. Multiple deployments can coexist, enabling easy rollback to previous states.

PARAMETERS

-r, --reboot

Reboot after operation
--preview
Show what would be upgraded
--check
Check for updates only
--cache-only
Use only cached data
--idempotent
Skip operation if the request is already applied
--allow-inactive
Permit packages that are already in the base layer
--apply-live
Apply changes to booted deployment without reboot
--download-only
Fetch packages without deploying
-n, --dry-run
Preview changes without executing

COMMANDS

status

Show current deployments
upgrade
Download and prepare upgrade
rollback
Switch to previous deployment
install
Layer package on base image
uninstall
Remove layered package
rebase
Switch to different base image
override
Override base packages
deploy
Create new deployment from a specific version/branch/commit
kargs
Manage kernel boot arguments
initramfs
Handle client-side initramfs regeneration
cleanup
Remove pending deployments and cached data
db subcommand
RPM database operations (diff, list, version)
cancel
Stop a pending transaction
apply-live
Apply changes to the booted deployment without reboot

CAVEATS

Changes require reboot to take effect. Base system is immutable. Package layering has overhead. Some packages may conflict with immutable model.

HISTORY

rpm-ostree was developed by Red Hat to combine the reliability of OSTree image deployment with the flexibility of RPM package management for container-focused and immutable desktop distributions.

SEE ALSO

ostree(1), rpm(8), flatpak(1)

Copied to clipboard
Kai