---
title: RPM安装
description: "请参见KAE1.0 RPM包安装(https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/accel/kunpengaccel_06_0016.html)章节。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcdns/basicAccelFeatures/kaersaencrydecry/kunpengrsa2k_20_0022.html
sourcePath: /source/zh/kunpengcdns/basicAccelFeatures/kaersaencrydecry/kunpengrsa2k_20_0022.html
indexId: 7ba4c4718c688ed192254231200d00508f252477a98ac0ef6fbe7e268c0c377f84
---
# RPM安装

请参见KAE1.0 RPM包安装(https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/accel/kunpengaccel_06_0016.html)章节。


1. 下载RPM包(https://gitee.com/kunpengcompute/KAE/releases)（以CentOS 7.6系统的1.3.11版本为例）。
  1 2 cd /home/ wget https://gitee.com/kunpengcompute/KAE/releases/download/v1.2.10/kae_1.3.11_CentOS.7.6.4.14.0-115.el7a.0.1.zip --no-check-certificate

2. 解压。
  1 2 unzip kae_1.3.11_CentOS.7.6.4.14.0-115.el7a.0.1.zip ll -rt

3. 进入解压目录。
  1 2 cd 'kae_1.3.11_CentOS 7.6.4.14.0-115.el7a.0.1' ll -rt

4. 安装uacce的RPM包。
  1 rpm -ivh uacce-1.3.11-1.centos7.6.aarch64.rpm

5. 安装hisi_hpre的RPM包。
  1 rpm -ivh hisi_hpre-1.3.11-1.centos7.6.aarch64.rpm

6. 安装libwd的RPM包。
  1 rpm -ivh libwd-1.3.11-1.centos7.6.aarch64.rpm

7. 安装libkae的RPM包。
  1 rpm -ivh libkae-1.3.11-1.centos7.6.aarch64.rpm

  hisi_hpre依赖于uacce；libkae依赖于libwd。

8. 查看内核态库文件。
  1 ll /usr/local/lib/engines-1.1/

9. 配置环境变量。

  a. 打开profile文件。
    1 vi /etc/profile

  b. 添加如下内容。
    1 export OPENSSL_ENGINES=/usr/local/lib/engines-1.1

  c. 生效环境变量。
    1 source /etc/profile

  d. 查看环境变量。
    1 env | grep OPENSSL_ENGINES

    恢复环境变量。 打开profile文件。 1 vi /etc/profile 删除如下内容。 1 export OPENSSL_ENGINES=/usr/local/lib/engines-1.1 使环境变量生效。 1 source /etc/profile 执行unset。 1 unset OPENSSL_ENGINES 查看环境变量。 1 env | grep OPENSSL_ENGINES

10. 加载驱动。
  1 2 modprobe uacce modprobe hisi_hpre

11. 查询驱动。
  1 2 lsmod | grep uacce lsmod | grep hisi_hpre

12. 查看KAE加速设备（虚拟设备）。
  1 ls /sys/class/uacce/

  或者

  1 ll /sys/class/uacce/
