# Update Fuchsia packages on a device

The [`ffx target update`](https://fuchsia.dev/reference/tools/sdk/ffx#update_3) 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](https://fuchsia.dev/docs/development/tools/ffx/workflows/create-a-package-repository), which serves as
an [update channel](https://fuchsia.dev/fuchsia-src/development/tools/ffx/workflows/update-packages-on-a-device#list-update-channels) 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](https://fuchsia.dev/docs/concepts/security/merkleroot) 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

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

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

[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/tools/ffx/workflows/update-packages-on-a-device.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/tools/ffx/workflows/update-packages-on-a-device.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/tools/ffx/workflows/update-packages-on-a-device.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/tools/ffx/workflows/update-packages-on-a-device.md "Edit the source code of this page")