Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Compilation Environment

  • Skip this section if the OS is openEuler 20.03.
  • If the OS is CentOS 8.1, add a Yum source when installing Btrfs. For details, see Adding a Yum Source.

Adding a Yum Source

  1. Check for a Yum source.
    ls /etc/yum.repos.d/
  2. If an Internet Yum source (a .repo file) is found, back up the Yum source.
    cd /etc/yum.repos.d
    mkdir bak
    mv *.repo bak
  3. Configure the Yum source.
    cat >> CentOS-Base.repo <<EOF
    [everything]
    name=everything
    baseurl=https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP1/everything/\$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP1/everything/\$basearch/RPM-GPG-KEY-openEuler
    EOF
  4. Make the Yum source take effect.
    yum clean all
    yum makecache