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

Installing the Tool

Installation

Installing an RPM package requires the root user permission. Common users cannot use the Porting Advisor or Affinity Analyzer.

The tool can be used in either of the following ways:

  • TAR package: Upload the tool package (DevKit-CLI-x.x.x-Linux-Kunpeng.tar.gz) to the server, decompress the package, and switch to the tool directory.
  • RPM package: You need to install the RPM package before using it.
  1. Install the RPM package.
    1
    rpm -ivh devkit-x.x.x-1.aarch64.rpm devkit-tuner-x.x.x-1.aarch64.rpm devkit-porting-x.x.x-1.aarch64.rpm
    

    You are required to install the devkit-x.x.x-1.aarch64.rpm or devkit-x.x.x-1.x86_64.rpm installation package before installing other installation packages.

    Command output:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:devkit-x.x.x-1                ################################# [ 33%]
    devkit installed
       2:devkit-porting-x.x.x-1        ################################# [ 67%]
    devkit-porting installed
       3:devkit-tuner-x.x.x-1          ################################# [100%]
    devkit-tuner installed
    
  2. Check whether the installation is successful.
    1
    rpm -qa | grep devkit
    

    The installation is successful if the installation package name is displayed in the command output.

    1
    devkit version
    

    The version number is displayed in the command output.

  3. Make the automatic command line completion take effect.
    Log in to the terminal again or run the following command on the terminal:
    1
    source /etc/bash_completion.d/devkit.sh
    

Upgrade

To upgrade the tool, uninstall it and install the new version.