第 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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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