jgr208
jgr208

Reputation: 3066

Allow files from an RPM package to be overwritten by another rpm package

I have an RPM I am making and this is in a very controlled environment so let's also assume it is safe to allow another RPM package to overwrite certain files contained from the original RPM package.

I know from experience if you try to install an RPM package that overwrites another RPM packages file's you get a warning that there is a conflict and the install fails (yes you can do some command line hacking but that is not ideal for the situation).

Is there any way through the original RPM packages spec file that you can specify these files are not part of the package they can be overwritten by another RPM package or is that just strictly prohibited from ever happening?

Upvotes: 1

Views: 2046

Answers (1)

iamauser
iamauser

Reputation: 11479

Is there any way through the original RPM packages spec file that you can specify these files are not part of the package they can be overwritten by another RPM package or is that just strictly prohibited from ever happening?

You can use %ghost directive for this purpose.

http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html

Upvotes: 1

Related Questions