chocolatey

박상수
박상수
Sep 5, 2018 · 4 min read

일반적으로 linux 개발환경에서는 apt-get 혹은 yum을 이용하여 패키지를 다운로드, 설치를 한다.

많은 개발자들이 이런 커맨드라인을 즐겨하는 것에 MS도 인정을 하고 Chocolatey라는 패키지 매니저를 개발하였다.

설치 요구사항

  • Windows 7+ / Windows Server 2003+
  • PowerShell v2+
  • .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)
  • 비주얼스튜디오는 설치 하지 않아도 된다.

설치방법

  1. cmd.exe 을 연다(관리자모드)
  2. cmd.exe에서 다음 명령어를 실행(잘 안될경우 powershell의 경로를 확인)
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

3. cmd.exe > powershell > 아래 명령어 입력

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

4. cmd.exe 아래 명령어 실행 (chocolatey 업데이트)

choco upgrade chocolatey

패키지 검색

  • url이 포함된 패키지 검색
choco search url 

패키지 버전 확인

  • -a, --all, --allversions 으로 버전 확인 가능
choco search url -a 

로컬에 설치된 패키지 목록

choco list --local-only

패키지 인스톨

choco install grepwin (--version <version number>)

패키지 언인스톨

choco uninstall grepwin

추천 패키지

  • curl
  • git
  • node
  • php 등..

참고

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade