Chocolatey는 Windows에서 소프트웨어를 설치, 업그레이드 또는 제거 작업을 자동화하는 도구이다.
리눅스 패키지 관리자에 익숙한 사용자에게는 yum 또는 apt-get과 같은 Windows의 바이너리 패키지 관리자인 것이다.
Cmd 또는 PowerShell 로 설치할 수 있으며 관리자권한으로 실행해야한다.
Cmd 설치명령
@"%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"
PowerShell 설치명령
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
다음과 같은 명령 옵션들이있다.
list - lists remote or local packages
search - searches remote or local packages (alias for list)
info - retrieves package information. Shorthand for choco search pkgname --exact --verbose
install - installs packages from various sources
pin - suppress upgrades for a package
outdated - retrieves packages that are outdated. Similar to upgrade all --noop
upgrade - upgrades packages from various sources
uninstall - uninstalls a package
pack - packages up a nuspec to a compiled nupkg
push - pushes a compiled nupkg
new - generates files necessary for a chocolatey package from a template
sources - view and configure default sources (alias for source)
source - view and configure default sources
config - Retrieve and configure config file settings
feature - view and configure choco features
features - view and configure choco features (alias for feature)
setapikey - retrieves or saves an apikey for a particular source (alias for apikey)
apikey - retrieves or saves an apikey for a particular source
unpackself - have chocolatey set itself up
version - [DEPRECATED] will be removed in v1 - use choco outdated or cup <pkg|all> -whatif instead
update - [DEPRECATED] RESERVED for future use (you are looking for upgrade, these are not the droids you are looking for)
support - provides support information
download - downloads packages - optionally internalizing all remote resources
synchronize - synchronizes against system installed software - generates missing packages
sync - synchronizes against system installed software - generates missing packages
optimize - optimizes installation, reducing space usage