Last active
March 30, 2024 21:08
-
-
Save dolmen/ecabdd0a16bc6dbc87b4ef9ca97767c9 to your computer and use it in GitHub Desktop.
Revisions
-
dolmen revised this gist
Mar 30, 2024 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 (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(", ")))' -
dolmen created this gist
Mar 30, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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}'