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.
- Install the RPM package.
1rpm -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
- Check whether the installation is successful.
1rpm -qa | grep devkit
The installation is successful if the installation package name is displayed in the command output.
1devkit versionThe 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:
1source /etc/bash_completion.d/devkit.sh
Upgrade
To upgrade the tool, uninstall it and install the new version.
Parent topic: Installation