我要评分
获取效率
正确性
完整性
易理解

Installing KBest

This section describes how to install KBest using the RPM package and verify KBest. Using parameters supported by the RPM package manager but not documented in this guide may result in undefined behavior. Proceed with caution.

Installation Procedure

  1. Obtain the KBest software package from GitCode and extract the archive to obtain the binary RPM package and .whl file.

    The software package structure is as follows.

    1
    2
    3
    4
    ├── boostsra-kbest-xxxx.aarch64.rpm
    ├── boostsra-kbest-xxxx-cp39-cp39-linux_aarch64.whl
    ├── Kunpeng BoostKit User License Agreement 2.0 (in Chinese).txt
    └── Kunpeng BoostKit User License Agreement 2.0.txt
    

    boostsra-kbest-xxxx.aarch64.rpm contains the header files and dynamic library files of KBest. boostsra-kbest-xxxx-cp39-cp39-linux_aarch64.whl is the required installation package for testing the KBest Python framework. xxxx indicates the version of the KBest software package.

  2. Install the RPM package.
    1
    rpm -ivh boostsra-kbest-xxxx.aarch64.rpm
    

    After the installation is complete, the environment variable LD_LIBRARY_PATH is automatically added to /etc/profile, that is, the /usr/local/sra_kbest/lib directory where the KBest dynamic library files are located.

    In the preceding command, xxxx indicates the version.

  3. Install the WHL file.
    1
    pip install boostsra-kbest-xxxx-cp39-cp39-linux_aarch64.whl
    

    In the preceding command, xxxx indicates the version.

Verification

  1. Run the source command or log in to the terminal again for the environment variable to take effect.
    1
    source /etc/profile
    
  2. Check whether the environment variable LD_LIBRARY_PATH contains the KBest installation path /usr/local/sra_kbest/lib.
    1
    env | grep LD_LIBRARY_PATH
    

    If the variable contains those installation paths, the installation is successful.

    After the installation, the target files are generated in the installation path (the default path is /usr/local/sra_kbest), where the include folder contains the KBest header files, and the lib folder contains the KBest dynamic library files.

  3. Run the pip show command to check whether the xxxx version of KBest has been installed.
    1
    pip show kbest
    

    If the command output contains "Name: kbest Version: xxxx", the installation is successful.

Uninstalling the RPM Package

If you do not need KBest, uninstall it. During uninstallation, service flows that are being executed are affected. You are advised to stop the service flows before uninstalling KBest. Using parameters supported by the RPM package manager but not documented in this guide may result in undefined behavior. Proceed with caution.

  1. Run the rpm -e command to uninstall the RPM package.
    1
    rpm -e boostsra-kbest
    
  2. Confirm that the installation directory /usr/local/sra_kbest is deleted.
  3. Confirm that the /etc/profile file does not contain environment variables related to /usr/local/sra_kbest.

Uninstalling the WHL File

  1. Run the pip uninstall command to uninstall the WHL file.
    1
    pip uninstall kbest
    
  2. Run the pip show command to check whether the xxxx version of KBest has been uninstalled.
    1
    pip show kbest
    

    If the command output reads "WARNING: Package(s) not found: kbest", the uninstallation is successful.