Uninstallation
- Install msInstaller.
- Obtain the software package from Software Package Obtaining and upload it to any directory on the server, for example, /home/HwHiAiUser.
- Go to the directory where the software package is stored and run the following commands to grant permissions to the software RUN package and decompress the package:
chmod +x Ascend-xxx-toolbox_{version}_linux-{arch}.run ./Ascend-xxx-toolbox_{version}_linux-{arch}.run --extract={path}
- Run the cd {path}/MsInstaller command to go to the directory where the msInstaller package is stored, and run the following command:
tar xzvf msInstaller-{version}.tar.gz
- Start msInstaller.
- Non-root user:
./msInstaller-{version}.AppImage
- root user:
./msInstaller-{version}.AppImage --no-sandbox
- The ./msInstaller-{version}.AppImage command is used to start msInstaller. Pay attention to the following points:
- If a port conflict occurs when you run the preceding command, you can specify a port to solve the problem. The following is examples of the command:Non-root user:
./msInstaller-{version}.AppImage --port=5001
root user:
./msInstaller-{version}.AppImage --no-sandbox --port=5001
If you do not specify a port when running the command to start the msInstaller, port 5000 is used by default. If you need to specify a port, you are advised to use a port number ranging from 5001 to 65535. You can run the lsof -i:{port} command to check whether the port is occupied. In the command, {port} indicates the port number to be queried. Replace it with the actual port number.
- If a port conflict occurs when you run the preceding command, you can specify a port to solve the problem. The following is examples of the command:
- After the tool startup command is run, the msInstallerService backend program provides backend services. The parameters used by the backend program are as follows:
--help is used to view the help information.
-p --port is used to specify a bond port.
- Non-root user:
- After the command is executed, msInstaller is started and the welcome page is displayed. See Figure B-5. After the welcome page is displayed, msInstaller is used to download the configuration file (containing the download address and detailed information about the software package) for installing and upgrading the software package.
- On the welcome page, select Uninstall and click Next.
- Perform operations based on the scenario described in Table B-4. Table B-3 lists the software to be uninstalled using msInstaller.
- The buttons on the uninstallation page are described as follows:
- Uninstall: Click to start the uninstallation.
: Click to view the uninstallation progress.
- If you perform the upgrade or uninstallation as a non-root user, you need to enter the password of the root user to access the Local page on the Device Host tab.
- If you perform the upgrade or uninstallation as a non-root user, you need to enter the password of the non-root user to access the MindStudio tab.
Table B-3 Software listSoftware
Description
mindstudio
MindStudio software.
toolkit
Development kit.
npu
Driver firmware package.
nnrt
Offline inference engine package, which is displayed when the inference server is uninstalled or upgraded.
nnae
Deep learning acceleration engine, which is displayed when the training server is uninstalled or upgraded.
tfplugin
Framework plug-in, which is displayed when the training server is uninstalled or upgraded.
toolbox
Toolbox.
Table B-4 UninstallationScenario
Uninstallation Operations
Uninstalling MindStudio
Select mindstudio {version} and click Uninstall.
Figure B-6 shows the MindStudio uninstall page when the root user starts the tool. If a non-root user starts the tool, you need to enter the current user password first.
Uninstalling the development kit
Select toolkit {version} and click Uninstall.
Figure B-6 shows the development kit uninstallation page.
Uninstalling operating environment software packages
- Local scenario
On the Device Host tab, select Local, select the driver firmware package (npu) to be uninstalled, and click Uninstall. The figure shows the page when the root user starts the tool. If a non-root user starts the tool, you need to enter the current user password first.
If the environment is an inference server, npu is displayed, as shown in Figure B-3. If the environment is a training server, npu and tfplugin are displayed.
Figure B-7 Uninstallation in the local scenario - Remote scenario
- Select Remote, enter the IP address of the remote Ascend device and the root user password and click Connect. After the connection is successful, the software package installed in the environment is displayed.
If the environment is an inference server, the following information is displayed:
- npu
- toolbox
- nnrt
If the environment is a training server, the following information is displayed:
- npu
- toolbox
- nnae
- tfplugin
- Select the software package to be upgraded and click Uninstall.Figure B-8 shows the page in the inference server.
- Select Remote, enter the IP address of the remote Ascend device and the root user password and click Connect. After the connection is successful, the software package installed in the environment is displayed.
- The buttons on the uninstallation page are described as follows:
- After the uninstallation is complete, click Back.