#How to re-install all packages I just accidentally uninstalled with `pacman -Rncs`

1 messages · Page 1 of 1 (latest)

undone void
#

Trying to fix some python error I accidentally ran pacman -Rncs python without thinking and it uninstalled like 500 packages that I need. Checking the contents of /var/log/pacman.log, I have a list of all the packages I uninstalled, which I'll attach here with a text file.

What is the easiest way I can go about reinstalling all these packages? My guess is to use some kind of linux command to grab only the name of the package on each line, and then I could use all those package names to make a new pacman command to reinstall them. How would I go about doing this?

#

I have tried to do this command which grabs every package in the text file:

sudo pacman -S $(grep 'removed' reinstall.txt | awk '{print $4}' | tr '\n' ' ')

And I get this output:

#

Did this fix the issue?

opaque kestrel
#

I would guess the missing packages would be from the AUR

undone void
#

would it be wise to run this through yay instead?

tulip condor
#

@undone void try it and see