Configuring the Yum Source
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to download the Base source configuration file:
wget --no-check-certificate -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tools.huawei.com/repository/conf/CentOS-AltArch-7.repo
- Run the following commands to configure the EPEL source configuration file:
echo '[epel] name=Extra Packages for Enterprise Linux 7 - $basearch baseurl=http://mirrors.tools.huawei.com/epel/7/$basearch failovermethod=priority enabled=1 gpgcheck=0' > /etc/yum.repos.d/epel.repo
- Run the following commands to refresh the Yum source cache:
yum clean all yum makecache
Parent topic: Configuring the Compilation Environment