How can i get more info about a brew formula before installing?

前端 未结 5 1378
一生所求
一生所求 2021-02-01 00:32

I know i can do something like

## brew info FORMULA_NAME
brew info wgetpaste

Output

wgetpaste: stable 2.20
http://wgetpaste.         


        
相关标签:
5条回答
  • 2021-02-01 01:04

    I use brew [cask] cat [...] to see the exact formula (without necessarily editing it as other answers here suggest). It shows what gets downloaded, from where, with what checksum, what other formuli/casks it depends on, etc. Here's an example:

    $ brew cask cat java
    cask 'java' do
      version '12.0.2,10:e482c34c86bd4bf8b56c0b35558996b9'
      sha256 '675a739ab89b28a8db89510f87cb2ec3206ec6662fb4b4996264c16c72cdd2a1'
    
      url "https://download.java.net/java/GA/jdk#{version.before_comma}/#{version.after_colon}/#{version.after_comma.before_colon}/GPL/openjdk-#{version.before_comma}_osx-x64_bin.tar.gz"
      name 'OpenJDK Java Development Kit'
      homepage 'https://openjdk.java.net/'
    
      artifact "jdk-#{version.before_comma}.jdk", target: "/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk"
    
      uninstall rmdir: '/Library/Java/JavaVirtualMachines'
    end
    
    0 讨论(0)
  • 2021-02-01 01:13

    In homebrew you have casks and formulas, which have different functions, so:

    For formulas:

    To get info about the formula itself you can use what you did (brew info [formula name). To get info about the app you're installing use:

    brew desc [Formula name]
    

    You can also go to the homebrew's site for the formula via brew home [formula name

    For Casks:

    Sadly, casks (like Firefox) don't have the desc command and you only have brew cask info (what you used) and brew cask home

    0 讨论(0)
  • 2021-02-01 01:18

    Nope. Homebrew intentionally lets the web sites serve as documentation of the packages, instead of maintaining a separate copy of it.

    You can do a brew home <formula> to fire up a browser from the command line, or brew edit <formula> to examine the formula's installation instructions themselves in an editor.

    0 讨论(0)
  • 2021-02-01 01:19

    You can get a one-line textual description of a package with:

    brew desc FORMULA-NAME
    

    For example, "brew desc terminator" returns:

    terminator: Multiple terminals in one window

    0 讨论(0)
  • 2021-02-01 01:28

    try this:

    brew cask info [package]
    
    0 讨论(0)
提交回复
热议问题