[Windows] Chocolatey upgrade

Chochlatey upgrade 

절차는 아주 간단하다.

Windows Terminal (혹은 Command LIne)에서, 아래와 같이 싫행하면 된다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
C:\Users\***>choco upgrade chocolatey -y4
Chocolatey v1.2.1
Upgrading the following packages:
chocolatey
By upgrading, you accept licenses for the packages.
 
You have chocolatey v1.2.1 installed. Version 1.4.0 is available based on your source(s).
Progress: Downloading chocolatey 1.4.0... 100%
 
chocolatey v1.4.0
chocolatey package files upgrade completed. Performing other installation steps.
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.
WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\***\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.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The upgrade of chocolatey was successful.
  Software install location not explicitly set, it could be in package or
  default install location of installer.
Chocolatey upgraded 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
cs

주의! 간혹, 관리자 권한을 요구하는데, 그때는 Windows Terminal 혹은 Command Line(cmd.exe)를 관리자 권한으로 실행하고 다시 수행하면 된다.
또한, 드물께, choco.exe.old를 생성하는 문제가 있는데, 이때는, choco가 설치된 곳(보통 "C:\ProgramData\chocolatey") 에서 *.old, "bin"이하의 *.old 파일을 모두 제거해주면 된다.

댓글

이 블로그의 인기 게시물

Next.js에서 자연스러운 Page Transition 방법

[flutter] Android - Package간 sdk version 등이 맞지 않아 오류가 발생하는 경우