Find the answer to your Linux question:
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/ > ...
  1. #1
    Just 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.

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Quote Originally Posted by Garrett85 View Post
    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.
    Which version of Redhat are you using?
    I 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.

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    66

    Release 6.0

    Quote Originally Posted by MikeTbob View Post
    Which version of Redhat are you using?
    Release 6.0
    Kernel Linux 2.6.32-71.el6.i686

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    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.

  5. #5
    Just Joined!
    Join Date
    Dec 2010
    Posts
    66

    Home folder

    Quote Originally Posted by Irithori View Post
    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
    I looked in my home directory but I didn't see and folders that appeared to have anything to do with source RPMs or anything like that?

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...