Difference between revisions of "Homebrew: list available package versions"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
  [[brew search]] yourpackagetosearchforversions | grep "[[@]]"
 
  [[brew search]] yourpackagetosearchforversions | grep "[[@]]"
  
  [[brew info --json postgresql]] | jq -r '.[].versioned_formulae[]' <ref>https://stackoverflow.com/a/59569730</ref>
+
  [[brew info --json postgresql]] | [[jq -r]] '.[].versioned_formulae[]' <ref>https://stackoverflow.com/a/59569730</ref>
 
:Note will not show current version and do not work on [[casks]].
 
:Note will not show current version and do not work on [[casks]].
  
Line 14: Line 14:
  
 
== Related ==
 
== Related ==
 +
* <code>[[ brew info --json xz]]</code>
 
* <code>[[snap list --all]]</code>
 
* <code>[[snap list --all]]</code>
* [[brew list --versions]]
+
* <code>[[brew list --versions]]</code>
 
* [[Package managers: list packages]]
 
* [[Package managers: list packages]]
  

Latest revision as of 08:22, 1 April 2024

brew search yourpackagetosearchforversions | grep "@"
brew info --json postgresql | jq -r '.[].versioned_formulae[]' [1]
Note will not show current version and do not work on casks.


brew search node  | grep "@"
node@10
node@14
node@16
node@18

Related[edit]

See also[edit]

  • https://stackoverflow.com/a/59569730
  • Advertising: