pacman -F

This command is an alias of pacman --files.

tldr pacman files