Command line으로 Software Update 하기
원문 Update OS X Mountain Lion Without the App Store
맥용 앱 스토어 앱을 통해서 소프트웨어 업데이트를 할 수도 있지만, 마우스질을 하기 귀찮아 하거나 무작정 모든 업데이트를 업데이트를 한다면, 간단하게 커멘드 라인을 통해서 소프트웨어 업데이트 할 수 있다.
우선 터미널 툴을 실행 한다. 그리고
sudo softwareupdate --help 를 통해서 명령어 파라미터 값을 알아 보자.
Steves-MacBook-Air:KraZYeom krazyeom$ sudo softwareupdate --help
Password:
usage: softwareupdate <mode> [<args> ...]
-l | --list List all appropriate updates
-d | --download Download Only
-i | --install Install
<label> ... specific updates
-a | --all all appropriate updates
-r | --recommended only recommended updates
--ignore <label> ... Ignore specific updates
--reset-ignored Clear all ignored updates
--schedule (on | off) Set automatic checking
-v | --verbose Enable verbose output
-h | --help Print this help
위의 목록중 자주 쓰이는 명령어는 아래 두 개 정도이다.
소프트웨어 업데이트 목록 보기
sudo softwareupdate -l
업데이트 모든 목록 업데이트 하기
sudo softwareupdate -i -a