Homebrew: Difference between revisions
Jump to navigation
Jump to search
Line 83: | Line 83: | ||
==Knowledge== | ==Knowledge== | ||
<source lang="bash"> | <source lang="bash"> | ||
brew link --overwrite postgresql@12 | |||
brew services start postgresql@12 | |||
brew services stop postgresql@12 | |||
brew uninstall postgresql@12 | |||
brew install [email protected] | |||
brew services list | |||
ls -lah ~/Library/LaunchAgents/ | ls -lah ~/Library/LaunchAgents/ | ||
ls -lah /usr/local/opt/ | ls -lah /usr/local/opt/ |
Revision as of 09:14, 5 January 2021
install homebrew or brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" https://github.com/settings/tokens >> generate new token 1. Note >> HOMEBREW_GITHUB_API_TOKEN 2. Select scopes >> repo >> public_repo export HOMEBREW_GITHUB_API_TOKEN=xxxx
Knowledge
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" \
fetch --unshallow
brew update
brew doctor
brew cleanup
brew pin derby
brew unpin derby
brew list --pinned
brew services run derby
brew services stop derby
|
brew upgrade
brew upgrade --cask
brew doctor
brew cleanup
brew list
brew list --cask
brew deps --tree --installed
brew services list
brew services start derby
brew services restart derby
|
RBEnv
brew install rbenv
rbenv init
:'
# Load rbenv automatically by appending
# the following to ~/.bash_profile:
eval "$(rbenv init -)"
'
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
:"
Checking for `rbenv' in PATH: /usr/local/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /usr/local/bin/rbenv-install (ruby-build 20201118)
Counting installed Ruby versions: none
There aren't any Ruby versions installed under `/Users/shahed/.rbenv/versions'.
You can install Ruby versions like so: rbenv install 2.2.4
Checking RubyGems settings: OK
Auditing installed plugins: OK
"
#echo "gem: no-document" > ~/.gemrc
brew upgrade rbenv ruby-build
rbenv install --list
rbenv install 2.7.2
rbenv global 2.7.2
Cocoapods
gem install cocoapods
#eval "$(rbenv init -)"
export LANG=en_US.UTF-8
pod --version
Knowledge
brew link --overwrite postgresql@12
brew services start postgresql@12
brew services stop postgresql@12
brew uninstall postgresql@12
brew install [email protected]
brew services list
ls -lah ~/Library/LaunchAgents/
ls -lah /usr/local/opt/