LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 12-21-2010, 12:38 AM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 297

Rep: Reputation: 33
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
 
Old 12-21-2010, 07:05 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
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'
 
Old 12-21-2010, 11:36 PM   #3
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 297

Original Poster
Rep: Reputation: 33
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
 
Old 12-22-2010, 12:10 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
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.
..
 
  


Reply

Tags
building, packaging, rpm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt/dpkg List of all installed packages jmoschetti45 Linux - Software 2 02-12-2010 04:20 PM
how to add an http address in debian's /etc/apt/sources.list rumz70 Linux - Newbie 1 03-04-2008 10:20 PM
DPKG Package List Missing Bottesford Linux - Newbie 4 01-07-2008 02:40 PM
command to list rpm already installed? ginda Linux - Newbie 2 03-09-2005 06:25 AM
DPKG and truncated package name list gjhicks Debian 2 07-20-2004 01:02 AM


All times are GMT -5. The time now is 09:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration