skybert's Blog

skybert's Avatar Image
Coder of systems, lover of languages, follower of Christ. 台灣女婿
← All posts

How do I know if I need to reboot my Arch Linux after running pacman -Syu?

I’ve found this to work well:

$ ls -d /lib/modules/$(uname -r) || echo Reboot needed

I wonder if there is an even easier way, like Debian that gives you a file to check:

/var/run/reboot-required

?

#archlinux #linux

To like or reply, open original post on Emacs.ch