{"id":5545,"date":"2016-11-25T11:08:18","date_gmt":"2016-11-25T03:08:18","guid":{"rendered":"https:\/\/sdeno.com\/?p=5545"},"modified":"2018-11-22T23:54:06","modified_gmt":"2018-11-22T15:54:06","slug":"mac%e4%bd%bf%e7%94%a8%e7%b1%bb%e4%bc%bcubuntu%e7%9a%84apt-get%e5%91%bd%e4%bb%a4%e5%ae%89%e8%a3%85%e8%bd%af%e4%bb%b6-brew","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=5545","title":{"rendered":"mac\u4f7f\u7528\u7c7b\u4f3cubuntu\u7684apt-get\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u2014\u2014brew"},"content":{"rendered":"<p>\u7528\u4e60\u60ef\u4e86ubuntu\u5bf9apt-get\u547d\u4ee4\u6765\u5b89\u88c5\u8f6f\u4ef6\u5df2\u7ecf\u5f88\u987a\u624b\u3002\u5bf9\u4e8e\u5728\u5165\u624bmac\u6765\u8bf4\u6ca1\u6709\u7c7b\u4f3c\u8fd9\u6837\u7684\u547d\u4ee4\u5f88\u4e0d\u4e60\u60ef\u8fd9\u63a8\u8350\u4f7f\u7528brew\u5168\u540dhomebrew\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u66f4\u6539\u6e90\uff1a<\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/woshikuangdage\/article\/details\/81270545\" target=\"_blank\" rel=\"noopener\">https:\/\/blog.csdn.net\/woshikuangdage\/article\/details\/81270545<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u8ba9local\u76ee\u5f55\u62e5\u6709everyone\u6743\u9650<\/p>\n<pre>\/usr\/local<\/pre>\n<pre>sudo chown -R $(whoami) \/usr\/local\r\n\u6216\u8005\r\nsudo chown -R xgllseo \/usr\/local\r\n\u5176\u4e2dxgllseo\u4e3a\u7cfb\u7edf\u5f53\u524d\u7528\u6237\u540d\u3002<\/pre>\n<p>&nbsp;<\/p>\n<p>\u63a5\u7740\u5728\u547d\u4ee4\u4e2d\u6267\u884c\uff1a<\/p>\n<pre>\/usr\/bin\/ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4f1a\u4e0d\u65ad\u7684\u63d0\u793a\u4f60\u51e0\u6b21\u8f93\u5165mac\u5bc6\u7801\uff0c\u8fd9\u5f88\u6b63\u5e38\u65b0\u624b\u7684\u6211\u5f00\u59cb\u4ee5\u4e3a\u51fa\u9519\u4e86\u3002\u5b89\u88c5\u5b8c\u6210\u540e\u4f1a\u63d0\u793a\u6709<\/p>\n<p>&nbsp;<\/p>\n<p class=\"p1\"><span class=\"s1\"><b>==&gt;<\/b><\/span><span class=\"s2\"><b> Installation successful!<\/b><\/span><\/p>\n<p class=\"p1\"><span class=\"s1\"><b>==&gt;<\/b><\/span><span class=\"s2\"><b> Next steps<\/b><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u4e86\uff0c\u4e4b\u540e\u5c31\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u4e8e\u8fd9\u6837\u7684\u547d\u4ee4\u6765\u5b89\u88c5\u8f6f\u4ef6\u4e86\u6b27\u8036<\/p>\n<pre>brew install node<\/pre>\n<p>&nbsp;<\/p>\n<p>\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\u4f7f\u7528\u65b9\u6cd5\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d\uff0d<\/p>\n<h2 style=\"font-weight: bold;\">Homebrew\u7684\u4f7f\u7528<\/h2>\n<p style=\"color: #222222;\">Homebrew\u7684\u53ef\u6267\u884c\u547d\u4ee4\u662fbrew\uff0c\u5176\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b\uff08\u4ee5wget\u4e3a\u4f8b\uff09\u3002<\/p>\n<p style=\"color: #222222;\">\u67e5\u627e\u8f6f\u4ef6\u5305<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew search wget<\/code><\/p>\n<p style=\"color: #222222;\">\u5b89\u88c5\u8f6f\u4ef6\u5305<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew install wget<\/code><\/p>\n<p style=\"color: #222222;\">\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew list<\/code><\/p>\n<p style=\"color: #222222;\">\u5220\u9664\u8f6f\u4ef6\u5305<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew remove wget<\/code><\/p>\n<p style=\"color: #222222;\">\u67e5\u770b\u8f6f\u4ef6\u5305\u4fe1\u606f<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew info wget<\/code><\/p>\n<p style=\"color: #222222;\">\u5217\u51fa\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew deps wget<\/code><\/p>\n<p style=\"color: #222222;\">\u66f4\u65b0brew<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew update<\/code><\/p>\n<p style=\"color: #222222;\">\u5217\u51fa\u8fc7\u65f6\u7684\u8f6f\u4ef6\u5305\uff08\u5df2\u5b89\u88c5\u4f46\u4e0d\u662f\u6700\u65b0\u7248\u672c\uff09<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew outdated<\/code><\/p>\n<p style=\"color: #222222;\">\u66f4\u65b0\u8fc7\u65f6\u7684\u8f6f\u4ef6\u5305\uff08\u5168\u90e8\u6216\u6307\u5b9a\uff09<br \/>\n<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew upgrade<\/code>\u00a0\u6216\u00a0<code style=\"font-weight: inherit; font-style: inherit; color: #555555;\">brew upgrade wget<\/code><\/p>\n<p><audio style=\"display: none;\" controls=\"controls\"><\/audio><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u4e60\u60ef\u4e86ubuntu\u5bf9apt-get\u547d\u4ee4\u6765\u5b89\u88c5\u8f6f\u4ef6\u5df2\u7ecf\u5f88\u987a\u624b\u3002\u5bf9\u4e8e\u5728\u5165\u624bmac\u6765\u8bf4\u6ca1\u6709\u7c7b\u4f3c\u8fd9\u6837\u7684\u547d\u4ee4\u5f88\u4e0d\u4e60\u60ef\u8fd9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-5545","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5545"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5545\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}