"윈도우 Chocolatey 설치"의 두 판 사이의 차이

4번째 줄: 4번째 줄:
* [[관리자 권한으로 명령 프롬프트 실행]]
* [[관리자 권한으로 명령 프롬프트 실행]]
<source lang='doscon'>
<source lang='doscon'>
C:\windows\system32>choco -v
C:\Windows\system32>choco -v
'choco'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
'choco'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
배치 파일이 아닙니다.
14번째 줄: 14번째 줄:
</source>
</source>
<source lang='console'>
<source lang='console'>
C:\windows\system32>@"%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"
C:\Windows\system32>@"%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"
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.8.
 
Extracting C:\Users\JMNOTE\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\JMNOTE\AppData\Local\Temp\chocolatey\chocInstall...
Mode                LastWriteTime    Length Name
----                -------------    ------ ----
d----      2017-10-20  오전 10:50            chocInstall
Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.8
.
Downloading 7-Zip commandline tool prior to extraction.
Extracting C:\Users\user2\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
zip to C:\Users\user2\AppData\Local\Temp\chocolatey\chocInstall...
Installing chocolatey on this machine
Installing chocolatey on this machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
27번째 줄: 35번째 줄:
   (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
   (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
   and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
   and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.


Creating Chocolatey folders if they do not already exist.
Creating Chocolatey folders if they do not already exist.
37번째 줄: 46번째 줄:
chocolatey.nupkg file not installed in lib.
chocolatey.nupkg file not installed in lib.
  Attempting to locate it from bootstrapper.
  Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
경고: Not setting tab completion: Profile file does not exist at 'D:\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
ing...
경고: Not setting tab completion: Profile file does not exist at
'C:\Users\user2\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
You can call choco from anywhere, command line or powershell by typing choco.
51번째 줄: 62번째 줄:
* CMD 창 닫고 다시 열기
* CMD 창 닫고 다시 열기
<source lang='doscon'>
<source lang='doscon'>
C:\Users\jmnote>choco -v
C:\Windows\system32>choco -v
0.10.8
0.10.8
</source>
</source>

2017년 10월 20일 (금) 10:51 판

Chocolatey 설치

1 확인

C:\Windows\system32>choco -v
'choco'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.

2 설치

@"%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"
C:\Windows\system32>@"%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"

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----      2017-10-20  오전 10:50            chocInstall
Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.8
.
Downloading 7-Zip commandline tool prior to extraction.
Extracting C:\Users\user2\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
zip to C:\Users\user2\AppData\Local\Temp\chocolatey\chocInstall...
Installing chocolatey on this machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
  Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
  before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
  (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
  and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName
'.

Creating Chocolatey folders if they do not already exist.

WARNING: You can safely ignore errors related to missing log files when
  upgrading from a version of Chocolatey less than 0.9.9.
  'Batch file could not be found' is also safe to ignore.
  'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
 Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
ing...
경고: Not setting tab completion: Profile file does not exist at
'C:\Users\user2\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
 first prior to using choco.
Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder

3 확인 2

  • CMD 창 닫고 다시 열기
C:\Windows\system32>choco -v
0.10.8

4 같이 보기

5 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}