Uninstalling the Software
This section describes how to uninstall KAE if you no longer require it or want to install KAE of a new version.
Uninstalling KAE 2.0 Installed Using Source Code
- Use SSH to remotely log in to the Linux CLI as the root user.
- Use a script to uninstall the accelerator driver packages and the KAE library packages that are installed using source code.
- Uninstall drivers.
1 2
cd KAE sh build.sh driver clean
- Uninstall UADK.
1sh build.sh uadk clean
- Uninstall KAE.
- OpenSSL 1.1.1x:
1sh build.sh engine clean
- OpenSSL 3.0.x:
1sh build.sh engine3 clean
- Tongsuo 8.4.0:
1sh build.sh engine3_tongsuo clean
- OpenSSL 1.1.1x:
- Uninstall KAEZlib.
1sh build.sh zlib clean
If KAEGzip has been installed, run the following command to uninstall it:
1sh build.sh gzip clean
- Uninstall KAEZstd.
1sh build.sh zstd clean
- Uninstall KAELz4.
1sh build.sh lz4 clean
You can also run sh build.sh cleanup to uninstall the KAE components in the default installation path.
- Uninstall drivers.
Uninstalling KAE 2.0 Installed Using RPM Packages
- Use SSH to remotely log in to the Linux CLI as the root user.
- Uninstall the KAE software packages and check the uninstallation result.
- Run the rpm -e Software package name command to uninstall kae-openssl, kae-driver, and kae-zip.
1 2 3
rpm -e kae-openssl rpm -e kae-driver rpm -e kae-zip
- Check whether the uninstallation is successful.
- Run the rpm -e Software package name command to uninstall kae-openssl, kae-driver, and kae-zip.
- Check whether KAE is uninstalled.
- Check whether the KAE library is uninstalled. If "No such file or directory" is displayed in the command output, the uninstallation is successful.
1ll /usr/local/lib/engines-1.1 - Check whether the KAEZip library is uninstalled. If "No such file or directory" is displayed in the command output, the uninstallation is successful.
1ll /usr/local/kaezip/lib - Check whether KAE drivers are uninstalled. If no command output is displayed, the uninstallation is successful.
1lsmod | grep uacce
- Check whether the KAE library is uninstalled. If "No such file or directory" is displayed in the command output, the uninstallation is successful.
Uninstalling KAE 1.0 Installed Using Source Code
- Use SSH to remotely log in to the Linux CLI as the root user.
- Run the make uninstall command to uninstall the KAE driver packages and library packages that are installed using source code.
- Uninstall drivers.
1 2
cd kae_driver make uninstall
- Uninstall the warpdrive driver development library.
1 2
cd warpdrive make uninstall
- Uninstall KAE.
1 2
cd kae_engine make uninstall
- Uninstall the zlib library.
1 2
cd kae_zip_engine sh setup.sh uninstall
- Uninstall drivers.
- Restart the system or use commands to manually uninstall the drivers loaded to the kernel, and check whether the drivers are successfully uninstalled.
- Check drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:1uacce 36864 3 hisi_sec2,hisi_qm,hisi_hpre,hisi_rde,hisi_zip
- Uninstall the drivers in sequence.
1 2 3 4 5 6
rmmod hisi_hpre rmmod hisi_sec2 rmmod hisi_rde rmmod hisi_zip rmmod hisi_qm rmmod uacce
- Check whether the drivers are uninstalled successfully.
1lsmod | grep uacce
- Check drivers that have been loaded to the kernel.
Uninstalling KAE 1.0 Installed Using RPM Packages
- Use SSH 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.
- Check whether the uninstallation is successful.Run the rpm -qa |grep Software package name command. For example, run the following command to check whether hisi_sec2 is uninstalled:
1rpm -qa |grep hisi_sec2
The following uninstalls all KAE software packages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[root@localhost output]# rpm -e hisi_hpre hisi_hpre modules uninstalled [root@localhost output]# rpm -e hisi_sec2 hisi_sec2 modules uninstalled [root@localhost output]# rpm -e hisi_rde hisi_rde modules uninstalled [root@localhost output]# [root@localhost output]# rpm -e hisi_zip hisi_zip modules uninstalled [root@localhost output]# rpm -e uacce uacce modules uninstalling uacce modules uninstalled [root@localhost output]# rpm -e libwd libkae [root@localhost output]# [root@localhost output]# rpm -qa uacce hisi_hpre hisi_sec2 hisi_rde hisi_zip [root@localhost output]# rpm -qa libwd libkae
- Restart the system or use commands to manually uninstall the drivers loaded to the kernel, and check whether the drivers are successfully uninstalled.
- Check drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:1uacce 36864 3 hisi_sec2,hisi_qm,hisi_hpre,hisi_rde,hisi_zip
- Uninstall the loaded drivers.
1 2 3 4 5 6
rmmod hisi_hpre rmmod hisi_sec2 rmmod hisi_rde 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
- Check drivers that have been loaded to the kernel.
Uninstalling KAE 1.0 Installed Using DEB Packages
- Use SSH 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 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_sec2 is successfully uninstalled:
1dpkg -L hisi_sec2
The following uninstalls 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
[root@localhost output]# dpkg -r hisi-hpre (Reading database ... 79192 files and directories currently installed.) Removing hisi-hpre (1.3.2) ... hisi_hpre modules uninstalling hisi_hpre modules uninstalled [root@localhost output]# dpkg -r hisi-sec2 (Reading database ... 79190 files and directories currently installed.) Removing hisi-sec2 (1.3.2) ... hisi_sec2 modules uninstalling hisi_sec2 modules uninstalled [root@localhost output]# dpkg -r hisi-rde (Reading database ... 79186 files and directories currently installed.) Removing hisi-rde (1.3.2) ... hisi_rde modules uninstalling hisi_rde modules uninstalled [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 libkae (Reading database ... 79181 files and directories currently installed.) Removing libkae (1.3.2) ... Removing libwd (1.3.2) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... [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-hpre hisi-sec2 hisi-rde hisi-zip Package 'uacce' does not contain any files (!) Package 'hisi-hpre' does not contain any files (!) Package 'hisi-sec2' does not contain any files (!) Package 'hisi-zip' does not contain any files (!) [root@localhost output]# dpkg -L libwd libkae libkaezip /usr /usr/local /usr/local/include /usr /usr/local /usr/local/lib /usr/local/lib/engines-1.1 Package 'libkaezip' does not contain any files (!)
- Restart the system or use commands to manually uninstall the drivers loaded to the kernel, and check whether the drivers are successfully uninstalled.
- Check drivers that have been loaded to the kernel.
1lsmod | grep uacce
Command output:
1uacce 36864 3 hisi_sec2,hisi_qm,hisi_hpre,hisi_rde,hisi_zip
- Uninstall the loaded drivers.
1 2 3 4 5 6
rmmod hisi_hpre rmmod hisi_sec2 rmmod hisi_rde 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
- Check drivers that have been loaded to the kernel.
Parent topic: Maintenance