View Full Version : Need to extract "requires"info from a .src.rpm
td123
11th September 2011, 06:38 PM
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!
flyingfsck
11th September 2011, 07:35 PM
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.
marko
11th September 2011, 09:03 PM
Or you can install rpmdevtools, then run:
mkdir tempdir
cd tempdir
rpmdev-extract <path to rpmfile>/package.src.rpmat 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
leigh123linux
12th September 2011, 06:52 AM
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/Packaging:Guidelines#Requires
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.