Installing the Tool
You can install the tool using a compressed package or an RPM package.
Installing an RPM package requires the root user permission. Common users cannot use the Porting Advisor or Affinity Analyzer.
If a common user uses a compressed package to install the tool, all upload and decompression operations must be performed by the current common user.
Using a Compressed Package
- Upload the tool package (DevKit-CLI-x.x.x-Linux-Kunpeng.tar.gz) to a specified directory (for example /home/DevKit) on the server and decompress the package.
cd /home/DevKit tar -zxvf DevKit-CLI-x.x.x-Linux-Kunpeng.tar.gz
xxx indicates the version.
- Add the tool directory to the PATH environment variable and run the source command to make the environment variable take effect. After the environment variable takes effect, the method of using the tool is the same as that of using the tool with an RPM package.
If you do not perform this step, go to the directory where the tool is decompressed and use the tool. Example: ./devkit version
- Add the content to the configuration file. The following uses the /etc/profile file as an example.
export PATH=/home/DevKit/DevKit-CLI-x.x.x-Linux-Kunpeng:$PATH
- Load the environment variable.
1source /etc/profile
- Add the content to the configuration file. The following uses the /etc/profile file as an example.
- Check whether the installation is successful. If the command output contains the installation package version, the installation is successful.
1devkit versionCommand output:
1devkit version x.x.x
Using an 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 included in the command output.
1devkit versionCommand output:
1devkit version x.x.x
- 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