Problems updating imagemagick, file "exists in both 'imagemagick' and 'libmagick'"

I am currently on 18.0..... and admittedly I have not updated in a while... but today I am trying to get my system current and I am running into the following errors:

------------[ start
error: failed to commit transaction (conflicting files)
/etc/ImageMagick-7/colors.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/delegates.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/log.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/mime.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/policy.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/quantization-table.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/thresholds.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/type-dejavu.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/type-ghostscript.xml exists in both 'imagemagick' and 'libmagick'
/etc/ImageMagick-7/type.xml exists in both 'imagemagick' and 'libmagick'
/usr/include/ImageMagick-7/Magick++.h exists in both 'imagemagick' and 'libmagick'
/usr/include/ImageMagick-7/Magick++/Blob.h exists in both 'imagemagick' and 'libmagick'
/usr/include/ImageMagick-7/Magick++/CoderInfo.h exists in both 'imagemagick' and 'libmagick'
...
------------[ stop

I am not sure on how to correct these to get the update to complete (using pacman -Syu)

Any help would be appreciated...
thanks!

Essentially, remove imagemagick, update, reinstall imagemagick.

sudo pacman -Rdd imagemagick
sudo pacman -Syu
sudo pacman -S imagemagick
2 Likes

Ok will give that a try and post the results.

thanks!

That fixed the issue. thanks!!