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

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 4명의 중간 판 18개는 보이지 않습니다)
2번째 줄: 2번째 줄:


==확인==
==확인==
<source lang='cli'>
* [[관리자 권한으로 명령 프롬프트 실행]]
C:\Users\Jmnote>choco -v
<syntaxhighlight lang='doscon'>
C:\Windows\system32>choco -v
'choco'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
'choco'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
배치 파일이 아닙니다.
</source>
</syntaxhighlight>


==설치==
==설치==
<source lang='dos'>
<syntaxhighlight lang='dos'>
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
@"%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"
</source>
</syntaxhighlight>
<source lang='cli'>
<syntaxhighlight lang='console'>
C:\Users\Jmnote>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && 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"


7-Zip (A) 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
Mode                LastWriteTime    Length Name
 
----                -------------    ------ ----
Processing archive: C:\Users\Jmnote\AppData\Local\Temp\chocolatey\chocInstall\ch
d----     2017-10-20  오전 10:50            chocInstall
ocolatey.zip
Getting latest version of the Chocolatey package for download.
 
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.8
Extracting  _rels\.rels
.
Extracting  chocolatey.nuspec
Downloading 7-Zip commandline tool prior to extraction.
Extracting  tools\chocolateyInstall.ps1
Extracting C:\Users\user2\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.
Extracting  tools\chocolateysetup.psm1
zip to C:\Users\user2\AppData\Local\Temp\chocolatey\chocInstall...
Extracting  tools\init.ps1
Installing chocolatey on this machine
... (생략)
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Extracting  tools\chocolateyInstall\tools\shimgen.exe.ignore
  Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
Extracting  tools\chocolateyInstall\tools\shimgen.license.txt
WARNING: It's very likely you will need to close and reopen your shell
Extracting  package\services\metadata\core-properties\d830953f078f45f99a2e4d814d
  before you can use choco.
1b7974.psmdcp
Restricting write permissions to Administrators
Extracting  [Content_Types].xml
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
'.


Everything is Ok
Creating Chocolatey folders if they do not already exist.


Files: 76
WARNING: You can safely ignore errors related to missing log files when
Size:      4893948
Compressed: 1806765
경고: Setting ChocolateyInstall Environment Variable on USER and not SYSTEM
variables.
  This is due to either non-administrator install OR the process you are
running is not being run as an Administrator.
경고: It's very likely you will need to close and reopen your shell
  before you can use choco.
경고: User is not running elevated, cannot set user permissions.
경고: You can safely ignore errors related to missing log files when
   upgrading from a version of Chocolatey less than 0.9.9.
   upgrading from a version of Chocolatey less than 0.9.9.
   'Batch file could not be found' is also safe to ignore.
   'Batch file could not be found' is also safe to ignore.
   'The system cannot find the file specified' - also safe.
   'The system cannot find the file specified' - also safe.
경고: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
chocolatey.nupkg file not installed in lib.
  This is due to either non-administrator install OR the process you are
Attempting to locate it from bootstrapper.
running is not being run as an Administrator.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Add
ing...
ing...
</source>
경고: 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
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='cli'>
* CMD 창 닫고 다시 열기 (혹은 CMD 혹은 powershell에서 <code>refreashenv</code>를 실행하면 path를 포함한 env갱신이 됨.)
C:\Users\Jmnote>choco -v
<syntaxhighlight lang='doscon'>
0.9.9.11
C:\Windows\system32>choco -v
</source>
0.10.8
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[윈도우 wget 설치]]
* [[Chocolatey 실행타임아웃 시간 늘리기]]
*[[chocolatey 삭제]]
* [[윈도우 wget 설치]]
* [[chocolatey 삭제]]
* [[Chocolatey]]
* [https://www.lainyzine.com/ko/article/how-to-install-package-manager-chocolatey-on-windows-10/ 윈도우 패키지 매니저 Chocolatey를 설치하는 방법]


==참고 자료==
==참고==
*https://github.com/chocolatey/chocolatey/wiki/Installation
* https://chocolatey.org/install


[[분류: Choco]]
[[분류: Choco]]

2021년 9월 4일 (토) 11:00 기준 최신판

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 창 닫고 다시 열기 (혹은 CMD 혹은 powershell에서 refreashenv를 실행하면 path를 포함한 env갱신이 됨.)
C:\Windows\system32>choco -v
0.10.8

4 같이 보기[ | ]

5 참고[ | ]

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