I have unattended-upgrade
set up on my Ubuntu systems. Occasionally I will log in remotely to one of them and I'll see a message informing me that I need to reboot the system (in order to complete an upgrade). Is there a way to determine the specific package (or set of packages) which is triggering this notice?
Ubuntu – How to tell what package requires a reboot of the system
package-management
Related Question
- Ubuntu – How to correctly install multiple non-package Distribute/virtualenv/pip ecosystems on Ubuntu
- Ubuntu – Preventing pip from removing system packages during upgrade
- Ubuntu – apt-get package is not available but is referred to by another package – but cannot find that package
- Ubuntu – How to make a deb file which tells the system a reboot is required
Best Answer
Short version:
Explanation:
Looks like there is an easy way to automatically extract the requested information.
Inside
.deb
files there are control files for installation, includingpostinst
(run after installation).For example, in
linux-image-2.6.35-25-generic_2.6.35-25.44_amd64.deb
,postinst
includesand
The shell script
/usr/share/update-notifier/notify-reboot-required
updates/var/run/reboot-required
and/var/run/reboot-required.pkgs
.The latter file contains a list of packages requesting a reboot.