You are not logged in.

#1 2023-07-22 11:19:55

Morta
Member
Registered: 2019-07-07
Posts: 655

How I can reinstall ALL packages which gets a error with pacman -Qk?

Hi!

How I can reinstall ALL packages which gets a error with pacman -Qk with one command?

Cheers..

Offline

#2 2023-07-22 12:44:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,567
Website

Re: How I can reinstall ALL packages which gets a error with pacman -Qk?

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

Board footer

Powered by FluxBB