我目前正在开展一个项目,该项目要求我在程序执行时检查 ubuntu 补丁,我想知道是否有办法检查并验证命令上是否有新的安全补丁可用。 如果有,那么调用它的命令行方法是什么。
答案1
是的 - 页面上明确说明了canonical-livepatch help
:
canonical-livepatch - Canonical livepatch client VERSION: 10.5.6 AUTHOR: Canonical Livepatch Team COMMANDS: config - configure livepatching on the machine disable - disable livepatching on the machine enable - enable livepatching on the machine help - display help kernel-upgrade-required - indicate whether a kernel upgrade is required refresh - immediately download and apply any available livepatch status - show kernel's livepatch status
所以,去做canonical-livepatch refresh
你想做的事吧(root
当然需要有特权)。