$linuxjunkies
>

rpi-update(8)

Update the Raspberry Pi firmware to the latest version from the official repository.

UbuntuDebianFedoraArch

Synopsis

rpi-update [OPTION]... [COMMIT_HASH]

Description

rpi-update downloads and installs the latest Raspberry Pi firmware, bootloader, and kernel directly from the official GitHub repository. It replaces files in /boot and /lib/modules, requiring a reboot to take effect.

By default, it updates to the latest commit on the master branch. You can specify a particular commit hash to pin to a specific firmware version. This tool should be used cautiously in production environments as it may introduce instability or breaking changes.

Common options

FlagWhat it does
-h, --helpShow help message and exit
-d, --dry-runSimulate the update without making changes; shows what would be updated
--skip-backupDo not create a backup of the current firmware before updating
--skip-reprepareSkip the reprepare step after firmware installation
--rootSpecify an alternate root filesystem path (useful for updating SD cards on another machine)
--branchUpdate from a different branch (default: master); e.g., --branch stable

Examples

Update to the latest firmware from the master branch

sudo rpi-update

Preview what would be updated without making any changes

sudo rpi-update -d

Update to a specific firmware commit hash (for downgrading or pinning versions)

sudo rpi-update a01041a9

Update without creating a backup of the current firmware

sudo rpi-update --skip-backup

Update firmware on an SD card mounted at /mnt/sdcard (from another machine)

sudo rpi-update --root /mnt/sdcard

Update to the latest stable branch firmware instead of master

sudo rpi-update --branch stable

Related commands