Re: replacing files via rpm



Thomas Widhalm wrote:
...
* I could simply create a rpm which contains the new files
Pro: simple
Con: get's overwritten each time the package containing the original
files gets updated
...

I'm a complete idiot when it comes to understanding rpm or spec files, but I don't think this is quite right.

As I understand things, if your custom rpm replaces files owned by other rpms, and later those rpms are updated, rpm will detect that you have modifed the file and your custom files will either be a) saved as "foo.rpmsave" or b) preserved with the file from the updated rpm renamed to "foo.rpmnew".

I could be wrong though--maybe this only happens for files marked as "config" files. If so, you can design your packages to install the files under /usr/local and then modify the configs to use that instead of /usr, and then only the config files will have a conflict.

In any case, the update will not overwrite your files unless you specifically tell it to.

Since you have a file conflict by definition here, I think it's correct for _you_ to have to make a conscious decision about how to resolve each conflict. There's no way for rpm to guess what your priorities are.

<Joe

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: up2date -u got RPM package conflict error.
    ... > I think the problem is conflict of 2 memory banks. ... > RPM package conflict error. ... Then reinstall it with either up2date or rpm. ...
    (RedHat)
  • [PATCH 1/2] kbuil: add deb-pkg target
    ... # To prepare kbuild for more kernel packaging formats move all packaging ... # In top-level Makefile introduce generic support for all package ... Included the old rpm target for backward ... # and builddeb scripts. ...
    (Linux-Kernel)
  • Re: Conventions for NFS sharing of binaries
    ... Do you have distro & local packages with same name? ... mount it r/w on your "master installation machine" (with RPM management). ... If you replace a package with a different one with the same name, hmm, you ...
    (comp.os.linux.misc)
  • Re: ./configure command
    ... The package is not available. ... machines which don't even have an OS at all, let alone RPM, ... There is not a "the tool to package and install on Fedora". ... If he wants to avoid trouble, ...
    (Fedora)
  • Re: Backing up whole system
    ... Amanda is packaged by Fedora and if Gene feels that the packages are ... fedora's rpm is/was incapable of handling the nuances of using only enough ... When an rpm package can build a complete user from scratch, ... Do you really believe that rpm can install every package under the sun, ...
    (Fedora)