ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
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.
My problem is how to resolve the package depandancy list.
For example I have a xxx-1.2.2 package currently installed on my system,
and I want to install xxx-1.2.6 package.
Then I must have to install xxx-1.2.3, xxx-1.2.4, xxx-1.2.5 and then after I can install the desired xxx-1.2.6 package.
Dependancy tree like :
===================
xxx-1.2.2 --> xxx-1.2.3--> xxx-1.2.4--> xxx-1.2.5 --> xxx-1.2.6
yum does this exact things. yum first resolves the dependancy list and then after it downlodas all the required package list need to install the dsired packge.
So how can I achive this programatically ?
Yum resolves the dependancy tree but from where ? and how ?
or is there any other way to resolve the package dependancy problem ?
"Yum resolves the dependancy tree but from where ? and how ?"
Each rpm package contains a list of other packages that this rpm depends on. The rpm command does the same thing. So you could find out how to do the things that you want to do by reading the rpm source code.
Rather than reinventing the rpm command you could try issuing the rpm command from within your C program.
let me describe in some detail...(Its like version dependency)
(what i mean to say is version dependency not package dependency)
for example,
A "xxx-1.2.4" package is installed on my system. and further I wannna just upgrade this package by installing higher version "xxx-1.2.6".
For tht I have 2 questions.
(1) Is it require all the in between packages versions ? (over here is it necessary to install "xxx-1.2.5").
(2) If it is then how can I know the inbetween versions ? and where can I get ?
let me describe in some detail...(Its like version dependency)
(what i mean to say is version dependency not package dependency)
for example,
A "xxx-1.2.4" package is installed on my system. and further I wannna just upgrade this package by installing higher version "xxx-1.2.6".
For tht I have 2 questions.
(1) Is it require all the in between packages versions ? (over here is it necessary to install "xxx-1.2.5").
(2) If it is then how can I know the inbetween versions ? and where can I get ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.