Red HatThis forum is for the discussion of Red Hat Linux.
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.
well you can script it to take that output and loop through it, getting the deps of those
BUT
Do you really want that?
If you're not comparing this to the target systems current state you'll soon get back to dependencies for a kernel, glibc and all the other absolute base requirements for the entire system. How useful is that?
I've done some further research on this and think a recursive function within a bash script is the answer.
Been trying to knock something together but and stuggling a bit (bash scripting isn't my strongest point).
Basically I looking to generate a list of dependencies for a package (such as httpd above). This list needs to contain dependencies aswell as sub dependencies of the dependencies until none are left. Ideally I don't want duplicates in the list as running repoquery on some package return themselves (such as mailcap).
Base requirement packages such a kernel, glibc are fine.
well you can probably knock something up in just a dozen lines, as finding the second level deps of the input package would be just a case of running the script against all of the results from the previous stage it'd all be pretty slick and simple. Only issue would be mutual dependencies, which *could* end up in an infinite loop if you're not careful. things like making it unique is pretty trivial, just run the output through uniq at the end etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.