Configuring the Yum Source
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the following directory:
cd /etc/yum.repos.d/
- Obtain the RPM package of the EPEL repository.
wget https://repo.huaweicloud.com/epel/epel-release-latest-7.noarch.rpm
- Perform the installation.
rpm -ivh --nodeps epel-release-latest-7.noarch.rpm
- Replace #baseurl in the epel.repo file with baseurl.
sed -i "s/#baseurl/baseurl/g" /etc/yum.repos.d/epel.repo
- Refresh the Yum source cache.
yum clean all yum makecache
- View the result.
yum repolist

Parent topic: Configuring the Compilation Environment