LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Command to List RPM BuildRequires (like Debian's dpkg-depcheck) (https://www.linuxquestions.org/questions/linux-software-2/command-to-list-rpm-buildrequires-like-debians-dpkg-depcheck-851508/)

Jeff91 12-21-2010 12:38 AM

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

andrewthomas 12-21-2010 07:05 PM

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'

Jeff91 12-21-2010 11:36 PM

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

knudfl 12-22-2010 12:10 AM

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.