rpm dependencies

BTW, this is not just about 15.3 (which I use) but more in genral on how to use https://download.opensuse.org/repositories/graphics/openSUSE_Leap_15.3/x86_64/
I wanted a fairly recent version of imagemagick v7 because of what it does in the recursions… I found it in the repo above. The problem is when I tried to install it with


sudo zypper in ImageMagick-7.1.0.4-lp153.586.4.x86_64.rpm

It says “no can do” nothing provides … OK I found the package, download and try to install it and again no can do nothing provides… and so on. Half an hour later I found everything and was able to finally install imagemagick.

Is there a way of finding the dependencies, so I can download them and which order they have to be installed?

Thank you

Look into

man rpm

There are ways to print the dependencies of an RPM (options of the query command).