Use this procedure to install the Napatech driver and tools from RPM
packages.
About this task
The package installer dnf is used in this example. You can of course use your
distributions preferred RPM package installer.
Unless you have GPG signed the RPM packages, you may have to use the
--nogpgcheck option with
dnf, for
example:
$ sudo dnf --nogpgcheck install nt-driver-3gd-<version>.x86_64.rpm
Before you begin
Kernel headers for the running kernel are required if you do not install the
nt-driver-3gd-modules package, or if you want to enable automatic rebuild of the kernel
modules after kernel upgrades.
The tools profiling and monitoring depend on
ncurses.
Steps
To install RPM packages and enable ntservice to start at boot time:
Procedure
-
If you have made the nt-driver-3gd-modules package optional, or if you want to enable
automatic rebuild of the kernel modules after kernel upgrades, ensure that kernel headers
for the running kernel are installed before installing the nt-driver-3gd
package:
$ sudo dnf install kernel-devel-$(uname -r) gcc make
-
Install the nt-driver-3gd-modules package, unless you have edited the spec file to make
the nt-driver-3gd-modules package optional:
$ sudo dnf install nt-driver-3gd-modules-<version>.x86_64.rpm
where:
- version is the version identifier of the package.
Note: Upgrading from an older package to a newer package may generate an error
message as
follows:
$ sudo dnf install nt-driver-3gd-modules-3.29.2.91-5.14.0_407.el9.x86_64.rpm
Last metadata expiration check: 0:14:23 ago on Mon 29 Jan 2024 02:25:54 PM CET.
Dependencies resolved.
======================================================================================
Package Architecture Version Repository Size
======================================================================================
Upgrading:
nt-driver-3gd-modules x86_64 3.29.2.91-5.14.0_407.el9 @commandline 321 k
Transaction Summary
======================================================================================
Upgrade 1 Package
...
...
Error: Transaction test error:
file /opt/napatech3/config from install of nt-driver-3gd-modules-3.29.2.91-5.14.0_407.el9.x86_64 conflicts with file from package nt-driver-3gd-modules-3.28.12.10-5.14.0_407.el9.x86_64
The
old packages must be removed first with the following
command:
dnf remove nt-driver-3gd-modules nt-driver-3gd nt-tools-3gd
-
Install the nt-driver-3gd package:
$ sudo dnf install nt-driver-3gd-<version>.x86_64.rpm
where:
- version is the version identifier of the package.
-
Optionally, install devel, examples, doc and tools packages:
$ sudo dnf install nt-driver-3gd-devel-<version>.rpm
$ sudo dnf install nt-driver-3gd-examples-<version>.rpm
$ sudo dnf install nt-driver-3gd-docs-<version>.rpm
$ sudo dnf install nt-tools-3gd-<version>.rpm
$ sudo dnf install nt-tools-3gd-docs-<version>.rpm
where:
- version is the version identifier of the package.
-
Start the driver with the following commands.
$ sudo modprobe nt3gd
$ sudo modprobe nt3gd_netdev
Note: This step is not required on every boot as the driver is automatically loaded during
boot.
-
Enable ntservice to start at boot time:
$ sudo systemctl start ntservice
$ sudo systemctl enable ntservice