Building RPM Packages

Software Installation for Linux

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

You can build the Napatech driver and tools RPM packages in one step from SRPM packages, or you can modify the spec files before building to suit your requirements.

About this task

Note: It is best practice to build RPM packages as a non-root user.

You can build the RPM packages in one step from SRPM packages if you don't need to edit the spec files; see Building RPM Packages Directly From SRPM Packages.

You may want to edit the spec files before building RPM packages to adapt the packages for specific needs, for example:
  • Remove the dependency on nt-driver-3gd-modules and add a dependency on kernel headers to take advantage of automatic kernel module build.

  • Remove systemd integration or add support for Upstart or SystemV in place of systemd. See examples of Upstart and SystemV scripts in /opt/napatech3/examples/integration/ (in the nt-driver-3gd-examples package) or in DN-0449.

    Note: If you want to build RPM packages for a Linux distribution without systemd, for example RHEL 6 or CentOS 6, you must edit nt-driver-3gd.spec to remove systemd support.
  • Modify the ncurses package name if it differs in your distribution.

  • Modify the kernel headers package name if it differs in your distribution.

Steps

If you want to modify the spec files before building RPM packages, the typical workflow will be:

Procedure

  1. Install SRPM packages
  2. Edit spec files
  3. Build RPM packages from spec files