Skip to content

Instantly share code, notes, and snippets.

@lotharschulz
Last active November 7, 2023 10:57
Show Gist options
  • Save lotharschulz/a6552c5edb4ad032c88d81f4809ae367 to your computer and use it in GitHub Desktop.
Save lotharschulz/a6552c5edb4ad032c88d81f4809ae367 to your computer and use it in GitHub Desktop.

Revisions

  1. lotharschulz revised this gist Nov 7, 2023. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,6 @@ PACKAGES=(
    gnupg
    hub
    httpie
    hyperkit
    kotlin
    kubernetes-cli
    kubernetes-helm
    @@ -93,13 +92,11 @@ brew uninstall ${PACKAGES[@]}

    CASKS=(
    android-studio
    chromium
    firefox
    gimp
    google-chrome
    intellij-idea-ce
    keepingyouawake
    miro
    protopie
    rectangle
    slack
  2. lotharschulz revised this gist Nov 6, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -75,6 +75,7 @@ PACKAGES=(
    ripgrep
    rename
    ssh-copy-id
    stats
    tig
    terminal-notifier
    tesseract
  3. lotharschulz revised this gist Nov 6, 2023. 1 changed file with 2 additions and 6 deletions.
    8 changes: 2 additions & 6 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -19,12 +19,8 @@ echo "uninstall gnu tools"
    brew uninstall findutils

    echo "uninstall java"
    # https://github.com/AdoptOpenJDK/homebrew-openjdk
    brew uninstall --cask adoptopenjdk
    brew uninstall --cask adoptopenjdk8
    brew uninstall --cask adoptopenjdk11
    brew uninstall --cask adoptopenjdk14
    brew uninstall --cask adoptopenjdk15
    # https://github.com/AdoptOpenJDK/homebrew-openjdk#-deprecation-notice- && https://formulae.brew.sh/cask/temurin
    brew uninstall --cask temurin

    PACKAGES=(
    alfred
  4. lotharschulz revised this gist Dec 5, 2022. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,6 @@ brew uninstall --cask adoptopenjdk15
    PACKAGES=(
    alfred
    asciinema
    atom
    bash
    ack
    autoconf
    @@ -96,7 +95,6 @@ echo "Installing packages..."
    brew uninstall ${PACKAGES[@]}

    CASKS=(
    atom
    android-studio
    chromium
    firefox
  5. lotharschulz revised this gist Mar 22, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -44,6 +44,7 @@ PACKAGES=(
    git
    graphviz
    gradle
    grpc
    golang
    gnupg
    hub
  6. lotharschulz revised this gist Nov 19, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -65,6 +65,7 @@ PACKAGES=(
    mercurial
    minikube
    netron
    nmap
    npm
    nvm
    node
  7. lotharschulz revised this gist Nov 19, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,7 @@ PACKAGES=(
    libjpeg
    libmemcached
    lynx
    make
    markdown
    memcached
    mercurial
  8. lotharschulz revised this gist Nov 10, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -96,7 +96,6 @@ CASKS=(
    atom
    android-studio
    chromium
    docker
    firefox
    gimp
    google-chrome
    @@ -117,6 +116,10 @@ CASKS=(
    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

  9. lotharschulz revised this gist Oct 29, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -106,6 +106,7 @@ CASKS=(
    protopie
    rectangle
    slack
    telegram
    thunderbird
    vagrant
    visual-studio-code
  10. lotharschulz revised this gist Oct 27, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -124,4 +124,7 @@ brew update
    echo "brew upgrade"
    brew upgrade
    echo "brew doctor"
    brew doctor
    brew doctor

    # please see also the accompanying blog post
    # https://www.lotharschulz.info/2021/05/11/macos-setup-automation-with-homebrew/
  11. lotharschulz revised this gist Oct 27, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,6 @@ PACKAGES=(
    automake
    autojump
    aws-iam-authenticator
    boot2docker
    ffmpeg
    fx
    gcc
  12. lotharschulz revised this gist Aug 20, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -49,6 +49,7 @@ PACKAGES=(
    gnupg
    hub
    httpie
    hyperkit
    kotlin
    kubernetes-cli
    kubernetes-helm
  13. lotharschulz revised this gist Aug 20, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -108,7 +108,6 @@ CASKS=(
    slack
    thunderbird
    vagrant
    virtualbox
    visual-studio-code
    vlc
    zoom
  14. lotharschulz revised this gist Aug 20, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,7 @@ PACKAGES=(
    boot2docker
    ffmpeg
    fx
    gcc
    gettext
    gifsicle
    git
  15. lotharschulz revised this gist Mar 11, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -78,6 +78,7 @@ PACKAGES=(
    ssh-copy-id
    tig
    terminal-notifier
    tesseract
    the_silver_searcher
    tmux
    tree
  16. lotharschulz revised this gist Mar 2, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,7 @@ PACKAGES=(
    minikube
    netron
    npm
    nvm
    node
    optipng
    pkg-config
  17. lotharschulz revised this gist Feb 12, 2021. 1 changed file with 20 additions and 19 deletions.
    39 changes: 20 additions & 19 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -62,6 +62,7 @@ PACKAGES=(
    memcached
    mercurial
    minikube
    netron
    npm
    node
    optipng
    @@ -89,25 +90,25 @@ echo "Installing packages..."
    brew uninstall ${PACKAGES[@]}

    CASKS=(
    atom
    android-studio
    chromium
    docker
    firefox
    gimp
    google-chrome
    intellij-idea-ce
    keepingyouawake
    miro
    protopie
    rectangle
    slack
    thunderbird
    vagrant
    virtualbox
    visual-studio-code
    vlc
    zoom
    atom
    android-studio
    chromium
    docker
    firefox
    gimp
    google-chrome
    intellij-idea-ce
    keepingyouawake
    miro
    protopie
    rectangle
    slack
    thunderbird
    vagrant
    virtualbox
    visual-studio-code
    vlc
    zoom
    )

    echo "Installing cask apps..."
  18. lotharschulz revised this gist Jan 20, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -62,7 +62,6 @@ PACKAGES=(
    memcached
    mercurial
    minikube
    miro
    npm
    node
    optipng
    @@ -99,6 +98,7 @@ CASKS=(
    google-chrome
    intellij-idea-ce
    keepingyouawake
    miro
    protopie
    rectangle
    slack
  19. lotharschulz revised this gist Jan 20, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -62,6 +62,7 @@ PACKAGES=(
    memcached
    mercurial
    minikube
    miro
    npm
    node
    optipng
  20. lotharschulz revised this gist Jan 18, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,6 @@ PACKAGES=(
    gradle
    golang
    gnupg
    gnupg
    hub
    httpie
    kotlin
  21. lotharschulz revised this gist Jan 18, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ PACKAGES=(
    gradle
    golang
    gnupg
    gpg
    gnupg
    hub
    httpie
    kotlin
  22. lotharschulz revised this gist Jan 18, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -46,6 +46,7 @@ PACKAGES=(
    gradle
    golang
    gnupg
    gpg
    hub
    httpie
    kotlin
  23. lotharschulz revised this gist Jan 18, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -94,11 +94,14 @@ CASKS=(
    chromium
    docker
    firefox
    gimp
    google-chrome
    intellij-idea-ce
    keepingyouawake
    protopie
    rectangle
    slack
    thunderbird
    vagrant
    virtualbox
    visual-studio-code
    @@ -117,4 +120,4 @@ brew update
    echo "brew upgrade"
    brew upgrade
    echo "brew doctor"
    brew doctor
    brew doctor
  24. lotharschulz created this gist Jan 16, 2021.
    120 changes: 120 additions & 0 deletions osx_bootstrap_uninstall.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,120 @@
    #!/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
    brew uninstall --cask adoptopenjdk
    brew uninstall --cask adoptopenjdk8
    brew uninstall --cask adoptopenjdk11
    brew uninstall --cask adoptopenjdk14
    brew uninstall --cask adoptopenjdk15

    PACKAGES=(
    alfred
    asciinema
    atom
    bash
    ack
    autoconf
    automake
    autojump
    aws-iam-authenticator
    boot2docker
    ffmpeg
    fx
    gettext
    gifsicle
    git
    graphviz
    gradle
    golang
    gnupg
    hub
    httpie
    kotlin
    kubernetes-cli
    kubernetes-helm
    maven
    imagemagick
    jq
    jpegoptim
    libjpeg
    libmemcached
    lynx
    markdown
    memcached
    mercurial
    minikube
    npm
    node
    optipng
    pkg-config
    postgresql
    python
    python3
    pypy
    rabbitmq
    ripgrep
    rename
    ssh-copy-id
    tig
    terminal-notifier
    the_silver_searcher
    tmux
    tree
    yamllint
    vim
    watch
    wget
    )

    echo "Installing packages..."
    brew uninstall ${PACKAGES[@]}

    CASKS=(
    atom
    android-studio
    chromium
    docker
    firefox
    google-chrome
    intellij-idea-ce
    keepingyouawake
    rectangle
    slack
    vagrant
    virtualbox
    visual-studio-code
    vlc
    zoom
    )

    echo "Installing cask apps..."
    sudo -u $SUDO_USER brew uninstall --cask ${CASKS[@]}

    echo "Cleaning up..."
    brew cleanup

    echo "brew update"
    brew update
    echo "brew upgrade"
    brew upgrade
    echo "brew doctor"
    brew doctor