Building RPMs

Software Installation for Linux

product_line_custom
Napatech SmartNIC
category
Software Installation Guide

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

About this task

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

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

You may want to edit the spec files before building RPMs 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 RPMs 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 RPMs, the typical workflow will be:

Procedure

  1. Install SRPMs
  2. Edit spec files
  3. Build RPMs from spec files