Command to List RPM BuildRequires (like Debian's dpkg-depcheck)
Howdy All,
I am diving into building RPM packages and I am wondering if there is an equal command in the RPM world to Debian's dpkg-depcheck. Essentially what it does is list all the packages need to build a given piece of source code when you run the command and point it to a configure or autogen.sh file. Is there something for RPMs that would do this as well? Regards, ~Jeff |
I think that yum-builddep is what you are looking for. For instance, when building kernels I use:
Code:
su -c 'yum-builddep kernel-<version>.src.rpm' |
You missed what I am looking to do. I am trying to BUILD an RPM package from source. Not install the build deps for a given RPM package.
~Jeff |
When it is an unknown Debian package : No command will find any dependencies.
And no data base to look into. That's for known packages. For an unknown rpm package : The same. For a known src.rpm package : Read the spec file. Or use : grep Buildrequires <file>.spec ( You will have to open the SRC.RPM to read the file.) For unknown packages to be build the first time with a spec file : Use e.g. ldd <binary> on a result, that was built with a basic method, e.g. ./configure && make. .. |
All times are GMT -5. The time now is 06:12 AM. |