[root@linuxprobe ~]# rpm -e yum-3.4.3-118.el7.noarch --nodeps\r\n[root@linuxprobe ~]# rpm -e yum-utils-1.1.31-24.el7.noarch --nodeps\r\n[root@linuxprobe ~]# rpm -e yum-rhn-plugin-2.0.1-4.el7.noarch --nodeps\r\n[root@linuxprobe ~]# rpm -e yum-metadata-parser-1.1.4-10.el7.x86_64 --nodeps\r\n[root@linuxprobe ~]# rpm -e yum-langpacks-0.4.2-3.el7.noarch --nodeps\r\n[root@linuxprobe ~]# rpm -e PackageKit-yum-0.8.9-11.el7.x86_64 --nodeps\r\n<\/pre>\n3\u3001\u4fdd\u8bc1\u672c\u673a\u7535\u8111\u80fd\u4e0a\u7f51\uff1b<\/p>\n
[root@linuxprobe ~]# ping www.baidu.com\r\nPING www.a.shifen.com (61.135.169.121) 56(84) bytes of data.\r\n64 bytes from 61.135.169.121: icmp_seq=1 ttl=53 time=31.8 ms\r\n64 bytes from 61.135.169.121: icmp_seq=2 ttl=53 time=31.9 ms\r\n64 bytes from 61.135.169.121: icmp_seq=3 ttl=53 time=32.0 ms\r\n<\/pre>\n4\u3001\u8fdb\u5165\u4ee5\u4e0b\u7f51\u7ad9\u4e0a\u9762\u67e5\u770b\u8f6f\u4ef6\u5305\u7684\u7248\u672c\u662f\u5426\u5347\u7ea7\u6216\u8005\u627e\u5230\u81ea\u5df1\u7cfb\u7edf\u6240\u5bf9\u5e94\u7684\u6587\u4ef6\u5305\u7248\u672c\u66f4\u65b0\uff1b<\/p>\n
\u7f51\u6613163\u7f51\u7edc\u6e90\u5730\u5740\uff1ahttp:\/\/mirrors.163.com\/\r\nCentOS\u7f51\u7edc\u6e90\u5730\u5740\uff1ahttp:\/\/centos.ustc.edu.cn\/centos\/\r\n<\/pre>\n5\u3001\u627e\u5230\u81ea\u5df1\u6240\u9700\u8981\u7684\u7248\u672c\u4e0b\u8f7d\uff1a<\/p>\n
[root@Linuxprobe ~]# wget http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-3.4.3-118.el7.centos.noarch.rpm\r\n--2016-01-17 20:43:15--\u00a0 http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-3.4.3-118.el7.centos.noarch.rpm\r\nResolving mirrors.163.com (mirrors.163.com)... 123.58.173.185, 123.58.173.186\r\nConnecting to mirrors.163.com (mirrors.163.com)|123.58.173.185|:80... connected.\r\nHTTP request sent, awaiting response... 404 Not Found\r\n2016-01-17 20:43:15 ERROR 404: Not Found. \u00a0\u00a0\/\/\u5982\u679c\u627e\u4e0d\u5230\uff0c\u662f\u5b89\u88c5\u5305\u66f4\u65b0\u4e86\uff0c\u4f60\u53ef\u4ee5\u5230\u8fd9\u4e2a\u7f51\u7ad9http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/\u590d\u5236\u4e0b\u8f7d\u94fe\u63a5\uff0c\u7136\u540e\u518d\u4e0b\u8f7d\u4e0b\u6765\uff1b<\/span>\r\n\r\n[root@linuxprobe ~]# wget http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-3.4.3-132.el7.centos.0.1.noarch.rpm\r\n[root@linuxprobe ~]# wget\u00a0http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm\r\n[root@linuxprobe ~]# wget\u00a0http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-utils-1.1.31-34.el7.noarch.rpm \r\n[root@linuxprobe ~]# wget\u00a0http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-updateonboot-1.1.31-34.el7.noarch.rpm\r\n[root@linuxprobe ~]# wget\u00a0http:\/\/mirrors.163.com\/centos\/7\/os\/x86_64\/Packages\/yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm\r\n<\/pre>\n6\u3001\u67e5\u770b\u4e0b\u8f7d\u5b8c\u6210\u7ed3\u679c\uff1b<\/p>\n
[root@linuxprobe ~]# ls\r\nyum-3.4.3-132.el7.centos.0.1.noarch.rpm\r\nyum-metadata-parser-1.1.4-10.el7.x86_64.rpm\r\nyum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm\r\nyum-updateonboot-1.1.31-34.el7.noarch.rpm\r\nyum-utils-1.1.31-34.el7.noarch.rpm\r\n<\/pre>\n7\u3001\u5b89\u88c5\u8f6f\u4ef6\u5305\uff1a<\/p>\n
[root@Linuxprobe ~]# rpm -ivh yum-*\r\nwarning: yum-3.4.3-132.el7.centos.0.1.noarch.rpm: Header V3 RSA\/SHA256 Signature, key ID f4a80eb5: NOKEY\r\nPreparing...\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%]\r\nUpdating \/ installing...\r\n1:yum-metadata-parser-1.1.4-10.el7 ################################# [ 20%]\r\n2:yum-plugin-fastestmirror-1.1.31-3 ################################# [ 40%]\r\n3:yum-3.4.3-132.el7.centos.0.1\u00a0\u00a0\u00a0\u00a0 ################################# [ 60%]\r\n4:yum-updateonboot-1.1.31-34.el7\u00a0\u00a0 ################################# [ 80%]\r\n5:yum-utils-1.1.31-34.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%]\r\n<\/pre>\n8\u3001\u65b0\u5efarepo \u914d\u7f6e\u6587\u4ef6\uff1b<\/p>\n
[root@linuxprobe ~]# vim \/etc\/yum.repos.d\/CentOS-Base.repo\r\n#CentOS-Base.repo\r\n#\r\n# The mirror system uses the connecting IP address of the client and the\r\n# update status of each mirror to pick mirrors that are updated to and\r\n# geographically close to the client.\u00a0 You should use this for CentOS updates\r\n# unless you are manually picking other mirrors.\r\n#\r\n# If the mirrorlist= does not work for you, as a fall back you can try the\r\n# remarked out baseurl= line instead.\r\n#\r\n#\r\n[base]\r\nname=CentOS-$7 - Base - 163.com\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$7&arch=$basearch&repo=os\r\nbaseurl=http:\/\/mirrors.163.com\/centos\/7\/os\/$basearch\/\r\ngpgcheck=1\r\ngpgkey=http:\/\/mirrors.163.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#released updates\r\n[updates]\r\nname=CentOS-$7 - Updates - 163.com\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$7&arch=$basearch&repo=updates\r\nbaseurl=http:\/\/mirrors.163.com\/centos\/7\/updates\/$basearch\/\r\ngpgcheck=1\r\ngpgkey=http:\/\/mirrors.163.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#additional packages that may be useful\r\n[extras]\r\nname=CentOS-$7 - Extras - 163.com\r\n#mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$7&arch=$basearch&repo=extras\r\nbaseurl=http:\/\/mirrors.163.com\/centos\/7\/extras\/$basearch\/\r\ngpgcheck=1\r\ngpgkey=http:\/\/mirrors.163.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n\r\n#additional packages that extend functionality of existing packages\r\n[centosplus]\r\nname=CentOS-$7 - Plus - 163.com\r\nbaseurl=http:\/\/mirrors.163.com\/centos\/7\/centosplus\/$basearch\/\r\ngpgcheck=1\r\nenabled=0\r\ngpgkey=http:\/\/mirrors.163.com\/centos\/RPM-GPG-KEY-CentOS-7\r\n<\/pre>\n9\u3001\u81f3\u6b64YUM \u7f51\u7edc\u6e90\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\uff1b<\/p>\n
[root@linuxprobe ~]# yum clean all\r\n<\/pre>\n10\u3001\u6d4b\u8bd5\u5b89\u88c5\u662f\u5426\u6b63\u5e38\uff1b<\/p>\n
[root@Linuxprobe ~]# yum -y install lftp\r\nLoaded plugins: fastestmirror, product-id, subscription-manager\r\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\r\nLoading mirror speeds from cached hostfile\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package lftp.x86_64 0:4.4.8-7.el7 will be installed\r\n--> Finished Dependency Resolution\r\nDependencies Resolved\r\n================================================================================================\r\nPackage\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Arch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Repository\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Size\r\n================================================================================================\r\nInstalling:\r\nlftp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a04.4.8-7.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0750 k\r\nTransaction Summary\r\n================================================================================================\r\n\r\nInstall\u00a0 1 Package\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u5b89\u88c5\u8fc7\u7a0b\u2026\u2026\u2026\u2026\u2026\u2026\r\nInstalled:\r\nlftp.x86_64 0:4.4.8-7.el7\r\nComplete!\r\n<\/pre>\n\u5230\u8fd9\u91cc\u5b89\u88c5\u5b8c\u6210\uff0c\u4ee5\u540e\u5b89\u88c5\u6240\u9700\u5305\uff0c\u53ef\u4ee5\u4e0d\u7528\u672c\u5730yum\u6e90\u4e86\uff0c\u76f4\u63a5\u4f7f\u7528\u7f51\u7edcyum\u6e90\u3002<\/p>\n
\n\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/redhat-7-use-centos-yum-network-sources.html<\/a>\u7f16\u8f91\uff1a\u5cb3\u6c38\uff0c\u5ba1\u6838\u5458\uff1a\u5218\u9044<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"\u5728\u5b66\u4e60\u201c\u7b2c1\u7ae0 \u90e8\u7f72\u865a\u62df\u73af\u5883\u5b89\u88c5linux\u7cfb\u7edf\u2014Yum\u8f6f\u4ef6\u4ed3\u5e93\u201d\u6709\u4ecb\u7ecdyum\u7f51\u7edc\u6e90\uff0c\u6240\u4ee5\u51b3\u5b9a\u5c1d\u8bd5\u4e00\u4e0bCentO […]<\/p>\n","protected":false},"author":317,"featured_media":4565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-5605","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/5605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=5605"}],"version-history":[{"count":12,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/5605\/revisions"}],"predecessor-version":[{"id":245002,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/5605\/revisions\/245002"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/4565"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=5605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=5605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=5605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}