Post

brew 패키지

목차


GNU COMMAND

기존 명령어들이 리눅스 버전과 조금 달라서, GNU버전의 프로그램을 재설치해 준다.

1
2
3
4
5
6
# gnu 명령어
brew install coreutils
# gnu용 grep
brew install grep
# gnu용 sed
brew install gnu-sed

아래 명령어로 $PATH 환경변수에 지정해주었다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
gnubin_list=("grep" "gnu-sed")

for gnu_path in ${gnubin_list[@]}; do
	if grep -q "/opt/homebrew/opt/$gnu_path/libexec/gnubin" <<< "$PATH"; then
		# remove old path
		export PATH=$(echo "$PATH" | sed "s/\/opt\/homebrew\/opt\/$gnu_path\/libexec\/gnubin://")
	fi
	# create new path
	export PATH="/opt/homebrew/opt/$gnu_path/libexec/gnubin:$PATH"
done

# coreutils
if grep -q "/opt/homebrew/opt/coreutils/libexec/gnubin" <<< "$PATH"; then
	export PATH=$(echo "$PATH" | sed "s/\/opt\/homebrew\/opt\/coreutils\/libexec\/gnubin://")
fi
export PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
fi

터미널

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# find를 대체하는 빠른 검색
brew install fd
# 터미널을 보다 쾌적하게 사용하기 위한 도구
brew install fzf
# 터미널 json 파서
brew install jq
# .ppk 형식의 ssh 개인 키를 .pem 키로 변경하기 위함
brew install puTTY
# 터미널 에디터
brew install emacs
brew instlal macvim
# 디스크 관리 도구
brew install smartmontools

# 터미널 유틸
brew install curl
brew install htop
brew install watch

# 이미지 복붙용 pngpaste
brew install pngpaste

개발 패키지

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# openssl 개발용
brew install openssl@1.1
brew install openssl@3

# python
brew install python@3.11
# ruby
brew install ruby
# nodejs
brew install nodejs
# java
brew install adoptopenjdk14
# 리눅스용 gcc
# 설치 시 gcc/g++이 같이 설치된다.
brew install gcc

# scm
brew install git
brew install subversion
brew install git-svn
This post is licensed under CC BY 4.0 by the author.