Skip to content

Instantly share code, notes, and snippets.

@AtalayBarut
Last active January 15, 2022 12:38
Show Gist options
  • Select an option

  • Save AtalayBarut/74753ab12eb90312b376c81f5e018c11 to your computer and use it in GitHub Desktop.

Select an option

Save AtalayBarut/74753ab12eb90312b376c81f5e018c11 to your computer and use it in GitHub Desktop.

Homebrew

https://brew.sh/index_tr

Homebrew Location

$ cd /usr/local

Homebrew Packages

$ cd /usr/local/Cellar

Homebrew Commands

# Installing a Package
$ brew install 'package name'

# Uninstalling a Package
$ brew uninstall 'package name'

# Outdated Packages
$ brew outdated

# Updating Packages
$ brew list
$ brew update (update brew itself)
$ brew upgrade (updating all brew packages)
$ brew upgrade 'package name' (updating a specific package)

Node Packages

$ cd /usr/local/lib/node_modules

npm UPDATE

# Check for npm Updates
$ cd /usr/local/lib/node_modules/npm
$ npm-check-updates

# Update Packages
$ npm update

npm Package Details

$ npm ls -g --dept 

MongoDB

$ brew install mongodb
$ sudo mkdir -p /data/db
$ sudo chown -R `id -un` /data/db
$ mongod

DART

$ brew tap dart-lang/dart
$ brew install dart
$ cd /usr/local/opt/dart/libexec

MacOs Show All Hidden Files

$ defaults write com.apple.finder AppleShowAllFiles YES
$ killall Finder

dotnet location

$ /usr/local/share/dotnet 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment