Needrestart - Paman Хук на необходимость перезагрузки после обновления
2023-03-02T18:44:55+05:00
linuxУстанавливаем пакеты
yay -S needrestart iucode-tool
sudo -e /etc/pacman.d/hooks/99-needrestart-pacman.hook
Вставляем
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Checking which daemons need to be restarted after library upgrades.
When = PostTransaction
Exec = /usr/bin/needrestart
Depends = needrestart
Вот как это выглядит