之前曾经介绍过 KDE 的新软件中心应用 Discover 整合了 fwupd 这个 Linux 中的固件更新功能。但是那时候用起来还是不太顺手。今天再次通过命令行尝试使用 fwupd 来更新 ThinkPad T470s 的固件,已经没有任何问题了,感觉非常方便,而且还可以选择以后再重新启动系统。
通过命令行的使用方法很简单。查询更新,
sudo fwupdmgr get-updates
如果有更新的话就可以直接下载安装,
sudo fwupdmgr update
看看我刚在 ThinkPad T470s 上查询和升级的结果(为了省地方,那些细节被我省略掉了),
# fwupdmgr get-updates
Firmware metadata has not been updated for 30 days and may not be up to date.
Update now? (Requires internet connection) [y|N]: y
Fetching metadata https://cdn.fwupd.org/downloads/firmware.xml.gz
Downloading… [***************************************]
Fetching signature https://cdn.fwupd.org/downloads/firmware.xml.gz.asc
Successfully downloaded new metadata: 5 local devices supported
• Thunderbolt Controller has no available firmware updates
• Unifying Receiver has the latest available firmware version
20HFCTO1WW
│
├─SAMSUNG MZVLW512HMJP-000L7:
│ │ Device ID: ..........
│ │ .......... ..........
│ │ Device Flags: • Internal device
│ │ • Updatable
│ │ • Requires AC power
│ │ • Supported on remote server
│ │ • Needs a reboot after installation
│ │ • Device is usable