The RPM Environment

You will create a spec file later in the chapter, but first you need to see how the process works.

SUSE uses the directory /usr/src/packages to build and create an RPM package. This directory contains subdirectories; Table 12-2 shows the reasoning behind this.

The architecture of an RPM package can be a subset of a general architecture; for example, Intel can be i386 (386-based, works on all Intel-based machines). The i586/i686/Athlon architectures will usually contain specific optimizations for the higher Intel/AMD processors.

TABLE 12-2

The RPM Source Directories




This is where your original source code is unpacked and compiled.


This is a placeholder for source files before they are unpacked.


This contains the spec files for the package you are creating.


If you are creating source RPMS, they are stored here in source RPM once built.

RPMS The final resting place for your packaged RPM. This directory is further subdivided into architecture type (i386, i586, i686, and so on).

Other architectures could be ppc (Power PC-based), s390 (zSeries/System 390 based), AXP (Alpha processor), and so on. We will deal specifically with the Intel-based architectures, but we wanted you to be aware that other architectures do exist, and RPM does consider these.

Was this article helpful?

0 0

Post a comment