Uninstall and Redeploy TestStand on Linux
- Updated2026-07-27
- 2 minute(s) read
Uninstall TestStand from a Linux system and redeploy it for a user.
TestStand on Linux supports a single-user deployment. Use this procedure to uninstall and redeploy TestStand for the user who needs it on the machine.
By default, the uninstall removes most components related to the TestStand install. To avoid breaking other NI software, some components remain installed unless you remove them separately.
| Component | Removed by Default |
|---|---|
| The user TestStand environment, including TestStand and Wine components | Yes |
| Security rules added for the environment | Yes |
| Shared ni-wine system files set up during installation | Yes |
| The TestStand BlazorUI package | Yes |
| The TestStand installation directory | Yes |
| ni-wine and ni-euladepot | No |
| General system components added during installation, for example, Xvfb, Weston, or Xwayland | No |
- Close TestStand BlazorUI before you start. The uninstall script tries to stop it automatically, but closing it first can help the uninstall complete.
- Open a terminal and change to the directory that contains LINUX_UNINSTALL. Ensure that the Installer folder is in that same directory.
-
Run the uninstall command for the user whose TestStand installation you want to remove.
chmod +x ./LINUX_UNINSTALL
sudo ./LINUX_UNINSTALL --user <username>
Replace <username> with the Linux user name.
Optional flags:- Add --yes to skip the confirmation prompt.
- Add --remove-ni-wine if no other NI software on the machine needs ni-wine or ni-euladepot.
- Add --keep-packages to remove the user environment and security rules but keep all packages installed.
- Add --help to display command help.
-
Review the uninstall log at the location indicated when the script
finishes.
Note Typically, you can find the log at /tmp/ni_teststand/uninstall.log.If the log reports that a process could not be stopped, close TestStand BlazorUI and run the uninstall again.
-
To redeploy TestStand for the user, change to the directory that contains
LINUX_INSTALL, and run the following command:
sudo ./LINUX_INSTALL --user <username>
- Follow the instructions in Licensing TestStand on Linux, to reactivate your license.
Related Information
- Licensing TestStand on Linux
License TestStand on Linux by using an activation code generated from the Computer ID or by checking out a license from a Volume License Manager (VLM) server.