{"id":4291,"date":"2021-07-05T07:32:50","date_gmt":"2021-07-04T22:32:50","guid":{"rendered":"https:\/\/ecpplus.net\/weblog\/?p=4291"},"modified":"2021-07-14T16:27:07","modified_gmt":"2021-07-14T07:27:07","slug":"homebrew-on-linux","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/homebrew-on-linux\/","title":{"rendered":"Homebrew \u306f Linux \u3067\u3082\u4f7f\u3048\u308b"},"content":{"rendered":"<h2>Homebrew<\/h2>\n<p><a target=\"_blank\" href=\"https:\/\/brew.sh\/\" rel=\"noreferrer noopener\">Homebrew<\/a> \u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>Mac \u3067\u306f Homebrew \u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3092\u3057\u3066\u308b\u4eba\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Linux \u306f\u5404\u30c7\u30a3\u30b9\u30c8\u30ed\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406 (apt, packman, yum \u7b49) \u3092\u4f7f\u3046\u306e\u304c\u7c21\u5358\u3067\u3059\u304c\u3001\u958b\u767a\u7528\u30de\u30b7\u30f3\u306a\u3089\u3070 Homebrew \u3082\u5408\u308f\u305b\u3066\u5c0e\u5165\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3057\u305f\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><a target=\"_blank\" href=\"https:\/\/brew.sh\/\" rel=\"noreferrer noopener\">Homebrew\u516c\u5f0f<\/a> \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>macOS \u3068\u540c\u69d8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-sh\">\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;<\/code><\/pre>\n<h2>\u8a2d\u5b9a\u306e\u8abf\u6574<\/h2>\n<p>\u4e0a\u8a18\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001Homebrew \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001 <code>~\/.profile<\/code> \u306b\u8a2d\u5b9a\u304c\u8ffd\u8a18\u3055\u308c\u3066\u3001\u305d\u306e\u307e\u307e\u4f7f\u3044\u59cb\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3060\u3068 Homebrew \u304c\u8a2d\u5b9a\u3059\u308b PATH \u304c\u5148\u982d\u306e\u65b9\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><code>~\/.linuxbrew\/bin<\/code> \u3068 <code>~\/.linuxbrew\/sbin<\/code> \u304c\u3001PATH\u306e\u5148\u982d\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Homebrew \u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u3044\u308c\u3070\u7279\u306b\u56f0\u308b\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001Linux \u6a19\u6e96\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3044\u3066\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\u3067 Homebrew \u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u3001\u5c11\u3057\u56f0\u308b\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Homebrew \u304c\u4f9d\u5b58\u95a2\u4fc2\u306e\u305f\u3081\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u305f\u3081\u306b\u306f\u5fc5\u8981\u3060\u3068\u3057\u3066\u3082\u305d\u308c\u3092\u76f4\u63a5\u4f7f\u3044\u305f\u304f\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u3001Homebrew \u3092\u512a\u5148\u3057\u305f\u304f\u306a\u3044\u306e\u3067\u3042\u308c\u3070 PATH \u306e\u8a2d\u5b9a\u9806\u5e8f\u304c\u610f\u56f3\u901a\u308a\u306b\u306a\u308b\u3088\u3046\u306b <code>.zshrc<\/code> \u3084 <code>.bashrc<\/code> \u306a\u3069\u3092\u8abf\u6574\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>macOS \u306e\u6642\u3068\u540c\u69d8\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-sh\">brew install gh<\/code><\/pre>\n<p>\u624b\u5143\u3067 Ubuntnu 20.04 \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001 <code>apt<\/code> \u3067\u306f\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f <code>gh<\/code> \u3084 <code>circleci<\/code> \u30b3\u30de\u30f3\u30c9\u3092 brew \u3067\u5165\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001macOS \u3067 brew \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u3082\u306e\u304c\u5168\u3066 Linux \u3067\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001 <code>brew cask<\/code> \u306f Linux \u3060\u3068\u4f7f\u3048\u306a\u3044\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u5b8c\u5168\u306b macOS \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305f\u3082\u306e\u3092\u305d\u3063\u304f\u308a\u305d\u306e\u307e\u307e\u5165\u308c\u3089\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u591a\u304f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c Linux \u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3055\u308c\u3066\u3044\u306a\u304f\u3066\u7ba1\u7406\u304c\u9762\u5012\u3068\u601d\u3063\u3066\u3044\u305f\u3082\u306e\u304c\u898b\u3064\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\ud83d\ude0e<\/p>\n<p>macOS \u30e6\u30fc\u30b6\u304c WSL2 \u3067\u74b0\u5883\u69cb\u7bc9\u3057\u305f\u3068\u3044\u3046\u8a18\u4e8b\u3092\u4ee5\u524d\u306b\u66f8\u3044\u305f\u306e\u3067\u3001\u305d\u3061\u3089\u3082\u826f\u304b\u3063\u305f\u3089\u5fa1\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"card mb-3\">\n  <div class=\"row no-gutters\">\n    <div class=\"col-sm-12 col-md-3\" style=\"margin: auto 0\">\n      <a href=\"https:\/\/ecpplus.net\/weblog\/setup-wsl2\/\">\n        <img decoding=\"async\" data-src=\"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2005\/02\/Windows-300x120.png\" class=\"img-fluid img-card w-100 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/120;\" \/>\n      <\/a>\n    <\/div>\n    <div class=\"col-sm-12 col-md-9\">\n      <div class=\"card-body\" style=\"padding: 0.25rem 1rem; line-height: 1.5rem\">\n        <a href=\"https:\/\/ecpplus.net\/weblog\/setup-wsl2\/\">Mac\u30e6\u30fc\u30b6\u30fc\u304cWindows\u3067\u958b\u767a\u74b0\u5883\u3092\u4f5c\u3063\u305f<\/a><br\/>\n        <small class=\"text-muted\">\u9577\u3089\u304f macOS \u3067\u958b\u767a\u3057\u3066\u3044\u305f\u30e6\u30fc\u30b6\u76ee\u7dda\u3067\u3001Windows + WSL2 \u3067\u958b\u767a\u74b0\u5883\u3092\u4f5c\u308b\u969b\u306b\u884c\u3063\u305f\u3053\u3068\u3084\u611f\u3058\u305f\u3053\u3068\u306e\u307e\u3068\u3081\u3067\u3059\u3002\u540c\u3058\u3082\u306e\u306f\u4f7f\u3048\u306a\u3044\u3067\u3059\u304c\u3001\u591a\u304f\u306e\u30c4\u30fc\u30eb\u3067\u4ee3\u66ff\u304c\u898b\u3064\u304b\u308a\u3001\u74b0\u5883\u69cb\u7bc9\u306f\u554f\u984c\u306a\u304f\u884c\u3048\u307e\u3057\u305f\ud83d\udc4d<\/small>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Homebrew \u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u3002 Mac \u3067\u306f Homebrew \u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3092\u3057\u3066\u308b\u4eba\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002 Linux \u306f\u5404\u30c7\u30a3\u30b9\u30c8\u30ed\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406 (apt, packman, yum \u7b49) \u3092\u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4297,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[7,62],"class_list":["post-4291","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-linux","tag-tips"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/4291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=4291"}],"version-history":[{"count":6,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/4291\/revisions"}],"predecessor-version":[{"id":4327,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/4291\/revisions\/4327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media\/4297"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=4291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=4291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=4291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}