Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.64 KB

update-packages-on-a-device.md

File metadata and controls

52 lines (37 loc) · 1.64 KB

Update Fuchsia packages on a device

The ffx target update commands can check and perform software updates on a Fuchsia device.

Concepts

During development, you can trigger a Fuchsia device to check and perform updates on all Fuchsia packages known to the device. To check for updates, the device needs at least one running Fuchsia package repository, which serves as an update channel for the device.

The device compares its Fuchsia packages to the Fuchsia packages that are available in the update channel. For each Fuchsia package, when the device detects that the Merkle root of the package does not match the Merkle root of the same package in the update channel, the device performs a software update for that Fuchsia package.

Check and perform software updates {:#check-and-perform-software-updates}

To check and perform software updates on a Fuchsia device, run the following command:

ffx target update check-now

The device may reboot first before it starts updating.

List update channels {:#list-update-channels}

To view the list of update channels, run the following command:

ffx target update channel list

This command prints output similar to the following:

$ ffx target update channel list
known channels:
fuchsiasamples.com