But this command does not give me all the packages I need.
That's because you are not querying their dependencies. Run rpm -q --requires $pkg on the packages found. This will give you the packages they depend on. Add those packages, query their dependencies, repeat and you should end up with the complete set. No need for ldd.
In reply to Re^5: Capture::Tiny getting stuck on ldd /proc/self/fd/1
by shmem
in thread Capture::Tiny getting stuck on ldd /proc/self/fd/1
by ovedpo15
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |