C.W.K.
Stream
Lesson 02 of 05 · published

MacPorts 설치

~10 min · macports, installation

Level 0초심자
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

MacPorts 는 macOS 버전별 사인된 .pkg installer 로 설치. Homebrew 의 curl-pipe-bash 와 다르게 MacPorts 는 공식 installer 경로 원해 — 부분적으로는 strict root 권한과 특정 user/group 구조로 /opt/local prefix 셋업해야 하기 때문.

전제 조건은 Xcode CLT. MacPorts 는 source 에서 컴파일하니까 작동하는 toolchain 필요. xcode-select --install 처리.

installer 끝난 후 가장 먼저 할 거 — sudo port selfupdate. 최신 port 정의 가져와 (Homebrew 'brew update' 와 동등). MacPorts port tree 자주 업데이트되고, 새 install 은 .pkg release 일 기준 최신을 가짐 — 몇 달 됐을 수 있어.

Code

MacPorts install (4단계 의식)·bash
# 1. Xcode CLT (source 빌드 필수)
xcode-select --install

# 2. macOS 에 맞는 .pkg 다운:
#    https://www.macports.org/install.php
#    (Sequoia / Sonoma / Ventura 별 빌드 다름)

# 3. installer 실행 (GUI). /opt/local/bin 아래 binary 둠.

# 4. 검증 + port tree 업데이트
port version
# Version: 2.12.4

sudo port selfupdate
PATH 확인 (보통 자동)·bash
# installer 가 /etc/paths.d/MacPorts 통해 /opt/local/bin 을 PATH 에 추가
cat /etc/paths.d/MacPorts
# /opt/local/bin
# /opt/local/sbin

# Terminal 재시작 또는 'source ~/.zprofile', 그 다음:
which port
# /opt/local/bin/port

External links

Exercise

이 트랙 따라가고 싶으면 .pkg 로 MacPorts install, 'sudo port selfupdate' 돌려, 'port version' 이 2.12.x 이상 반환하는지 확인. Homebrew 에 머물기로 결정해도 MacPorts 깔아두면 homebrew-core 에 없는 port 의 폴백이 됨.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.