Last active
November 7, 2023 10:57
-
-
Save lotharschulz/a6552c5edb4ad032c88d81f4809ae367 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -euo pipefail | |
IFS=$'\n\t' | |
################################### | |
# BREW uninstall script for osx_bootstrap.sh script | |
################################### | |
SUDO_USER=$(whoami) | |
brew uninstall coreutils | |
brew uninstall gnu-sed | |
brew uninstall gnu-tar | |
brew uninstall gnu-indent | |
brew uninstall gnu-which | |
echo "uninstall gnu tools" | |
brew uninstall findutils | |
echo "uninstall java" | |
# https://github.com/AdoptOpenJDK/homebrew-openjdk#-deprecation-notice- && https://formulae.brew.sh/cask/temurin | |
brew uninstall --cask temurin | |
PACKAGES=( | |
alfred | |
asciinema | |
bash | |
ack | |
autoconf | |
automake | |
autojump | |
aws-iam-authenticator | |
ffmpeg | |
fx | |
gcc | |
gettext | |
gifsicle | |
git | |
graphviz | |
gradle | |
grpc | |
golang | |
gnupg | |
hub | |
httpie | |
kotlin | |
kubernetes-cli | |
kubernetes-helm | |
maven | |
imagemagick | |
jq | |
jpegoptim | |
libjpeg | |
libmemcached | |
lynx | |
make | |
markdown | |
memcached | |
mercurial | |
minikube | |
netron | |
nmap | |
npm | |
nvm | |
node | |
optipng | |
pkg-config | |
postgresql | |
python | |
python3 | |
pypy | |
rabbitmq | |
ripgrep | |
rename | |
ssh-copy-id | |
stats | |
tig | |
terminal-notifier | |
tesseract | |
the_silver_searcher | |
tmux | |
tree | |
yamllint | |
vim | |
watch | |
wget | |
) | |
echo "Installing packages..." | |
brew uninstall ${PACKAGES[@]} | |
CASKS=( | |
android-studio | |
firefox | |
gimp | |
google-chrome | |
intellij-idea-ce | |
keepingyouawake | |
protopie | |
rectangle | |
slack | |
telegram | |
thunderbird | |
vagrant | |
visual-studio-code | |
vlc | |
zoom | |
) | |
echo "Installing cask apps..." | |
sudo -u $SUDO_USER brew uninstall --cask ${CASKS[@]} | |
#sudo -u $SUDO_USER brew uninstall --cask docker | |
#or | |
#brew uninstall colima | |
echo "Cleaning up..." | |
brew cleanup | |
echo "brew update" | |
brew update | |
echo "brew upgrade" | |
brew upgrade | |
echo "brew doctor" | |
brew doctor | |
# please see also the accompanying blog post | |
# https://www.lotharschulz.info/2021/05/11/macos-setup-automation-with-homebrew/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment