Uninstalling the Driver (*.run)
Currently, the methods of uninstalling the released .run packages on a host are the same.
You can obtain the NPU version from the driver package name. For example, if the driver package name is A300-3000-NPU_Driver-20.0.0-ARM64-Ubuntu18.04.run, the NPU version is 20.0.0.
Prerequisites
The uninstallation function cannot be used before the .run installation package is installed.
Uninstalling the NPU 20.X.X or Later Driver Package
The following uses A300-3000-3010-npu-driver_x.x.x_ubuntu18.04-aarch64.run as an example to describe how to uninstall the .run driver package. Replace the package name with the actual one.
- Use PuTTY to log in to the OS CLI of the server where the Atlas 300I inference card (model 3000) is located. For details, see Logging In to the CLI Using PuTTY over a Network Port.
- Run the following command to switch to the root user:
su - root
- Uninstall the driver in either of the following ways:
- Run the following command in any directory:
<install-path>/driver/script/uninstall.sh
<install-path> indicates the installation path of the software package. You can run the cat /etc/ascend_install.info command to query the installation path. Replace it with the actual path.
- Run the following command in the directory where the software package is stored to uninstall the driver:
./A300-3000-3010-npu-driver_x.x.x_ubuntu18.04-aarch64.run --uninstall
If no error information is displayed during the uninstallation, the uninstallation is successful. Determine whether to reboot the server based on the displayed information to complete the uninstallation.
- Run the following command in any directory:
- Run the following command if a reboot is needed. Otherwise, skip this step.
reboot
After the driver is uninstalled, the npu-smi tool is unavailable.
Uninstalling the NPU 1.X.X Driver Package
The following uses A800-3000-NPU-Ubuntu18.04-ARM-Vx.x.x.run as an example to describe how to uninstall the .run driver package. Replace the package name with the actual one.
- Use PuTTY to log in to the OS CLI of the server where the Atlas 300I inference card (model 3000) is located. For details, see Logging In to the CLI Using PuTTY over a Network Port.
- Run the following command to switch to the root user:
su - root
- Run the following command to go to the directory where the driver package is stored, for example, /opt:
cd /opt
- Run the following command to uninstall the driver:
./A800-3000-NPU-Ubuntu18.04-ARM-Vx.x.x.run --uninstall
If no error information is displayed during the uninstallation, the uninstallation is successful. Go to 5.
- Run the following command if a reboot is needed. Otherwise, skip this step.
reboot
After the driver is uninstalled, the npu-smi tool is unavailable.