Wednesday, May 21, 2008

The /usr/src/redhat Directory Structure

There are five subdirectories located under the /usr/src/redhat directory, as described below
  • /usr/src/redhat/SOURCES contains the original program source code
  • /usr/src/redhat/SPECS contains spec files, which control the RPM build process
  • /usr/src/redhat/BUILD, source code is unpacked and built here
  • /usr/src/redhat/RPMS contains the output binary RPM
  • /usr/src/redhat/SRPMS contains the SRPM created by the build process
When you build a source RPM, you build it within this structure. If you install a source RPM, it is extracted into this structure. The kernel source RPM that you installed in the "Installing Source RPMs" should have unpacked a kernel-2.6.spec file in the /usr/src/redhat/SPECS directory.

0 comments: