← 返回命令列表

Linux command

bootc 命令

文本

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

常用示例

Example

bootc status

Example

bootc upgrade --check

Example

bootc upgrade --apply

Change OS

bootc switch [image]

Reboot

bootc rollback

Example

bootc edit

Install to a target block device

bootc install to-disk --target-no-signature-verification [/dev/sda]

Show status in JSON format

bootc status --format json

说明

bootc manages transactional, in-place operating system updates using OCI/Docker container images. It enables atomic system upgrades where the entire OS is replaced by a new container image at boot time. The tool works with image-based Linux distributions like Fedora CoreOS and RHEL and provides rollback capability if updates cause issues. It builds on OSTree for atomic deployments and uses standard container registries for image distribution.

参数

--check
Check for updates without applying them (used with upgrade)
--apply
Apply upgrade and reboot (used with upgrade)
--format _FORMAT_
Output format for status: json or yaml
--quiet
Suppress non-error output

FAQ

What is the bootc command used for?

bootc manages transactional, in-place operating system updates using OCI/Docker container images. It enables atomic system upgrades where the entire OS is replaced by a new container image at boot time. The tool works with image-based Linux distributions like Fedora CoreOS and RHEL and provides rollback capability if updates cause issues. It builds on OSTree for atomic deployments and uses standard container registries for image distribution.

How do I run a basic bootc example?

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

What does --check do in bootc?

Check for updates without applying them (used with upgrade)