{"id":149,"date":"2015-11-28T14:42:00","date_gmt":"2015-11-28T14:42:00","guid":{"rendered":""},"modified":"2015-11-28T14:42:00","modified_gmt":"2015-11-28T14:42:00","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=149","title":{"rendered":"Centos\u4e0b\u5b89\u88c5apt-get"},"content":{"rendered":"<p>\n\t<span style=\"font-size:14px;\">apt-rpm\u7684\u5957\u4ef6\u53ef\u4ee5\u5728\u8fd9\u627e\u4f60OS\u548cArch\u7684\u7248\u672c<\/span>\n<\/p>\n<p>\n\t<a href=\"http:\/\/packages.sw.be\/apt\/\"><span style=\"font-size:14px;\">http:\/\/packages.sw.be\/apt\/<\/span><\/a>\n<\/p>\n<p>\n\t<br \/>\n<span style=\"font-size:14px;\">\u4ee5CentOS 5\uff0ci386\u7684\u7248\u672c\u4e3a\u4f8b<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">wget <\/span><a href=\"http:\/\/packages.sw.be\/apt\/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm\"><span style=\"font-size:14px;\">http:\/\/packages.sw.be\/apt\/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm<\/span><\/a>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u5b89\u88c5\u5957\u4ef6<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">rpm -Uvh apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u7136\u540e\u53bb\u6539\u4e00\u4e0b sources.list<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">cp \/etc\/apt\/sources.list.d\/os.list \/etc\/apt\/sources.list<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">vi \/etc\/apt\/sources.list<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">&nbsp;&nbsp;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp;<\/span><br \/>\n<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/os\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/updates\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/extras\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/fasttrack\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/addons\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.isu.edu.tw\/pub\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/centosplus\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.twaren.net\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.twaren.net\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/os\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.twaren.net\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.twaren.net\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/updates\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.twaren.net\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.twaren.net\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/extras\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.twaren.net\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.twaren.net\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/fasttrack\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.twaren.net\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.twaren.net\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/addons\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">repomd <\/span><a href=\"ftp:\/\/ftp.twaren.net\/Linux\/CentOS\"><span style=\"font-size:14px;\">ftp:\/\/ftp.twaren.net\/Linux\/CentOS<\/span><\/a><span style=\"font-size:14px;\"> $(VERSION)\/centosplus\/$(ARCH)<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">&nbsp;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">&nbsp;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u5b89\u88c5\u4e00\u4e0b GPG keys<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">rpm &#8211;import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY*&nbsp;&nbsp; \uff0d\uff0d\uff0d\u5b89\u88c5\u8bc1\u4e66<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">apt-get update<\/span><br \/>\n<span style=\"font-size:14px;\">apt-get upgrade<\/span>\n<\/p>\n<p>\n\t<br \/>\n<span style=\"font-size:14px;\">\u7b2c\u4e00\u6b21\u8dd1\u53ef\u80fd\u9700\u8981\u5148\u8fd9\u6837\u4e00\u4e0b<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">apt-get &#8211;fix-broken install<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u5b8c\u6210\uff01<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">&nbsp;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\tapt-rpm\u7684\u5957\u4ef6\u53ef\u4ee5\u5728\u8fd9\u627e\u4f60OS\u548cArch\u7684\u7248\u672c\n<\/p>\n<p>\n\t<a href=\"http:\/\/packages.sw.be\/apt\/\">http:\/\/packages.sw.be\/apt\/<\/a>\n<\/p>\n<p>\n\t<br \/>\n\u4ee5CentOS 5\uff0ci386\u7684\u7248\u672c\u4e3a\u4f8b\n<\/p>\n<p>\n\twget <a href=\"http:\/\/packages.sw.be\/apt\/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm\">http:\/\/packages.sw.be\/apt\/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm<\/a>\n<\/p>\n<p>\n\t\u5b89\u88c5\u5957\u4ef6\n<\/p>\n<p>\n\trpm -Uvh apt-0.5.15lorg3.94a-4.el5.rf&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Centos\u4e0b\u5b89\u88c5apt-get - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=149\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Centos\u4e0b\u5b89\u88c5apt-get - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"apt-rpm\u7684\u5957\u4ef6\u53ef\u4ee5\u5728\u8fd9\u627e\u4f60OS\u548cArch\u7684\u7248\u672c    http:\/\/packages.sw.be\/apt\/     \u4ee5CentOS 5\uff0ci386\u7684\u7248\u672c\u4e3a\u4f8b    wget http:\/\/packages.sw.be\/apt\/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm    \u5b89\u88c5\u5957\u4ef6    rpm -Uvh apt-0.5.15lorg3.94a-4.el5.rf...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=149\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-28T14:42:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=149#webpage\",\"url\":\"http:\/\/weizn.net\/?p=149\",\"name\":\"Centos\\u4e0b\\u5b89\\u88c5apt-get - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2015-11-28T14:42:00+00:00\",\"dateModified\":\"2015-11-28T14:42:00+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=149#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=149\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=149#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Centos\\u4e0b\\u5b89\\u88c5apt-get\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=149#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=149#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"Centos\\u4e0b\\u5b89\\u88c5apt-get\",\"datePublished\":\"2015-11-28T14:42:00+00:00\",\"dateModified\":\"2015-11-28T14:42:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=149#webpage\"},\"wordCount\":208,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=149#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Centos\u4e0b\u5b89\u88c5apt-get - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=149","og_locale":"zh_CN","og_type":"article","og_title":"Centos\u4e0b\u5b89\u88c5apt-get - Wayne&#039;s Blog","og_description":"apt-rpm\u7684\u5957\u4ef6\u53ef\u4ee5\u5728\u8fd9\u627e\u4f60OS\u548cArch\u7684\u7248\u672c    http:\/\/packages.sw.be\/apt\/     \u4ee5CentOS 5\uff0ci386\u7684\u7248\u672c\u4e3a\u4f8b    wget http:\/\/packages.sw.be\/apt\/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm    \u5b89\u88c5\u5957\u4ef6    rpm -Uvh apt-0.5.15lorg3.94a-4.el5.rf...","og_url":"http:\/\/weizn.net\/?p=149","og_site_name":"Wayne&#039;s Blog","article_published_time":"2015-11-28T14:42:00+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=149#webpage","url":"http:\/\/weizn.net\/?p=149","name":"Centos\u4e0b\u5b89\u88c5apt-get - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2015-11-28T14:42:00+00:00","dateModified":"2015-11-28T14:42:00+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=149#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=149"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=149#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"Centos\u4e0b\u5b89\u88c5apt-get"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=149#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=149#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"Centos\u4e0b\u5b89\u88c5apt-get","datePublished":"2015-11-28T14:42:00+00:00","dateModified":"2015-11-28T14:42:00+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=149#webpage"},"wordCount":208,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=149#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}