{"id":342,"date":"2010-08-11T11:12:18","date_gmt":"2010-08-11T03:12:18","guid":{"rendered":"http:\/\/blog.infinity.idv.tw\/index.php\/2010\/08\/11\/centos-yum-%e6%9b%b4%e6%96%b0%e4%b9%8b%e8%b1%ac%e9%a0%ad%e4%ba%8b%e4%bb%b6\/"},"modified":"2011-03-22T16:07:15","modified_gmt":"2011-03-22T08:07:15","slug":"centos-yum-%e6%9b%b4%e6%96%b0%e4%b9%8b%e8%b1%ac%e9%a0%ad%e4%ba%8b%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/blog.infinity.idv.tw\/?p=342","title":{"rendered":"CentOS Yum \u66f4\u65b0\u4e4b\u8c6c\u982d\u4e8b\u4ef6"},"content":{"rendered":"<p>\u65b0\u5b89\u88dd\u7684CentOS\uff0c\u600e\u9ebcyum install\u90fd\u4e0d\u884c\uff0c\u90fd\u6703\u51fa\u73fe\u4e0b\u9762\u932f\u8aa4\uff0c\u4e00\u76f4\u4ee5\u70ba\u4fee\u6539[root@localhost ~]# vim \/etc\/yum.repos.d\/CentOS-Base.repo\u7684\u554f\u984c\uff0c\u7d50\u679c\u767c\u73fe\u662fDNS\u6c92\u8a2d\u5b9a\u4e0a\u53bb\uff0c\u56e0\u70ba\u5b89\u88dd\u4f7f\u7528DHCP\uff0c\u5f8c\u4f86\u624d\u624b\u52d5\u6539\u7db2\u8def\u8a2d\u5b9a\uff0c\u5fd8\u4e86\u88dc\u4e0aDNS\u2026\u2026\u2026\u2026\u2026\u5920\u8c6c\u982d!<\/p>\n<p>Total download size: 8.9 M   <br \/>Is this ok [y\/N]: y    <br \/>Downloading Packages:    <br \/><a href=\"http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/os\/i386\/CentOS\/libgomp-4.4.0-6.el5.i386.rpm:\">http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/os\/i386\/CentOS\/libgomp-4.4.0-6.el5.i386.rpm:<\/a> [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa3\\xe6\\x9e\\x90\\xe5&#160;&#160; \\x90\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    <br \/>Trying other mirror.    <br \/><a href=\"http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/glibc-headers-2.5-49.el5_5.4.i386.rpm:\">http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/glibc-headers-2.5-49.el5_5.4.i386.rpm:<\/a> [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa3\\xe6&#160;&#160; \\x9e\\x90\\xe5\\x90\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    <br \/>Trying other mirror.    <br \/><a href=\"http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/kernel-headers-2.6.18-194.8.1.el5.i386.rpm:\">http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/kernel-headers-2.6.18-194.8.1.el5.i386.rpm:<\/a> [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa&#160;&#160; 3\\xe6\\x9e\\x90\\xe5\\x90\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    <br \/>Trying other mirror.    <br \/><a href=\"http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/glibc-devel-2.5-49.el5_5.4.i386.rpm:\">http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/glibc-devel-2.5-49.el5_5.4.i386.rpm:<\/a> [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa3\\xe6\\x&#160;&#160; 9e\\x90\\xe5\\x90\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    <br \/>Trying other mirror.    <br \/><a href=\"http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/os\/i386\/CentOS\/gcc-4.1.2-48.el5.i386.rpm:\">http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/os\/i386\/CentOS\/gcc-4.1.2-48.el5.i386.rpm:<\/a> [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa3\\xe6\\x9e\\x90\\xe5\\x9&#160;&#160; 0\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    <br \/>Trying other mirror.<\/p>\n<p>&#160;<\/p>\n<p>\u88dc\u4e0aDNS\u5f8c\u53ef\u900f\u904eYUM\u6b63\u78ba\u5b89\u88dd\u4e86<\/p>\n<p>\/etc\/resolv.conf<\/p>\n<p>nameserver 168.95.1.1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u5b89\u88dd\u7684CentOS\uff0c\u600e\u9ebcyum install\u90fd\u4e0d\u884c\uff0c\u90fd\u6703\u51fa\u73fe\u4e0b\u9762\u932f\u8aa4\uff0c\u4e00\u76f4\u4ee5\u70ba\u4fee\u6539[root@localhost ~]# vim \/etc\/yum.repos.d\/CentOS-Base.repo\u7684\u554f\u984c\uff0c\u7d50\u679c\u767c\u73fe\u662fDNS\u6c92\u8a2d\u5b9a\u4e0a\u53bb\uff0c\u56e0\u70ba\u5b89\u88dd\u4f7f\u7528DHCP\uff0c\u5f8c\u4f86\u624d\u624b\u52d5\u6539\u7db2\u8def\u8a2d\u5b9a\uff0c\u5fd8\u4e86\u88dc\u4e0aDNS\u2026\u2026\u2026\u2026\u2026\u5920\u8c6c\u982d!<\/p>\n<p>Total download size: 8.9 M   Is this ok [y\/N]: y    Downloading Packages:    http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/os\/i386\/CentOS\/libgomp-4.4.0-6.el5.i386.rpm: [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa3\\xe6\\x9e\\x90\\xe5&#160;&#160; \\x90\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    Trying other mirror.    http:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\/5\/updates\/i386\/RPMS\/glibc-headers-2.5-49.el5_5.4.i386.rpm: [Errno 4] IOError: &lt;urlopen error (-3, &#8216;\\xe8\\xa7\\xa3\\xe6&#160;&#160; \\x9e\\x90\\xe5\\x90\\x8d\\xe7\\xa8\\xb1\\xe6\\x99\\x82\\xe7\\x99\\xbc\\xe7\\x94\\x9f\\xe6\\x9a\\xab\\xe6\\x99\\x82\\xe6\\x80\\xa7\\xe7\\x9a\\x84\\xe9\\x8c\\xaf\\xe8\\xaa\\xa4&#8217;)&gt;    Trying [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[323],"_links":{"self":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/342"}],"collection":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342"}],"version-history":[{"count":1,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":447,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/342\/revisions\/447"}],"wp:attachment":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}