Pacman overwrite files

I’m updating a system that wasn’t updated for many months, and with Plasma changes, many packages complain that the file already exists in the system.

Quick question. What is the command option to make an update to force overwrite existing files?

I saw that here many times but somehow cannot find it when needed :frowning: and this isn’t mentioned on regular sites about pacman.

Thanks

pacman -Syu --overwrite "*"
1 Like

https://wiki.archlinux.org/title/pacman#Troubleshooting

What packages? That should normally not happen. What did you do? :thinking:

That’s not why. Everyone else updated just fine.

That should never need to be used.

NEVER overwrite globally.

This is exactly the case in which the OP should post the full command output. Overwrite…what? Which error? And so on.

2 Likes

“already exists on filesystem” is not something that will just happen because you didnt update for a while.
Its either the product of other user interaction …
OR simply missing recent update announcements, like this one:

2 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.