Created
November 14, 2021 21:43
-
-
Save Fusion/d0a24928b5bab8e83486c4a96f652829 to your computer and use it in GitHub Desktop.
Check missing packages before migrating from Brew to Nix on MacOS
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 characters
# Note: this is a first pass. Some packages may be reported as missing due to their unorthodox naming; e.g. Python | |
brew update -q;nix-channel --update&>/dev/null;export T1=$(mktemp);T2=$(mktemp);brew list -1>$T1;nix-env -qaP|awk '{print $2}'>$T2;for pkg in $(cat $T1);do grep "^$pkg" $T2>/dev/null;[ $? -eq 0 ] || echo "Package $pkg not available.";done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Multiline version: