Ubuntu 22.04でapt install時のdaemon/kernel 再起動確認ダイアログを出さない方法
needrestart
というツールの設定になるので、confファイルを作って設定を書いておいてあげると勝手にrestartしてくれる。
$ echo "\$nrconf{restart} = 'a';" | sudo tee /etc/needrestart/conf.d/50local.conf $ echo "\$nrconf{kernelhints} = '0';" | sudo tee -a /etc/needrestart/conf.d/50local.conf
以上。