Results 1 to 6 of 6
My clearly outdated Linux course I'M using is telling me that the directory structure for building RPMs is in /usr/src/redhat, but on my redhat system, there is only /usr/src/ > ...
- 03-20-2011 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 66
source rpm
My clearly outdated Linux course I'M using is telling me that the directory structure for building RPMs is in /usr/src/redhat, but on my redhat system, there is only /usr/src/ > debug & > kernels, folders.
- 03-20-2011 #2I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 03-20-2011 #3Just Joined!
- Join Date
- Dec 2010
- Posts
- 66
- 03-20-2011 #4
afaik, starting with redhat enterprise 6, the directory structure for rpm building is expected to be in each users $HOME.
Which is a good thing, imho.
Every user can build RPMs, and building as root is discouraged anyway.
You can check which _topdir, etc is set for your user via
Code:rpm --showrc
You must always face the curtain with a bow.
- 03-20-2011 #5Just Joined!
- Join Date
- Dec 2010
- Posts
- 66
- 03-20-2011 #6
Well, create them

I donīt have access to a rh6 box at the moment,
and unfortunately also docs.redhat.com doesnt seem to have rpmbuild instructions for redhat enterprise 6 (yet).
Or I just couldnīt find it.
Anyway, rpm --showrc will show which directories are expected.
Most important is %_topdir, as %_sourcedir, %_specdir, %_builddir, etc will be dependend on it.
Create the directory structure under %_topdir,
place your specfile in %_specdir
place your sources (tar.gz, etc) in %_sourcedir
and you should be ready to build your rpms with rpmbuild -bb <PATH_to_%_specdir>/<SPECFILE>You must always face the curtain with a bow.


Reply With Quote
