Installing x2hce-ca
- Confirm that the repository is configured correctly.
Check whether the parameters in the /etc/yum.repos.d/hce.repo file are configured correctly. The correct configuration for HCE 2.0 is as follows:
[base] name=HCE $releasever base baseurl=https://repo.huaweicloud.com/hce/$releasever/os/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://repo.huaweicloud.com/hce/$releasever/os/RPM-GPG-KEY-HCE-2 [updates] name=HCE $releasever updates baseurl=https://repo.huaweicloud.com/hce/$releasever/updates/$basearch/ enabled=1 gpgcheck=1 gpgkey=https://repo.huaweicloud.com/hce/$releasever/updates/RPM-GPG-KEY-HCE-2 [debuginfo] name=HCE $releasever debuginfo baseurl=https://repo.huaweicloud.com/hce/$releasever/debuginfo/$basearch/ enabled=0 gpgcheck=1 gpgkey=https://repo.huaweicloud.com/hce/$releasever/debuginfo/RPM-GPG-KEY-HCE-2

To install x2hce-ca on CentOS, you do not need to configure the repository. Download the latest x2hce-ca-hce from https://repo.huaweicloud.com/hce/2.0/updates/.
- Install x2hce-ca.
Run yum install -y x2hce-ca-hce to install x2hce-ca. After the installation is complete, the directories listed in Table 1 will be generated.
Table 1 Directories generated after x2hce-ca is installed Directory
Description
/var/log/x2hce-ca
Stores log files of the x2hce-ca tool.
/var/log/aparser
Stores log files of the parser.
/opt/x2hce-ca/output
Stores the reports generated by the x2hce-ca tool.
/opt/x2hce-ca/scan
Stores the application software packages to be scanned.
/etc/x2hce-ca/config
Stores static configuration files.
/etc/x2hce-ca/database_2.0.0.630
Stores database files.
/usr/local/x2hce-ca
Stores program files.
/usr/local/x2hce-python-3
Python installation directory of the tool
To install x2hce-ca on CentOS, run yum install -y x2hce-ca-hce-1.0.0-53.hce2.x86_64.rpm. Use the version of your downloaded x2hce-ca-hce.
- To make x2hce-ca take effect, perform operations as prompted after the installation is complete. Figure 1 is an example of the prompt, prompting you to run alias x2hce-ca="x2hce_python39 /usr/local/x2hce-ca/x2hce-ca.pyc" or restart the OS.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot