Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-01-2013, 06:36 AM   #1
LQ Newbie
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
configure path for dependent rpm packages for building source rpm package

Hi all,
I am trying to cross compile rpm source rpm packages to create rpm package.
I am using following command :
rpmbuild -bi --target=armv7l <spec.file>

However the spec file looks for some dependent packages. I already have these packages but I dont know where exactly does the rpm looks for these packages?(The path).
When I executed rpm build command , it created a directory rpmbuild in home and sub folder like BUIL, BUILDROOT, RPMS, SRPMS, SOURCES etc

Please help me.
Old 03-01-2013, 11:39 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Welcome to LQ.

It's been a while since I used an .rpm based distro, but I'll try to answer your question.

If I remember correctly, rpm uses /etc/rpmrc (or an rpmrc somewhere in /etc) which directs rpm to reference a database of installed rpms. The database is in /var/lib/rpm. I don't remember where the rpms themselves are stored.

When I executed rpm build command , it created a directory rpmbuild in home and sub folder like BUIL, BUILDROOT, RPMS, SRPMS, SOURCES etc
Rpm expects to find the source tarball and any necessary patches in SOURCES; the .spec file in SPECS. When the build runs to completion, the finished rpm will be in RPMS.


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
How to configure a source package before creating an rpm breds Linux - Software 3 06-28-2012 01:44 PM
error in building rpm of open ldap from source using rpm package manager Infotechie Linux - Software 2 05-02-2012 01:10 AM
Problem facing in building rpm package from source codes Arighna Programming 3 08-19-2011 12:50 PM
RPM Package building harish.patel Linux - Newbie 2 12-25-2008 11:57 PM
Installing RPM by specifying dependent RPMs path anjanesh Linux - Newbie 3 08-24-2006 12:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 AM.

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