Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

after running

sudo pacman -Syyu


sudo pacman -S [something to install]

should I restart just to be safe?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

If there are updates to the kernel, glibc or systemd, you may want to restart so the updated versions are in use. If you have, say, updates to your desktop environment, a simple logout/login is enough.

share|improve this answer

The best way is to find what programs/services use the old libraries and restart them. And you can achieve it by listing all used files using 'lsof' and find those that have 'DEL' type. DEL means filename was removed from the filesystem but it is still stuck in memory because someone uses it.

Here is the full command line:

 sudo lsof +c 0 | grep 'DEL.*lib' | awk '1 { print $1 ": " $NF }' | sort -u
share|improve this answer
After generating that list of services and libraries, it still is not clear which systemd services need to be restarted. Hence, even though I know which processes and libs need a restart, it is typically non-trivial to determine which services to restart based on that list. –  bwv549 Jan 29 at 20:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.