LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2008, 11:49 AM   #1
rockfx01
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
Ignoring package conflict in RPM spec file


Hi, I want to overwrite a file from another package during the installation of another RPM I am building. I'm trying to overwrite the other package's file without associating the new version with the new RPM. It's essentially a 'patch' that neither RPM cares too much about, but I want to include it with my RPM.

I don't want to have to use the force option when installing the rpm.

I've tried using this:

Code:
%install
...
install -b -m 755 $RPM_BUILD_DIR/%{name}-%{version}/replacement.file $RPM_BUILD_ROOT/fileto.replace
Which reports a conflict, and...

Code:
%install
...
cp -f $RPM_BUILD_DIR/%{name}-%{version}/replacement.file $RPM_BUILD_ROOT/fileto.replace
which also reports a conflict, and...

Code:
%post
...
cp -f $RPM_BUILD_DIR/%{name}-%{version}/replacement.file $RPM_BUILD_ROOT/fileto.replace
Which doesn't work because at this point it's not using the RPM build directories.

I have done this before by installing the new file to a different location and then overwriting the other package's file in the post install script, but I would prefer to simply replace it outright during the install if possible.

Suggestions?

Thanks,
-rockfx01
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM package db file conflict gmabrito Linux - General 10 03-22-2008 07:03 AM
rpm spec file help AutoC Fedora 3 01-30-2008 08:25 AM
rpm spec file alrawab Linux - General 2 03-28-2007 06:39 AM
RPM Spec file adddy Linux - Software 8 11-07-2006 05:02 AM
RPM Package Conflict Error Wicksy Linux - General 5 09-09-2003 11:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration