Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 934 Bytes

Install-from-SRPM.md

File metadata and controls

30 lines (15 loc) · 934 Bytes

Introduction

An example of installing from SRPM.

Through this example to practice and deepen the understanding of how this RPM(RPM package management system) works.

Steps

  1. Get source

    Get nginx SRPM for Centos 8

  2. Extract content from .rpm files

    rpm2cpio ./packagecloud-test-1.1-1.x86_64.rpm | cpio -idmv[1]

  3. Prepare RPM build commands

    yum install rpm-build

Reference

  1. Inspecting and extracting RPM package contents

  2. Set Up an RPM Build Environment under CentOS

  3. How to unpack, modify, rebuild and install a SRPM

    Get steps of how to build binary RPM from SRPM here.