On Sat, Jan 21, 2023 at 11:50 AM Michael J Gruber <mjg(a)fedoraproject.org> wrote:
I have two packages which install identical files under the same name in the same
locations (/usr/share/icons/hicolor/256x256/mimetypes/ and the like). `dnf install` does
not warn about conflicts, `rpm -qf` shows both packages as owner, `dnf erase`ing one
leaves the files in place, erasing the last one erases the file.
Now, this is all works better than I would have hoped for. Does this work by a general
mechanism (inclding checksumming), or is this special cased for the mimetype icons, or an
artefact of installing both packages within the same install command?
You've guessed correctly on the general mechanism. If the file name,
mode, and checksum match, it's automatically co-owned.
--
真実はいつも一つ!/ Always, there's only one truth!