← 返回命令列表

Linux command

rpm-ostree 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

rpm-ostree status

Preview

rpm-ostree upgrade --preview

Upgrade

rpm-ostree upgrade -r

Rollback

rpm-ostree rollback -r

Install

rpm-ostree install [package] -r

Install

rpm-ostree install -A [package]

Rebase

rpm-ostree rebase [ostree-remote:branch]

说明

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.

参数

-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, -A
Apply changes to the booted deployment without reboot (install/uninstall only)
--force-replacefiles
Allow overwriting files owned by other packages when installing
--download-only
Fetch packages without deploying
-n, --dry-run
Preview changes without executing
--json
Output in JSON format (status command)

FAQ

What is the rpm-ostree command used for?

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.

How do I run a basic rpm-ostree example?

Run `rpm-ostree status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r, --reboot do in rpm-ostree?

Reboot after operation