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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-10-2006, 10:58 AM
|
#1
|
Member
Registered: Nov 2004
Location: Boston
Posts: 30
Rep:
|
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
|
|
|
05-10-2006, 11:09 AM
|
#2
|
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:
|
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 11:12 AM.
|
|
|
05-10-2006, 12:37 PM
|
#3
|
Member
Registered: Nov 2004
Location: Boston
Posts: 30
Original Poster
Rep:
|
Thanks for your help Lenard...."Obsoletes:" was exactly what I am looking for.
Cheers!
-Jim
|
|
|
05-10-2006, 02:51 PM
|
#4
|
Member
Registered: Nov 2004
Location: Boston
Posts: 30
Original Poster
Rep:
|
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
|
|
|
05-10-2006, 05:18 PM
|
#5
|
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:
|
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
|
|
|
05-11-2006, 10:38 AM
|
#6
|
Member
Registered: Nov 2004
Location: Boston
Posts: 30
Original Poster
Rep:
|
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
|
|
|
05-11-2006, 11:57 AM
|
#7
|
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:
|
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 12:13 PM.
|
|
|
05-12-2006, 02:13 PM
|
#8
|
Member
Registered: Nov 2004
Location: Boston
Posts: 30
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|