choco 설치
# cmd 사용설치 @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" # powershell 사용설치 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) _
---------------------
컴퓨터 전체에 설치되는 프로그램들은, 전역global 권한이 필요합니다.
'관리자 권한'으로 실행한 powershell에서 명령어를 입력해야지
설치시 '경로에 대한 액세스가 거부되었습니다' 오류를 보지 않습니다.
# chocolatey 자체 버전 업그레이드 choco upgrade chocolatey # 설치된 프로그램의 업그레이드 choco upgrade notepadplusplus googlechrome atom 7zip

https://docs.chocolatey.org/en-us/choco/commands/upgrade
Chocolatey Software Docs | Upgrade
Upgrade Command (choco upgrade)
docs.chocolatey.org
https://docs.chocolatey.org/en-us/choco/setup#non-administrative-install

# set in terminal / powershell Set-ExecutionPolicy Bypass -Scope Process -Force; # MAKE file installchoco.ps1 # Set directory for installation - Chocolatey does not lock # down the directory if not the default $InstallDir='C:\ProgramData\chocoportable' $env:ChocolateyInstall="$InstallDir" # If your PowerShell Execution policy is restrictive, you may # not be able to get around that. Try setting your session to # Bypass. Set-ExecutionPolicy Bypass -Scope Process -Force; # All install options - offline, proxy, etc at # https://chocolatey.org/install iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) #
_
반응형