Offline Installation of NI Linux Device Drivers on RedHat Enterprise Linux 6

Updated Apr 5, 2019

Reported In

Software

  • NI Linux Device Drivers 2018

Operating System

  • Linux

Issue Details

My system is RHEL 6.x, which is not allowed to connect the internet due to the privacy policy. Are there any methods to install Linux device driver offline to my computer?  

Solution

The offline installation procedure requires two RHEL6 systems, similar except that one (host) has an internet connection and one (target) does not. The purpose of the host system is to clone the NI repository to the USB drive.  Additionally, for the process to work fully offline you must have the official RHEL 6 installation media. This is so that the target system can access RedHat installation packages required by NI software that may not already be present.
 
  1. Install NI-Linux Device Drivers Repo (performed on host system)
    1. Download The NI-Linux Device Drivers.
    2. Run rpm -i <repo-name> as instructed in Downloading and Installing NI Driver Software on Linux Desktop.
  2. USB Drive Preparation (performed on host system).
    1. Connect the USB drive to the system, then determine its device identifier in the /dev/ directory (e.g. /dev/sdb1/).
    2. Open a terminal session and elevate to root permissions with the command: "su -".
    3. Mount the USB drive to the system with the command: "mount <USB device identifier> /mnt/".
    4. Install the yum-utils package with the command: "yum install yum-utils".
    5. Clone the NI repository to the USB drive using the command: "reposync --repoid=ni-software-20xx --newest-only --download_path=/mnt/ni".
    6. Change the current working directory to the USB drive mount point with: "cd /mnt/".
    7. Issue the command: "createrepo -v ni".
  3. The NI repository has been cloned to the USB drive. At this point, copy the included file, "ni-media.repo" onto the USB drive.
  4. NI Repository Installation (performed on target system).
    1. Connect the USB drive to the system, then determine its device identifier in the /dev/ directory (e.g. /dev/sdb1/).
    2. Open a terminal session and elevate to root permissions with the command: "su -".
    3. Mount the USB drive to the system with the command: "mount <USB device identifier> /mnt/".
    4. Change the current working directory to the USB drive mount point with: "cd /mnt/".
    5. Copy the ni-media.repo file from the USB drive to the appropriate directory with: "cp -f ni-media.repo /etc/yum.repos.d".
    6. Clear the cache with: "yum clean all".

At this point, you will need to insert the RHEL6 installation media to the system, in order to access native dependencies of NI's drivers. Once the installation media is inserted, you can install the desired NI driver through yum, e.g. NI-DAQmx: "yum install ni-daqmx".