Skip to content

Instantly share code, notes, and snippets.

@dolmen
Last active March 30, 2024 21:08
Show Gist options
  • Select an option

  • Save dolmen/ecabdd0a16bc6dbc87b4ef9ca97767c9 to your computer and use it in GitHub Desktop.

Select an option

Save dolmen/ecabdd0a16bc6dbc87b4ef9ca97767c9 to your computer and use it in GitHub Desktop.

Revisions

  1. dolmen revised this gist Mar 30, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion check-xz-in-homebrew.sh
    Original file line number Diff line number Diff line change
    @@ -10,5 +10,8 @@ brew info xz
    brew update
    brew upgrade xz

    # Show bottles which directly depend on xz:
    # Show bottles which directly depend on xz (as JSON lines):
    brew info --installed --json | jq -c '.[] | select(.dependencies | index("xz")) | {(.name): .dependencies}'

    # Show bottles which directly depend on xz (as text):
    brew info --installed --json|jq -cr '.[]|select(.dependencies|index("xz"))|(.name + ": " + (.dependencies | join(", ")))'
  2. dolmen created this gist Mar 30, 2024.
    14 changes: 14 additions & 0 deletions check-xz-in-homebrew.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/bash

    # Commands to evaluate impact of xz installed via homebrew.
    # Author: Olivier Mengué.

    # Show info about xz bottle:
    brew info xz

    # Upgrade xz:
    brew update
    brew upgrade xz

    # Show bottles which directly depend on xz:
    brew info --installed --json | jq -c '.[] | select(.dependencies | index("xz")) | {(.name): .dependencies}'