So…is there any reason to keep the k*5 and qt5 packages? Are they now dangling or good for backwards compatibility?
I will presume the rest of the ones with no dependencies may still be needed (like db and qt6-connectivity), but if anyone knows differently, please make me aware.
(list)> pacman -Qtdq
Restrict or filter output to packages installed as dependencies. This option can be combined with -t for listing real orphans - packages that were installed as dependencies but are no longer required by any installed package.
-t, --unrequired
Restrict or filter output to print only packages neither required nor optionally required by any currently installed package. Specify this option twice to include packages which are optionally, but not directly, required by another package.
So if my reading is not erroneous pacman -Qdt should not list any packages that are optional dependencies for other packages installed in the system.
However passing the -t flag twice, that is pacman -Qdtt should produce a list including also optional dependencies.