Este contenido no está disponible en el idioma seleccionado.
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 Copiar enlaceEnlace copiado en el portapapeles!
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
# dnf install rpmdevtoolsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
Run the
rpmdev-setuptreeutility:rpmdev-setuptree
$ rpmdev-setuptreeCopy to Clipboard Copied! Toggle word wrap Toggle overflow Set up packaging workspace directories:
tree ~/rpmbuild/
$ tree ~/rpmbuild/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2. RPM packaging workspace directories Copiar enlaceEnlace copiado en el portapapeles!
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 |