1.将yum的源,拷贝到 /etc/yum.repos.d 文件夹下。 2.yum clean all 3.yum makecache 其中,拷贝源的方法有多种。可以wget获取、vim编辑、文件上传等方式。