How is the pacman CLI to clean up ones in
/usr/lib
$ sudo pacman -Qo libLLVM-15.so
error: No package owns libLLVM-15.so
$ sudo pacman -Qo libLTO.so.15
error: No package owns libLTO.so.15
After some pacman -R doings ?
pacman -Rns can do uninstalls more cleanly, but to my knowledge there is no direct solution to handle these occurances.
pacutils provides pacreport --unowned-files on post-uninstall for example.