Updated on 2024-08-28 GMT+08:00

Installing x2hce-ca

  1. 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 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/
    ......
  2. Install x2hce-ca.
    Run yum install -y x2hce-ca-hce.x86_64 to install the x2hce-ca tool. After the installation is complete, the directories listed in Table 1 are 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.

    /opt/x2hce-ca/update

    Stores the update packages and the corresponding license files.

    /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.

  3. Restart the OS or run alias x2hce-ca="x2hce_python39 /usr/local/x2hce-ca/x2hce-ca.pyc" for the x2hce-ca command to take effect.