How Do I Uninstall All NI Related Drivers and Software from My Linux Ubuntu 22.04?

Updated Oct 28, 2024

Reported In

Operating System

  • Linux

Issue Details

I have multiple issues with some drivers on my Linux Ubuntu and I want to remove all NI software and drivers 

What are the right commands to uninstall everything? I couldn't find the steps in the NI Platform on Linux Desktop documentation.

Solution

The top-level NI Linux Packages follow the naming format of ni-.... Using the Ubuntu native package manager (apt-get), you can use a regular expression to remove them.

command: sudo apt-get autoremove '^ni-.*'

Note the autoremove, as it is required to remove NI package dependencies.

Additionally, you can use dpkg-query to list packages with "ni.com" homepage

For example, running command: sudo dpkg-query -W -f='Package: ${Package} - ${Homepage}: ${Status}\n' | grep ni.com

This won't remove any software, but will provide you a list.