{"id":120864,"date":"2018-09-26T08:31:20","date_gmt":"2018-09-26T00:31:20","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=120864"},"modified":"2018-09-25T10:32:05","modified_gmt":"2018-09-25T02:32:05","slug":"fedora-linux-brew","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/fedora-linux-brew.html","title":{"rendered":"Fedora Linux\u4f7f\u7528brew\u5305\u7ba1\u7406\u5668"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nLinuxbrew<\/a>\u662fLinux\u4e0a\u7684macOS<\/a>\u5305\u7ba1\u7406\u5668Homebrew\u7684<\/a>\u4e00\u4e2a\u5206\u652f\u3002\u6700\u8fd1\u5728github\u4e0a\u627e\u5230\u7684\u51e0\u4e2a\u5de5\u5177\u90fd\u63d0\u4f9b\u4e86brew\u7684\u4e00\u952e\u5b89\u88c5\uff0c\u9488\u5bf9linux\u63d0\u4f9b\u4e86\u6e90\u7801\u81ea\u5df1\u53bb\u7f16\u8bd1\uff0c\u7f16\u8bd1\u5f97\u6211\u5fc3\u597d\u7d2f\uff0c\u5728\u5404\u79cd\u9519\u8bef\u4e0a\u6d6a\u8d39\u65f6\u95f4\uff0c\u6240\u4ee5\u5e72\u8106\u88c5\u4e00\u4e2alinuxbrew\u5305\u7ba1\u7406\u5668\u4f7f\u7528brew\u5b89\u88c5\u547d\u4ee4\u7528\u7528\u5427\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8fd9\u91cc\u8282\u7701\u7bc7\u5e45\u5c31\u4e0d\u518d\u8d58\u8ff0brew\u7684\u597d\u5904\u4e86\u3002Linuxbrew\u5b8c\u5168\u5f00\u6e90<\/a>\uff0c\u5e76\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u5b89\u88c5\u811a\u672c<\/a>\u3002\u4e5f\u5f88\u8d34\u5fc3\u7684\u63d0\u4f9b\u4e86\u5404\u4e2a\u53d1\u884c\u7248\u7684\u5b89\u88c5\u51c6\u5907\u6761\u4ef6\u3002<\/p>\n

\u5b89\u88c5\u4f9d\u8d56<\/strong><\/div>\n

Debian\u6216Ubuntu<\/h3>\n
\n
\n
sudo <\/span>apt-get install build-essential curl file git<\/pre>\n<\/div>\n<\/div>\n

Fedora\u7684<\/h3>\n
\n
\n
sudo <\/span>dnf groupinstall 'Development Tools'<\/span> &&<\/span> sudo <\/span>dnf install curl file git\r\n<\/pre>\n<\/div>\n<\/div>\n
\n
\n
\n
\n

CentOS\u6216Red Hat<\/h3>\n
sudo yum groupinstall 'Development Tools' && sudo yum install curl file git\r\n<\/pre>\n
\u6267\u884c\u5b89\u88c5\u811a\u672c<\/strong><\/span><\/div>\n

\u4e0d\u80fd\u4ee5root\u6743\u9650\u6216\u8005sudo\u6267\u884c\uff0c\u8bf7\u63d0\u524d\u8d4b\u4e88\u7528\u6237\u8db3\u591f\u7684\u6267\u884c\u6743\u9650\u3002\u5404\u4e2a\u53d1\u884c\u7248\u9ed8\u8ba4\u7684\u7528\u6237\u6743\u9650\u8db3\u591f\u4e86\uff0c\u9632\u6b62\u6709\u4e9b\u95ee\u9898\u63d0\u9192\u4e00\u4e0b\u3002<\/p>\n

sh -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Linuxbrew\/install\/master\/install.sh)\"\r\n<\/pre>\n

\u811a\u672c\u6267\u884c\u5b8c\u6bd5\u4f1a\u63d0\u9192\u4f60\u5728\u5f53\u524d\u76ee\u5f55\u65b0\u5efa\u4e00\u4e2a.zprofile\uff0cvim ~\/.zprofile \u5199\u5165\u5185\u5bb9:<\/p>\n

export PATH=\"\/home\/linuxbrew\/.linuxbrew\/bin:$PATH\"\r\nexport MANPATH=\"\/home\/linuxbrew\/.linuxbrew\/share\/man:$MANPATH\"\r\nexport INFOPATH=\"\/home\/linuxbrew\/.linuxbrew\/share\/info:$INFOPATH\"\r\n<\/pre>\n

\u9664\u4e86\u65b0\u5efa.zprofile\u6587\u4ef6\uff0c\u540e\u9762\u7684\u811a\u672c\u989d\u5916\u63d0\u9192\u7684\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\uff0c\u8fd9\u91cc\u6ca1\u6709\u5341\u5206\u7684\u5fc5\u8981\u53bb\u505a\uff0c\u4e0d\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\u5f53\u524d\u7528\u6237\u4e5f\u53ef\u4ee5\u6267\u884cbrew\u547d\u4ee4\u3002\u56e0\u4e3a\u4e4b\u524d\u73a9\u5d29\u8fc7profile\u6587\u4ef6\uff0c\u5bfc\u81f4\u4e86\u548c\u5220\u9664glibc\u4e00\u6837\u7684\u60c5\u51b5\uff0c\u6709\u9634\u5f71\u4e86\u3002\u6240\u4ee5\u540e\u9762\u628alinuxbrew\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u8fd9\u5757\uff0c\u6587\u6863\u548c\u6267\u884c\u811a\u672c\u6709\u8db3\u591f\u7684\u63d0\u793a\uff0c\u6211\u8fd9\u91cc\u5c31\u4e0d\u518d\u6f14\u793a\u4e86\uff0c\u52a8\u624b\u80fd\u529b\u5f3a\u7684\u540c\u5b66\u81ea\u5df1\u53bb\u505a\u3002<\/p>\n<\/div>\n

\u786e\u8ba4\u5b89\u88c5<\/strong><\/div>\n

\u5728\u5f53\u524dshell\u7a97\u53e3\u6267\u884c<\/p>\n

source ~\/.zprofile\r\n\r\nbrew install hello\r\n<\/pre>\n

\u6709\u4e0b\u9762\u7684\u63d0\u793a\u5c31\u662f\u5b89\u88c5\u6210\u529f\uff0c\u5b89\u88c5\u53ef\u80fd\u6709\u4e9b\u6162\u3002\u6162\u4e5f\u662f\u56e0\u4e3a\u66f4\u65b0\u4ed3\u5e93\u3002\u5b89\u88c5\u4e00\u76f4\u5361\u5728Updating Homebrew \u53ef\u4ee5\u6309ctrl +c\u5f3a\u9000\u4e00\u4e0b\u66f4\u65b0\uff0c\u5b83\u4f1a\u7ee7\u7eed\u6267\u884c\u5b89\u88c5\u7684\u3002<\/p>\n

\u5982\u679c\u66f4\u65b0\u7684\u95ee\u9898\u4e00\u76f4\u5b58\u5728\uff0c\u6211\u7528\u7684\u662fzsh\uff0c\u4fee\u6539~\/.zshrc\u914d\u7f6e\u6587\u4ef6\uff0c\u628a\"export HOMEBREW_NO_AUTO_UPDATE=true<\/strong>\"\u52a0\u8fdb ~\/.zshrc\uff0c\u8fd9\u662f\u5173\u95edbrew\u81ea\u52a8\u66f4\u65b0\uff0c\u5176\u4ed6\u7684\u6839\u636e\u4e0d\u540c\u7684shell\u53bb\u6539\u914d\u7f6e\u6587\u4ef6\u6dfb\u52a0\u8fd9\u6761\u8bed\u53e5\u3002<\/p>\n

\u5173\u95ed\u81ea\u52a8\u66f4\u65b0\u6709\u4ec0\u4e48\u574f\u5904\uff0c\u8fd8\u4e0d\u77e5\u9053\u3002\u6ca1\u6709\u89e3\u51b3\u66f4\u65b0\u6162\u7684\u95ee\u9898\uff0c\u89e3\u51b3\u4e86\u63d0\u51fa\u95ee\u9898\u7684\u95ee\u9898\u3002<\/p>\n

\"\"<\/p>\n

\u7136\u540e\u6267\u884c\u2018hello\u2019\u547d\u4ee4\uff0c\u8f93\u5165\u4e16\u754c\u4f60\u597d\uff0c\u5c31\u4ee3\u8868brew\u5305\u7ba1\u7406\u5668\u5728\u5f53\u524d\u7528\u6237\u53ef\u7528\uff0c\u4ee5\u540e\u770b\u5230\u5176\u4ed6\u7684\u53ef\u4ee5\u7528brew\u5b89\u88c5\u7684\u8f6f\u4ef6\u90fd\u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/p>\n<\/div>\n

\u5b89\u88c5\u5176\u4ed6\u8f6f\u4ef6<\/strong><\/div>\n

\u8fd9\u91cc\u968f\u624b\u627e\u4e86\u4e00\u4e2a\u5de5\u5177\uff0cannie<\/a>\u3002\u8fd9\u662f\u4e00\u4e2a\u7528go\u8bed\u8a00\u5199\u7684\u4e00\u4e2a\u53ef\u4ee5\u7b80\u5355\u5feb\u901f\u4e0b\u8f7d\u7f51\u7ad9\u89c6\u9891\u7684\u5de5\u5177\u3002<\/p>\n

brew install annie<\/pre>\n

\u5b89\u88c5\u6210\u529f\u4e4b\u540e\uff0c\u67e5\u770b\u7248\u672c<\/p>\n

annie -v<\/pre>\n

\u6d4b\u8bd5\u4e0b\u8f7d\u89c6\u9891<\/p>\n

annie https:\/\/www.bilibili.com\/video\/av30693553\r\n<\/pre>\n<\/div>\n<\/div>\n

\"\"<\/p>\n

 <\/p>\n

\u672c\u6587\u539f\u521b\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/fedora-linux-brew.html<\/a><\/p>\n

\u4f5c\u8005\uff1a\u502a\u5bb6\u5174\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Linuxbrew\u662fLinux\u4e0a\u7684macOS\u5305\u7ba1\u7406\u5668Homebrew\u7684\u4e00\u4e2a\u5206\u652f\u3002\u6700\u8fd1\u5728github\u4e0a\u627e\u5230 […]<\/p>\n","protected":false},"author":362,"featured_media":120881,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-120864","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\/120864","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\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=120864"}],"version-history":[{"count":12,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/120864\/revisions"}],"predecessor-version":[{"id":121479,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/120864\/revisions\/121479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/120881"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=120864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=120864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=120864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}