其实很简单

去到路径 /etc/yum.conf 文件下

在结尾处添加 proxy=http://proxy:port

即可