Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-21-2010, 12:38 AM
|
#1
|
|
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 297
Rep:
|
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
|
|
|
|
12-21-2010, 07:05 PM
|
#2
|
|
Senior Member
Registered: May 2010
Distribution: Arch, Gentoo, Slackware
Posts: 1,479
|
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'
|
|
|
|
12-21-2010, 11:36 PM
|
#3
|
|
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 297
Original Poster
Rep:
|
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
|
|
|
|
12-22-2010, 12:10 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,765
|
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.
..
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:22 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|