That’s The “I don’t care” way. If possible, I would avoid using it.
jonathon faq guide contains a another way.
Generally avoid using the
--overwriteoption with pacman. The--overwriteoption takes an argument containing a glob. When used, pacman will bypass file conflict checks for files that match the glob. In a properly maintained system, it should only be used when explicitly recommended by the Arch Developers. Avoid_certain_pacman_commands