LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-26-2014, 04:41 AM   #1
fazorboy
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Rep: Reputation: Disabled
Handle multi level RPM dependency


Hi, my problem is specifying multilevel rpm dependency. let me explain a bit.

i want to install 2 rpms(A and B) in a order A->B but B is not put as dependency in A, both are third party so i cant modify them.
is there a way to specify order so i can create one wrapper rpm C and then in C i can specify order for A and B.

i tried but again problem remains same that i cant guarantee order of A and B.

thanks in advance, i am sure many people would have faced similar issue.

Does specifying requires tag with order ensures that dependency rpms wil nbe installed in that order?
Ex: RPM C , requires: A, B will A and B will get install in same order? if yes that can solve my problem. please confirm

Last edited by fazorboy; 09-26-2014 at 04:48 AM. Reason: added More information
 
Old 09-26-2014, 07:39 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,057

Rep: Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127
If you can't modify A and B I can only suggest you to create a C containing both A and B (and installing C will force installing both A and B)
 
Old 09-26-2014, 01:58 PM   #3
fazorboy
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
yes, i can create a RPM C but when i put A and B as dependency is the order of installation of these dependent RPM(first A and then B) guaranteed?
 
Old 09-26-2014, 02:11 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,615

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
install the dependency first
then the rpm that NEEDS that dependency

BUT!!!!

Yum should DO THAT for you already
Code:
su -
yum install A
will grab B and install that
 
Old 09-27-2014, 12:03 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,057

Rep: Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127
Quote:
Originally Posted by fazorboy View Post
yes, i can create a RPM C but when i put A and B as dependency is the order of installation of these dependent RPM(first A and then B) guaranteed?
just again, you do not construct dependencies among A, B and C, but put A and B inside C and installing C will install A and B too. Without any dependency management.
 
Old 09-29-2014, 01:47 AM   #6
fazorboy
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
just again, you do not construct dependencies among A, B and C, but put A and B inside C and installing C will install A and B too. Without any dependency management.
are you not talking about putting A,B as requires tag in RPM C? may be i didnt understand it. how to make C containing A and B any pointers?
 
Old 09-29-2014, 01:56 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,057

Rep: Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127
you can put anything into a package, for example other rpm-s. That is not a problem at all. You may need to implement pre- and/or postinstall phases in order to install A and B as you wish.
But there is another tip, probably better: repack B (and name it C) and the only difference could be the corrected dependency. Installing that C will mean to install first A and install itself - which is equal to B.
 
  


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
unable to handle kernel level paging request at address... RandomTroll Linux - Kernel 5 11-19-2013 11:10 AM
Multi-Level Group access gw1500se Ubuntu 6 11-20-2012 09:52 AM
How should I handle dependency problem? sixth_sense Linux - General 3 08-05-2005 06:07 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 05:55 PM
how could I handle with multi OS ? black Linux - Newbie 29 07-10-2002 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:19 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