Rate This Document
Findability
Accuracy
Completeness
Readability

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 and hisi_sec2 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

  1. Use an SSH tool to remotely log in to the Linux CLI as the root user.
  2. Uninstall the KAE software packages and check the uninstallation result.
    1. Uninstall the KAE software packages.
      Run the dpkg -r Software_package_name command. For example, run the following command to uninstall hisi_sec2:
      1
      dpkg -r hisi-sec2
      
    2. 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:

      1
      dpkg -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
    [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 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 -L uacce hisi-hpre hisi-sec2
    Package 'uacce' does not contain any files (!)
    Package 'hisi-hpre' does not contain any files (!)
    Package 'hisi-sec2' does not contain any files (!)
    [root@localhost output]# dpkg -L libwd libkae
    /usr
    /usr/local
    /usr/local/include
    
    /usr
    /usr/local
    /usr/local/lib
    /usr/local/lib/engines-1.1
    
    [root@localhost output]#
    
  3. Restart the system or use commands to manually uninstall the drivers loaded to the kernel, and check whether the drivers are successfully uninstalled.
    1. Check drivers that have been loaded to the kernel.
      1
      lsmod | grep uacce
      

      Command output:

      1
      uacce                36864  3 hisi_sec2,hisi_qm,hisi_hpre
      
    2. Uninstall the loaded drivers.
      1
      2
      3
      4
      rmmod hisi_hpre
      rmmod hisi_sec2
      rmmod hisi_qm
      rmmod uacce
      
    3. Check whether the uninstallation is successful. If no command output is displayed, the uninstallation is successful.
      1
      lsmod | grep uacce