Installing the Tool
Installation
- Installing an RPM package requires the root user permission. An installed RPM package can be used similar to the shell. Common users cannot use the Porting Advisor or Affinity Analyzer.
- Generally, the TAR packages are decompressed and used by the upload user. You need to obtain the DevKit binary path before running the TAR packages.
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.
- Install the RPM package.
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:
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
- Check whether the installation is successful.
rpm -qa | grep devkit
The installation is successful if the installation package name is displayed in the command output.
devkit version
The version number is displayed in the command output.
- Make the automatic command line completion take effect.Log in to the terminal again or run the following command on the terminal:
source /etc/bash_completion.d/devkit.sh
Upgrade
To upgrade the tool, uninstall it and install the new version.
Parent topic: Installation