Help: I’m experiencing very slow speeds when installing packages via dnf/yum from the openEuler software repository. What are the common causes for this issue, and what methods can I use to accelerate the software source installation?
Specific environment:
- System: openEuler
- Software source: Default official source (public internet)
- Issue: dnf download speed is very slow, and timeouts occur occasionally
Looking for experienced users to share troubleshooting ideas and solutions. Thank you!
① Comment out or remove the metalink configuration within the repo source. This configuration was originally intended to automatically select the optimal installation source to improve download speed, but it has recently become less effective and can be temporarily commented out.
② Replace the default official source with Huawei, Alibaba, Tsinghua, or other mirror sources. For specific addresses, refer to the mirror list: openEuler Mirror List | openEuler Download | openEuler Community Website
Based on the above, you can use the following commands for configuration:
\cp -a /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.origin
sed -i \
-e '/^meta/ s/^\(.*\)$/#\1/g' \
-e 's/repo.openeuler.org/repo.huaweicloud.com\/openeuler/g' \
/etc/yum.repos.d/openEuler.repo