LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-10-2006, 11:58 AM   #1
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Rep: Reputation: 15
Question Removing an RPM package from within another RPM package


Hello All,

I am fairly new to RPM so I was hoping someone might be able to help me with my issue.

Previously I had two RPMs lets say A.rpm and B.rpm, I have recently moved all commponents & functionality from B.rpm into A.rpm. My problem occurs when attempting to upgrade from my previous installed RPM package to my new one single rpm. RPM complains that some of the components of A.rpm conflict with files from package B.rpm. Is there any way to remove package B.rpm from with my new RPM before the conflict occurs. Or is there any way to get around this issue from within my new A.rpm. Any help you can provide will be greatly appreciated.

Best Regards,
-Jim
 
Old 05-10-2006, 12:09 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
With your new A.rpm let rpm know that it now provides the package and obsolete the B package, example;

Provides: udev-persistent = 0:%{version}-%{release}
Obsoletes: udev-persistent[ < 0:030-5]

[] == optional

Last edited by Lenard; 05-10-2006 at 12:12 PM.
 
Old 05-10-2006, 01:37 PM   #3
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for your help Lenard...."Obsoletes:" was exactly what I am looking for.

Cheers!

-Jim
 
Old 05-10-2006, 03:51 PM   #4
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Original Poster
Rep: Reputation: 15
One follow up questions that relates to the Provides/Obsoletes action. It seems now that when I have the obsoletes defined in my rpm and I am performing an upgrade my rpm, at the end of processing, runs an uninstall of the package defined in the Obsoletes: section. Is there a way to redirect the output from this uninstall action?

-Jim
 
Old 05-10-2006, 06:18 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Yes, but instead of answering your follow up question, maybe it is time to review;

http://www.redhat.com/docs/books/max-rpm/

Hints: %triggerun, %triggerpostun
 
Old 05-11-2006, 11:38 AM   #6
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Original Poster
Rep: Reputation: 15
Hello Lenard,

I appreciate your link, but the Maximum RPM link you gave me does not seem to mention %triggerun, %triggerpostun. After some web searches I did find some documentation that described these macros. These will work but no matter what I've tried to redirect the output it does not seem to happen. Any more Hints or links?

-Jim
 
Old 05-11-2006, 12:57 PM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Sorry about that link.....

You can find an examples in both the new initscripts-8.33-1.src.rpm and udev-091-3.src.rpm spec files;

http://download.fedora.redhat.com/pu...lopment/SRPMS/

You want to have a look at the %postrun sections also.

Last edited by Lenard; 05-11-2006 at 01:13 PM.
 
Old 05-12-2006, 03:13 PM   #8
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Original Poster
Rep: Reputation: 15
Hello Lenard,

I took a look at both of the SPEC files contained in the two initscripts-8.33-1.src.rpm and udev-091-3.src.rpm you mentioned and I do not see any example of how they are redirecting the output.

-Jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 DanielTan Linux - Software 7 10-12-2005 03:39 AM
RPM package vladimir-dk Linux - Software 3 03-29-2004 11:27 PM
not appear to be a RPM package! me99 Linux - Software 3 03-18-2004 09:11 PM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 08:53 AM
RPM Package Linux_ss Linux - General 2 01-27-2003 01:27 PM


All times are GMT -5. The time now is 11:39 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration