From ArchWiki
Revision as of 18:01, 27 February 2018 by Archange (talk | contribs) (Add a wiki page on fwupd{,ate})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

fwupd is a simple daemon allowing to update some devices firmware, including UEFI BIOS for several machines thanks to fwupdate.

Supported devices are listed here and more are to come.


Install fwupd, this will also install fwupdate as a required dependency.

See #Setup for UEFI BIOS upgrade if you intend such an use.


You can get available devices by running:

$ fwupdmgr get-devices
Note: Some returned devices might not be updatable through fwupd, e.g. Intel integrated graphics.

To refresh metadata on available updates:

$ fwupdmgr refresh

To check which devices have updates:

$ fwupdmgr get-updates

To install updates:

$ fwupdmgr update
Note: Some updates might require root rights.

Setup for UEFI BIOS upgrade

  1. Make sure you are booted in UEFI mode.
  2. Verify your EFI variables are accessible.
  3. Mount your EFI System Partition (ESP) properly. esp is used to denote the mountpoint in this article.

Verifying leftovers from previous installations

If you had previously installed fwupdate on any other Linux installation, make sure to remove their leftovers in efivars. You can find then by issuing this command:

$ ls /sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416

If they are any results, remove them this way:

# chattr -i /sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416
# rm -f /sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416

Installing and updating fwupdate

Installation and updates to new fwupdate versions requires user intervention. However the update procedure can be automated using pacman hooks (but the manual procedure must be run at least once upon install).


Copy the /usr/lib/fwupdate/EFI folder to your ESP:

# cp -r /usr/lib/fwupdate/EFI esp


Pacman hooks are provided in the fwupdate for system with ESP at /boot or /boot/efi. If this is your case you can just symlink the relevant file so that it is taken into account:

  • for system with esp as /boot:
# ln -s /etc/pacman.d/hooks/fwupdate-efi-copy.hook /usr/share/doc/fwupdate/esp-as-boot.hook
  • for system with esp as /boot/efi
# ln -s /etc/pacman.d/hooks/fwupdate-efi-copy.hook /usr/share/doc/fwupdate/esp-as-boot-efi.hook

Else, adapt the snippet below to suit your esp mountpoint:

Type = File
Operation = Install
Operation = Upgrade
Target = usr/lib/fwupdate/EFI/*

Description = Copying fwupdate to EFI directory...
When = PostTransaction
Exec = /usr/bin/cp -r /usr/lib/fwupdate/EFI esp

Running fwupd

Follow #Usage, but take care of the two following points.

Note: If you don’t see an UEFI entry but are in UEFI mode, check BIOS setup for an option to turn on UEFI capsule updates.
Warning: If your ESP is not mounted at /boot/efi (e.g. at /boot), you need to wait for a future fwupd release to support this case.