{"id":8079,"date":"2017-02-06T16:08:55","date_gmt":"2017-02-06T08:08:55","guid":{"rendered":"http:\/\/jpuyy.com\/?p=8079"},"modified":"2022-04-23T18:00:55","modified_gmt":"2022-04-23T10:00:55","slug":"brew%e6%b8%85%e7%90%86%e5%8c%85%e5%92%8c-img","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=8079","title":{"rendered":"brew\u5b89\u88c5\u591a\u7248\u672c \u6e05\u7406\u5305\u548c img"},"content":{"rendered":"<p>brew \u5b89\u88c5\u591a\u7248\u672c<\/p>\n<p>\u4f8b\u5b50\uff0c\u5f53\u524d gradle 5.2.1 \uff0c\u60f3\u5c06 4.10.2 \u88c5\u4e0a\uff0c\u627e\u5230 formula \u7684 git \u76ee\u5f55\uff0c\u5207\u5230\u5bf9\u5e94 4.10.2 \u7684 commit\uff0c\u5b89\u88c5\uff0c\u5b89\u88c5\u5b8c\u4e4b\u540e\u518d\u5207\u56de master<\/p>\n<pre>$ brew list gradle --versions\r\ngradle 5.2.1\r\n$ cd \"$(brew --repo homebrew\/core)\"\r\n$ pwd\r\n\/usr\/local\/Homebrew\/Library\/Taps\/homebrew\/homebrew-core\r\n$ git log master -- Formula\/gradle.rb \r\n...\r\ncommit 01e0511df2c37b052a9659797f3c09df3f20d533\r\nAuthor: Jerome Lapostolet <jerome.lapostolet@gmail.com>\r\nDate:   Thu Sep 20 08:51:53 2018 +0100\r\n\r\n    gradle 4.10.2\r\n...\r\n\r\n$ git checkout 01e0511df2c37b052a9659797f3c09df3f20d533\r\nNote: checking out '01e0511df2c37b052a9659797f3c09df3f20d533'.\r\n\r\nYou are in 'detached HEAD' state. You can look around, make experimental\r\nchanges and commit them, and you can discard any commits you make in this\r\nstate without impacting any branches by performing another checkout.\r\n\r\nIf you want to create a new branch to retain commits you create, you may\r\ndo so (now or later) by using -b with the checkout command again. Example:\r\n\r\n  git checkout -b <new-branch-name>\r\n\r\nHEAD is now at 01e0511df2 gradle 4.10.2\r\n$ HOMEBREW_NO_AUTO_UPDATE=1 brew install gradle\r\nError: gradle 5.2.1 is already installed\r\nTo install 4.10.2, first run `brew unlink gradle`.\r\n$ HOMEBREW_NO_AUTO_UPDATE=1 brew unlink gradle\r\nUnlinking \/usr\/local\/Cellar\/gradle\/5.2.1... 1 symlinks removed\r\n$ HOMEBREW_NO_AUTO_UPDATE=1 brew install gradle\r\n==&gt; Downloading https:\/\/services.gradle.org\/distributions\/gradle-4.10.2-all.zip\r\n==&gt; Downloading from https:\/\/downloads.gradle.org\/distributions\/gradle-4.10.2-all.zip\r\n######################################################################## 100.0%\r\n&#x1f37a;  \/usr\/local\/Cellar\/gradle\/4.10.2: 203 files, 83.7MB, built in 5 minutes 56 seconds\r\n$ git checkout master\r\n<\/new-branch-name><\/jerome.lapostolet@gmail.com>\r\n$ brew list gradle --versions\r\ngradle 5.2.1 4.10.2\r\n\r\n<\/pre>\n<p>\u4e4b\u540e\u53ef\u4ee5\u7528 brew swith gradle x.x.x \u5728\u4e0d\u540c\u7248\u672c\u4e4b\u95f4\u5207\u6362<br \/>\nhelm \u5b89\u88c5 v2.9.1 \u7248\u672c<\/p>\n<pre>https:\/\/medium.com\/@nehaguptag\/installing-older-version-of-helm-downgrading-helm-8f3240592202\r\nwget https:\/\/raw.githubusercontent.com\/Homebrew\/homebrew-core\/78d64252f30a12b6f4b3ce29686ab5e262eea812\/Formula\/kubernetes-helm.rb\r\nbrew install kubernetes-helm.rb\r\n<\/pre>\n<p>\u67e5\u770b\u5df2\u7ecf\u5b89\u88c5\u7684\u5305<\/p>\n<pre>brew list<\/pre>\n<p>\u9009\u62e9\u8981\u6e05\u7406\u7684\u5305<\/p>\n<pre>brew uninstall mariadb<\/pre>\n<p>\u6574\u4f53\u6e05\u7406<\/p>\n<pre>brew update &amp;&amp; brew upgrade &amp;&amp; brew cleanup\r\n\r\n==&gt; This operation has freed approximately 427.8M of disk space.<\/pre>\n<pre>brew cask cleanup<\/pre>\n<p>https:\/\/brew.sh\/ \u641c\u7d22\u8f6f\u4ef6\u548c\u7248\u672c<\/p>\n<p>\u68c0\u67e5\u5f53\u524d brew \u7684\u914d\u7f6e\u60c5\u51b5<\/p>\n<pre>\r\nbrew doctor                                                                                               master 187b0c8b0d\r\nPlease note that these warnings are just used to help the Homebrew maintainers\r\nwith debugging if you file an issue. If everything you use Homebrew for is\r\nworking fine: please don't worry or file an issue; just ignore this. Thanks!\r\n\r\nWarning: Some installed kegs have no formulae!\r\nThis means they were either deleted or installed with `brew diy`.\r\nYou should find replacements for the following formulae:\r\n  python@2\r\n  ab\r\n  tuntap\r\n  unrar\r\n  sshpass\r\n  php54\r\n\r\nWarning: Some installed formulae are deprecated or disabled.\r\nYou should find replacements for the following formulae:\r\n  dep\r\n  docker-machine\r\n  go@1.15\r\n  sshfs\r\n\r\nWarning: Unbrewed dylibs were found in \/usr\/local\/lib.\r\nIf you didn't put them there on purpose they could cause problems when\r\nbuilding Homebrew formulae, and may need to be deleted.\r\n\r\nUnexpected dylibs:\r\n  \/usr\/local\/lib\/libD4P11_ICBC.dylib\r\n  \/usr\/local\/lib\/libD4PinPad_ICBC.dylib\r\n  \/usr\/local\/lib\/libD4Token_ICBC.dylib\r\n  \/usr\/local\/lib\/libshuttle_p11v220.1.0.0.dylib\r\n\r\nWarning: You have unlinked kegs in your Cellar.\r\nLeaving kegs unlinked can lead to build-trouble and cause formulae that depend on\r\nthose kegs to fail to run properly once built. Run `brew link` on these:\r\n  tree\r\n  pandoc\r\n  docker\r\n  python@2\r\n  docker-machine\r\n  ab\r\n  markdown\r\n  tuntap\r\n  aria2\r\n  geoip\r\n  unixodbc\r\n  unrar\r\n  gd\r\n  wireshark\r\n  php54\r\n\r\nWarning: Some taps are not on the default git origin branch and may not receive\r\nupdates. If this is a surprise to you, check out the default branch with:\r\n  git -C $(brew --repo homebrew\/core) checkout master\r\n\r\nWarning: Homebrew's \"sbin\" was not found in your PATH but you have installed\r\nformulae that put executables in \/usr\/local\/sbin.\r\nConsider setting your PATH for example like so:\r\n  echo 'export PATH=\"\/usr\/local\/sbin:$PATH\"' >> ~\/.zshrc\r\n\r\n\r\n<\/pre>\n<p>\u53c2\u8003:<br \/>\nhttps:\/\/www.cnblogs.com\/BlackStorm\/p\/homebrew-install-old-versions-take-node-for-example.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>brew \u5b89\u88c5\u591a\u7248\u672c \u4f8b\u5b50\uff0c\u5f53\u524d gradle 5.2.1 \uff0c\u60f3\u5c06 4.10.2 \u88c5\u4e0a\uff0c\u627e\u5230 formula \u7684 git \u76ee\u5f55\uff0c\u5207\u5230\u5bf9\u5e94 4.10.2 \u7684 commit\uff0c\u5b89\u88c5\uff0c\u5b89\u88c5\u5b8c\u4e4b\u540e\u518d\u5207\u56de master $ brew list gradle &#8211;versions gradle 5.2.1 $ cd &#8220;$(brew &#8211;repo homebrew\/core)&#8221; $ pwd \/usr\/local\/Homebrew\/Library\/Taps\/homebrew\/homebrew-core $ git log master &#8212; Formula\/gradle.rb &#8230; commit 01e0511df2c37b052a9659797f3c09df3f20d533 Author: Jerome Lapostolet Date: Thu Sep 20 08:51:53 2018 +0100 gradle 4.10.2 &#8230; $ git [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[171],"tags":[],"class_list":["post-8079","post","type-post","status-publish","format-standard","hentry","category-macos"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8079"}],"version-history":[{"count":14,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8079\/revisions"}],"predecessor-version":[{"id":9551,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8079\/revisions\/9551"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}