Skip to content

Instantly share code, notes, and snippets.

@urbanc
Last active May 7, 2024 11:28
Show Gist options
  • Save urbanc/89b0f33054f4922e127bd1a7a8eb419b to your computer and use it in GitHub Desktop.
Save urbanc/89b0f33054f4922e127bd1a7a8eb419b to your computer and use it in GitHub Desktop.
brew install packages list
#!/bin/bash
# Installs Homebrew and some of the common dependencies needed/desired for software development
# Ask for the administrator password upfront
sudo -v
# Check for Homebrew and install it if missing
if test ! $(which brew)
then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew tap caskroom/versions
brew tap homebrew/dupes #rsync
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Install the Homebrew packages
apps=(
git
git-extras
gh
tree
dockutil #https://github.com/kcrawford/dockutil
#keybase #Keybase.io
#gpg # for Keybase
#gnupg # for Keybase
nano
#go
#openssl@1.1
chkrootkit
rkhunter
htop
docker-compose
ctop
tmux
zsh
zsh-completion
zsh-syntax-highlighting
KeePassXC
yarn
node
nvm
curl
composer
ssh-copy-id
nmap
watch
httpie
#pv
shellcheck
rsync
brew-cask-completion
docker-completion
speedtest-cli
#act
pre-commit
)
brew install "${apps[@]}"
# Remove outdated versions from the cellar
brew cleanup
# Run brew doctor
brew doctor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment