Building RPM Packages Directly From SRPM Packages

Software Installation for Linux

Intel® PAC
Napatech SmartNIC
Content Type
Software Installation Guide
Capture Software Version
Link™ Capture Software 12.9

If you don't need to edit the spec files, you can build the Napatech driver and tools RPM packages in one step (without first installing the SRPM packages).

About this task

The package installer yum is used in this example. You can of course use your distributions preferred RPM package installer.

Before you begin

rpm-build is required for building RPM packages from SRPM packages.

Kernel headers for the running kernel, gcc and make are required for building the nt-driver-3gd-modules RPM from


To build the RPM packages in one step:


  1. Ensure that kernel headers for the running kernel and other prerequisites are installed:
    $ sudo yum install kernel-devel-$(uname -r) gcc make rpm-build
  2. If the Napatech driver or tools has previously been installed on this host, install log files owned by root may be left in TMPDIR, by default /tmp. Remove these log files before building the Napatech driver as non-root user:
    $ sudo rm -v /tmp/nt_driver_* /tmp/nt_tools_*
  3. To rebuild RPM packages in one step from SRPM packages:
    $ rpmbuild --rebuild
    $ rpmbuild --rebuild


By default, the resulting RPM packages are located in ~/rpmbuild/RPMS. For example:
├── RPMS
│   ├── noarch
│   │   ├── nt-driver-3gd-devel-
│   │   ├── nt-driver-3gd-docs-
│   │   ├── nt-driver-3gd-examples-
│   │   └── nt-tools-3gd-docs-
│   └── x86_64
│       ├── nt-driver-3gd-
│       ├── nt-driver-3gd-modules-
│       └── nt-tools-3gd-
In addition, the build process leaves some log files in TMPDIR, by default /tmp:
├── nt_driver_3gd.log
├── nt_driver_3gd.log.clip
└── nt_tools_3gd.log