Questo contenuto non è disponibile nella lingua selezionata.
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 Copia collegamentoCollegamento copiato negli appunti!
Prepare your environment for software packaging by setting up an RPM packaging workspace.
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-setuptreeSet up packaging workspace directories:
$ tree ~/rpmbuild//home/user/rpmbuild/ |-- BUILD |-- RPMS |-- SOURCES |-- SPECS `-- SRPMS 5 directories, 0 files
2.2. RPM packaging workspace directories Copia collegamentoCollegamento copiato negli appunti!
Review the following directories that the rpmdev-setuptree utility creates to set up the RPM packaging workspace.
| 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 |