﻿{"id":1042,"date":"2012-11-30T14:25:18","date_gmt":"2012-11-30T06:25:18","guid":{"rendered":"http:\/\/nick.workao.org\/?p=1042"},"modified":"2012-12-01T16:44:48","modified_gmt":"2012-12-01T08:44:48","slug":"macports%e6%8d%a2axel%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/mac-os\/1042","title":{"rendered":"macports\u6362axel\u4e0b\u8f7d"},"content":{"rendered":"<p>MacPorts\n\u53ea\u8981\u4f60\u6700\u8fd1\u4e00\u76f4\u5728\u7528Linux\u7684\u4e3b\u6d41\u53d1\u884c\u7248\u672c\uff08Ubuntu\u3001Fedora\u3001Debian\u3001Gentoo\u7b49\u7b49\uff09\uff0c\u6216\u8005\u6709\u8fc7BSD\u4f7f\u7528\u7ecf\u9a8c\uff0c\u4e00\u5b9a\u5bf9*nix\u5e73\u53f0\u4e0a\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u673a\u5236\u4e0d\u964c\u751f\u3002\u4e0d\u7ba1\u662fApt-get\u3001rpm\u3001pkg\u7b49\u7b49\uff0c\u5bf9\u4e8e\u666e\u901a\u7528\u6237\u7684\u4f53\u9a8c\u6765\u8bf4\uff0c\u90fd\u662f\u4e00\u952e\u5b89\u88c5\uff08\u4e00\u6761\u547d\u4ee4\uff09\u8f6f\u4ef6\uff0c\u4e0d\u7528\u8003\u8651\u4e0d\u540c\u8f6f\u4ef6\u4e4b\u95f4\u590d\u6742\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u4e5f\u4e0d\u7528\u8003\u8651\u53bb\u54ea\u513f\u4e0b\u8f7d\u8f6f\u4ef6\u6bd4\u8f83\u9760\u8c31\uff0c\u66f4\u4e0d\u7528\u62c5\u5fc3\u8f6f\u4ef6\u7684\u81ea\u52a8\u66f4\u65b0\u95ee\u9898\u3002\u4f9d\u6258\u5f00\u6e90\u793e\u533a\u7684\u5f3a\u5927\u652f\u6301\uff0c\u6d77\u91cf\u8f6f\u4ef6\u968f\u7528\u968f\u88c5\u3002<\/p>\n<p>Mac\u4f5c\u4e3aBSD\u7cfb\u7edf\u5546\u4e1a\u5316\u7684\u6700\u6210\u529f\u4ee3\u8868\uff0c\u7ee7\u627f\u4e86BSD\u7cfb\u7edf\u7a33\u5b9a\u3001\u53ef\u9760\u7684\u4f20\u7edf\u548c\u7279\u6027\uff0c\u4f46\u6ca1\u6709\u7ecf\u8fc7\u8c03\u6559\u7684Mac OS X\u4e0d\u662f\u4e3a\u7a0b\u5e8f\u5458\u800c\u5b9a\u5236\u7684\u3002\u8fd9\u548c\u4e54\u5e2e\u4e3b\u4e00\u8d2f\u7684\u4ea7\u54c1\u8bbe\u8ba1\u7406\u5ff5\u662f\u5206\u4e0d\u5f00\u7684\uff1a\u82f9\u679c\u7684\u4ea7\u54c1\u80fd\u591f\u8ba9\u4e00\u4e2a\u5c0f\u5b66\u4e8c\u5e74\u7ea7\u6559\u80b2\u6587\u5316\u6c34\u5e73\u7684\u4eba\uff0c\u65e0\u9700\u8bf4\u660e\u4e66\u5373\u53ef\u5f00\u59cb\u4f7f\u7528\u3002\u7a0b\u5e8f\u5458\u561b\uff0c\u53d7\u6559\u80b2\u6587\u5316\u6c34\u5e73\u80af\u5b9a\u662f\u8981\u9ad8\u4e8e\u5c0f\u5b66\u4e8c\u5e74\u7ea7\u6559\u80b2\u6587\u5316\u6c34\u5e73\u7684\u3002\u6240\u4ee5\uff0c\u7a0b\u5e8f\u5458\u9700\u8981\u63a7\u5236\u53f0\uff0c\u7528\u952e\u76d8\u7684\u65f6\u95f4\u8981\u591a\u4e8e\u7528\u9f20\u6807\u3002\u975e\u7a0b\u5e8f\u5458\uff0c\u4e0d\u9700\u8981\u63a7\u5236\u53f0\uff0c\u6700\u597d\u8fde\u952e\u76d8\u90fd\u4e0d\u8981\u7528\u5230\u3002<\/p>\n<p>MacPorts\u53ef\u4ee5\u770b\u505a\u662fBSD\u7cfb\u7edf\u4e0a\u7684ports\u673a\u5236\u5728\u82f9\u679c\u7cfb\u7edf\u4e0a\u7684\u79fb\u690d\u7248\u672c\uff0c\u5173\u4e8eMacPorts\u7684\u5b89\u88c5\uff0c\u5982\u679c\u4f60\u662f\u7528\u7684Snow Leopard\u6216\u8005\u5176\u4ed6\u8f83\u65b0\u7684\u82f9\u679c\u7cfb\u7edf\u7248\u672c\u7684\u8bdd\uff0c\u5b98\u65b9\u7f51\u7ad9\u4e0a\u63d0\u4f9b\u4e86\u76f4\u63a5\u53ef\u7528\u7684\u4e8c\u8fdb\u5236dmg\u7248\u672c\uff0c\u4e0b\u8f7d\u53cc\u51fb\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p>\u4e0b\u9762\u91cd\u70b9\u4ecb\u7ecd\u5b89\u88c5\u597dMacPorts\u540e\u7684\u51e0\u4e2a\u5173\u952e\u73af\u8282\uff1a<\/p>\n<p>MacPorts\u6539\u826f\nMacPorts\u7684\u9ed8\u8ba4\u5b89\u88c5\u7248\u672c(1.9.2)\u6709\u4e24\u4e2a\u5bf9\u4e8e\u6211\u6765\u8bf4\u975e\u5e38\u4e0d\u723d\u7684\u201c\u7f3a\u9677\u201d\uff1a<\/p>\n<p>\u4e0d\u652f\u6301\u591a\u7ebf\u7a0b\u4e0b\u8f7d\n\u4e0b\u8f7d\u8fc7\u7a0b\u6ca1\u6709\u4efb\u4f55\u8fdb\u5ea6\u63d0\u793a\n\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u7684hack\u4e4b\u540e\uff0c\u6211\u627e\u5230\u4e86\u4e0a\u8ff0\u4e24\u4e2a\u95ee\u9898\u7684\u6539\u826f\u65b9\u6cd5\u3002<\/p>\n<p>\u641c\u7d22curl<\/p>\n<p>\u65b0\u589e\uff1a<\/p>\n<div>\n<table>\n<tbody>\n<tr>\n<td>\n<pre>set currentTTy [exec \"tty\"]<\/pre>\n<div><\/div><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>MacPorts \u53ea\u8981\u4f60\u6700\u8fd1\u4e00\u76f4\u5728\u7528Linux\u7684\u4e3b\u6d41\u53d1\u884c\u7248\u672c\uff08Ubuntu\u3001Fedora\u3001Debian\u3001Gentoo\u7b49\u7b49\uff09\uff0c\u6216\u8005\u6709\u8fc7BSD\u4f7f\u7528\u7ecf\u9a8c\uff0c\u4e00\u5b9a\u5bf9*nix\u5e73\u53f0\u4e0a\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u673a\u5236\u4e0d\u964c\u751f\u3002\u4e0d\u7ba1\u662fA&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[340],"tags":[],"class_list":["post-1042","post","type-post","status-publish","format-standard","hentry","category-mac-os"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1042"}],"version-history":[{"count":4,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1042\/revisions"}],"predecessor-version":[{"id":1044,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1042\/revisions\/1044"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}