T
T
trypzz2020-02-19 13:51:05
linux
trypzz, 2020-02-19 13:51:05

How to properly install conflicting packages?

Compiled two rpm-files. The first - collects from openresty source codes.
The second one is copying custom configs to the directory where openresty itself is installed.
Install conflict:

Transaction check error:
  file /usr/local/openresty/nginx/conf/nginx.conf from install of openresty-cfg-1.0-1.el7.x86_64 conflicts with file from package openresty-1.15.8.2-7.el7.x86_64


How, in fact, is it correct to correct this conflict?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
trypzz, 2020-02-20
@trypzz

I solved it by renaming the file in the custom config spec file before %install.
Further renaming the file back when deleting this custom config. Also in the spec file.

V
Vitaly Karasik, 2020-02-19
@vitaly_il1

How, in fact, is it correct to correct this conflict?

Deleting before copying will not help, this is a metadata check.
You can fix one of the following. options:
- exclude nginx.conf from the first package
- exclude nginx.conf from the list of files of the first package
- use something like conf.d/my-custom-nginx.conf in the second
package /Puppet/Chef/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question