Uninstalling KAE Installed Using DEB Packages
This section describes how to uninstall KAE that is installed using DEB packages if you no longer require it or want to install KAE of a new version. Due to the dependency relationships, the hisi_hpre, hisi_sec2, and hisi_rde driver packages must be uninstalled before the UACCE driver package is uninstalled. The libkae engine package must be uninstalled before the libwd driver package is uninstalled.
Procedure
- Use an SSH tool to remotely log in to the Linux CLI as the root user.
- Uninstall the KAE software packages and check the uninstallation result.
- Uninstall the KAE software packages.Run the dpkg -r Software_package_name command. For example, run the following command to uninstall hisi_zip.
1dpkg -r hisi-zip
Due to the dependency relationships, you must uninstall the hisi_zip driver package before uninstalling the UACCE driver package, and uninstall the libkaezip engine package before uninstalling the libwd driver package.
- Run the following command to check whether the software packages are successfully uninstalled.
Run the dpkg -L Software_package_name command. For example, run the following command to check whether hisi_zip is successfully uninstalled:
1dpkg -L hisi-zip
The following shows how to uninstall all KAE software packages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[root@localhost output]# dpkg -r hisi-zip (Reading database ... 79188 files and directories currently installed.) Removing hisi-zip (1.3.2) ... hisi_zip modules uninstalling hisi_zip modules uninstalled [root@localhost output]# dpkg -r uacce (Reading database ... 79184 files and directories currently installed.) Removing uacce (1.3.2) ... uacce modules uninstalling uacce modules uninstalled [root@localhost output]# dpkg -r libwd libkaezip (Reading database ... 79181 files and directories currently installed.) Removing libkaezip (1.3.2) ... Removing libwd (1.3.2) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... [root@localhost output]# dpkg -L uacce hisi-zip Package 'uacce' does not contain any files (!) Package 'hisi-zip' does not contain any files (!) [root@localhost output]# dpkg -Llibwd libkaezip /usr /usr/local /usr/local/include Package 'libkaezip' does not contain any files (!) [root@localhost output]#
- Uninstall the KAE software packages.
- Restart the system or use commands to manually uninstall the accelerator drivers loaded to the kernel, and check whether the drivers are successfully uninstalled.
- View the drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:1uacce 36864 3 hisi_qm,hisi_zip
- Uninstall the loaded drivers.
1 2 3
rmmod hisi_zip rmmod hisi_qm rmmod uacce
- Check whether the uninstallation is successful. If no command output is displayed, the uninstallation is successful.
1lsmod | grep uacce
- View the drivers that have been loaded to the kernel.