Fedora Linux Support Community & Resources Center
  #1  
Old 11th September 2011, 06:38 PM
td123 Offline
Registered User
 
Join Date: Jun 2011
Posts: 5
windows_7chrome
Need to extract "requires"info from a .src.rpm

I have a .src.rpm and I discovered running rpm -qp --requires package.src.rpm returns a list of build requires, but not the requires field.
I couldn't see anything relevant on the rpm man page.
Can someone help me out figure it out? Thanks!
Reply With Quote
  #2  
Old 11th September 2011, 07:35 PM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,053
linuxfirefox
Re: Need to extract "requires"info from a .src.rpm

Just install the rpm. That will create a directory in your home directory with all the files. The information you want is in the spec file.
Reply With Quote
  #3  
Old 11th September 2011, 09:03 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: Need to extract "requires"info from a .src.rpm

Or you can install rpmdevtools, then run:
Quote:
mkdir tempdir
cd tempdir
rpmdev-extract <path to rpmfile>/package.src.rpm
at this point there should be a subdirectory "package.src" in tempdir that contains all your files from the rpm.

This way you don't have to install it and your spec file will be in the subdirectory

Last edited by marko; 11th September 2011 at 09:12 PM.
Reply With Quote
  #4  
Old 12th September 2011, 06:52 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
windows_7firefox
Re: Need to extract "requires"info from a .src.rpm

Quote:
Originally Posted by td123 View Post
I have a .src.rpm and I discovered running rpm -qp --requires package.src.rpm returns a list of build requires, but not the requires field.
I couldn't see anything relevant on the rpm man page.
Can someone help me out figure it out? Thanks!

You don't specify requires in fedora unless auto-detection fails (normally it's just python based packages that need requires).


https://fedoraproject.org/wiki/Packa...lines#Requires
Reply With Quote
Reply

Tags
extract, requiresinfo, srcrpm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thunderbird 3-beta in F11 requires "security software device" password Thetargos Using Fedora 17 6th July 2009 12:41 AM
I get "requires plugin: Windows Media Audio 8 decoder"... casidiablo Using Fedora 0 12th December 2008 03:58 PM
No "Extract"-item in Dolphin-Context-Menu greyhound Using Fedora 1 29th June 2008 04:49 PM
"Secrets required by Wireless network" requires key evertime I boot :( BlownCPU Servers & Networking 3 16th December 2007 09:35 PM
system-config-date SRPM build requires "anaconda" on install? SHtRO Using Fedora 0 1st May 2006 10:16 PM


Current GMT-time: 09:59 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat