Versão resumida:
cat /var/run/reboot-required.pkgs
Explicação:
Parece que existe uma maneira fácil de extrair automaticamente as informações solicitadas.
Dentro dos arquivos .deb , existem arquivos de controle para instalação, incluindo postinst (executado após a instalação).
Por exemplo, em linux-image-2.6.35-25-generic_2.6.35-25.44_amd64.deb , o% postinst inclui
my $notifier = "/usr/share/update-notifier/notify-reboot-required";
my $warn_reboot = 'Yes'; # Warn that we are installing a version of
# the kernel we are running
e
# Warn of a reboot
if (-x $notifier) {
system($notifier);
}
O script de shell
/usr/share/update-notifier/notify-reboot-required atualizações em /var/run/reboot-required e /var/run/reboot-required.pkgs .
O último arquivo contém uma lista de pacotes solicitando uma reinicialização.