An example of installing from SRPM.
Through this example to practice and deepen the understanding of how this RPM(RPM package management system) works.
-
Get source
Get nginx SRPM for Centos 8
-
Extract content from
.rpm
filesrpm2cpio ./packagecloud-test-1.1-1.x86_64.rpm | cpio -idmv
[1] -
Prepare RPM build commands
yum install rpm-build
-
How to unpack, modify, rebuild and install a SRPM
Get steps of how to build binary RPM from SRPM here.