You are not logged in.
Hi!
How I can reinstall ALL packages which gets a error with pacman -Qk with one command?
Cheers..
Offline
The direct answer is as follows:
pacman -Qk 2>/dev/null | awk -F: '!/ 0 missing/ { print $1; }' | pacman -S -
However, there's not much point in doing all the checking. You'd only be asking this if there were a lot of packages anyways, so just reinstall them all:
pacman -Qq | pacman -S -
But you'll want to figure out why there's a problem in the first place or you're likely to end up right back in the same situation soon enough.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline