Configure RPM packaging workspace

Prepare your environment for software packaging by configuring an RPM packaging workspace.

Before you begin

  • You installed the rpmdevtools package, which provides utilities for packaging RPMs:
    # dnf install rpmdevtools

About this task

To configure the RPM packaging workspace, set up a directory layout by using the rpmdev-setuptree utility.

Procedure

  1. Run the rpmdev-setuptree utility:
    $ rpmdev-setuptree
  2. Configure packaging workspace directories:
    $ tree ~/rpmbuild/
    /home/user/rpmbuild/
    |-- BUILD
    |-- RPMS
    |-- SOURCES
    |-- SPECS
    `-- SRPMS
    
    5 directories, 0 files