Chapter 2. Setting up RPM packaging workspace
To build RPM packages, you must first create a special workspace that consists of directories used for different packaging purposes.
2.1. Configuring RPM packaging workspace Copy linkLink copied to clipboard!
To configure the RPM packaging workspace, you can set up a directory layout by using the rpmdev-setuptree utility.
Prerequisites
You installed the
rpmdevtoolspackage, which provides utilities for packaging RPMs:# dnf install rpmdevtools
Procedure
Run the
rpmdev-setuptreeutility:$ rpmdev-setuptree $ tree ~/rpmbuild/ /home/user/rpmbuild/ |-- BUILD |-- RPMS |-- SOURCES |-- SPECS `-- SRPMS 5 directories, 0 files
2.2. RPM packaging workspace directories Copy linkLink copied to clipboard!
The following are the RPM packaging workspace directories created by using the rpmdev-setuptree utility:
| Directory | Purpose |
|---|---|
|
|
Contains build artifacts compiled from the source files from the |
|
|
Binary RPMs are created under the |
|
|
Contains compressed source code archives and patches. The |
|
|
Contains |
|
|
When you use the |