{"id":102008,"date":"2022-09-05T08:32:24","date_gmt":"2022-09-04T23:32:24","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=102008"},"modified":"2022-09-05T08:32:24","modified_gmt":"2022-09-04T23:32:24","slug":"macos-homebrew-any-directory","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/macos-homebrew-any-directory\/","title":{"rendered":"macOS\u306bHomebrew\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5(\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea)"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/09\/s_20220902_171038.jpg\" alt=\"S 20220902 171038\" title=\"s_20220902_171038.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>macOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u300c<a href=\"https:\/\/brew.sh\/index_ja\">Homebrew<\/a>\u300d\u3002<\/p>\n<p>\u63a8\u5968\u3055\u308c\u305f\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068<code>\/usr\/local<\/code>\u3084<code>\/opt\/homebrew<\/code>\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u3001\u3069\u3053\u304b\u307b\u304b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093(\u8907\u6570\u4eba\u3067Mac\u3092\u4f7f\u3046\u5834\u5408\u306a\u3069)\u3002<\/p>\n<p>\u4eca\u56de\u306fHomebrew\u3092\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>Homebrew\u3092\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u904b\u7528<\/h2>\n<p>\u4eca\u56de\u306fHomebrew\u3092<code>~\/homebrew<\/code>\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>Homebrew\u3092\u6a19\u6e96\u4ee5\u5916\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306f<a href=\"https:\/\/docs.brew.sh\/Installation\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u8a73\u3057\u304f\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300cAlternative Installs\u300d\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u57fa\u672c\u7684\u306b\u306fHomebrew\u3092\u597d\u304d\u306a\u5834\u6240\u306b\u5c55\u958b(\u307e\u305f\u306fgit clone)\u3059\u308b\u3060\u3051\u3067\u3059\u3080\u3068\u306e\u3053\u3068\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u6ce8\u610f\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b9\u30da\u30fc\u30b9\u3092\u542b\u3080\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u907f\u3051\u308b\u3002<\/li>\n<li>\/tmp\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u907f\u3051\u308b\u3002<\/li>\n<li>\/sw\u3068\/opt\/local\u306fFink\u3084MacPorts\u304c\u4f7f\u3063\u3066\u3044\u308b\u5834\u6240\u306a\u306e\u3067\u907f\u3051\u308b\u3002<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u4ed6\u306e\u5834\u6240\u3067\u904b\u7528\u3059\u308b\u3068\u30d3\u30eb\u30c9\u3067\u304d\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5b58\u5728\u3059\u308b\u53ef\u80fd\u6027\u3082\u3042\u308b\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u3053\u308c\u3092\u8e0f\u307e\u3048\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\ncd \r\nmkdir homebrew && curl -L https:\/\/github.com\/Homebrew\/brew\/tarball\/master | tar xz --strip 1 -C homebrew\r\n<\/pre>\n<p><code>~\/homebrew\/bin<\/code>\u306b\u30d1\u30b9\u3092\u901a\u3057\u3066brew\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<code>~\/.zshrc<\/code>\u306a\u3069\u81ea\u5206\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b7\u30a7\u30eb\u306e\u30c9\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nexport PATH=\"$HOME\/homebrew\/bin:$PATH\"\r\n<\/pre>\n<p><code>source ~\/.zshrc<\/code>\u3057\u3066\u3001brew\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<code>brew install \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/code>\u3067\u597d\u307f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\r\nbrew install fzf\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/09\/s_20220902_171504.jpg\" alt=\"S 20220902 171504\" title=\"s_20220902_171504.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Homebrew\u3092\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>macOS\u306e\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/softantenna.com\/blog\/macos\/\">https:\/\/softantenna.com\/blog\/macos\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>macOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u300cHomebrew\u300d\u3002 \u63a8\u5968\u3055\u308c\u305f\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\/usr\/local\u3084\/opt\/homebrew\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u3001\u3069\u3053\u304b\u307b\u304b\u306e\u30c7\u30a3\u30ec\u30af\u30c8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":102066,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2047],"tags":[3480],"class_list":["post-102008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-macos"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/102008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=102008"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/102008\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/102066"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=102008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=102008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=102008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}