SRPM
SRPM stands for Source RPM, a type of RPM package used in RPM-based distributions such as Red Hat Enterprise Linux, Fedora, and CentOS. An SRPM distributes the original source code along with the packaging metadata needed to rebuild the binary packages. Unlike a standard binary RPM, an SRPM contains sources, patches, and a spec file and does not contain compiled binaries (though some prebuilt source artifacts may be included in rare cases). The SRPM is itself an RPM package and is typically named with a .src.rpm extension, e.g., foo-1.2-3.src.rpm. When installed, it places the sources in a build directory and provides a building recipe via the SPEC file in SPECS, along with the source archive in SOURCES.
The primary use of SRPMs is to enable rebuilds and auditing. They allow distributions and users to
To build binary RPMs from an SRPM, a build tool such as rpmbuild is used, for example
SRPMs are commonly used in packaging workflows and are a standard part of the RPM packaging ecosystem,