So you ran rm -rf /usr/lib/libQt6* /usr/lib/qt6* /usr/include/qt6* /usr/bin/qt6*
as root without thinking twice?
...And didn't have any backups of /usr/
?
Here's how to fix it.
yay -Qv {plasma-desktop,dolphin,kio,qt6-base}
shows the versions of the 3 different systems of QT/KDE packages. Note these down. I got:
plasma-desktop 6.3.5-1
dolphin 25.04.2-1
kio 6.15.0-1
qt6-base 6.9.1-1
-
Now, take these and put them into
sudo pacman -Qe | rg "(25.04.2-|6.3.5-|6.9.1-)"
(install ripgrep or replace with another PCRE2-compliant grep). -
Install these packages again.
-
Do the same for
sudo pacman -Qd | grep "(25.04.2-|6.3.5-|6.9.1-)"
and install these again, taking care to add the--asdeps
flag unless you want all your packages marked as explicitly installed. -
If you did step 4 without reading "taking care to...", run
sudo pacman -D --asdeps
on all those packages in step 4. -
Enjoy your fixed system. Consider backing up all your files (if you have the space).