๐ŸซํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ € Chocolatey ์„ค์น˜ & ์‚ฌ์šฉํ•˜๊ธฐ๐Ÿซ

wowssunwowssun
2 min read

Chocolatey?

๐Ÿ’ก
Chocolatey๋Š” Windows ์šด์˜ ์ฒด์ œ์šฉ ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ ์†”๋ฃจ์…˜

Linux์˜ APT๋‚˜ YUM๊ณผ ์œ ์‚ฌํ•œ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๋ฉฐ, ๋ช…๋ น์ค„ ์ธํ„ฐํŽ˜์ด์Šค(CLI)๋ฅผ ํ†ตํ•ด ์†Œํ”„ํŠธ์›จ์–ด ์„ค์น˜, ์—…๋ฐ์ดํŠธ, ์ œ๊ฑฐ ๋“ฑ์„ ๊ฐ„ํŽธํ•˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋‹ค.

๐Ÿซ ์ฃผ์š” ํŠน์ง• :

  1. ๊ฐ„ํŽธํ•œ ์„ค์น˜ ๋ฐ ๊ด€๋ฆฌ: ๋ช…๋ น์ค„์„ ํ†ตํ•ด ๋‹ค์–‘ํ•œ ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜, ์—…๋ฐ์ดํŠธ, ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์–ด ๊ด€๋ฆฌ๊ฐ€ ์šฉ์ดํ•˜๋‹ค.

  2. ๊ด‘๋ฒ”์œ„ํ•œ ํŒจํ‚ค์ง€ ์ง€์›: ์ˆ˜์ฒœ ๊ฐœ์˜ ํŒจํ‚ค์ง€๋ฅผ ์ง€์›ํ•˜์—ฌ, ๊ฐœ๋ฐœ ๋„๊ตฌ, ์œ ํ‹ธ๋ฆฌํ‹ฐ, ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋“ฑ ๋‹ค์–‘ํ•œ ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ์‰ฝ๊ฒŒ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค.

  3. ์ž๋™ํ™” ์ง€์›: ์Šคํฌ๋ฆฝํŠธ๋‚˜ ์ž๋™ํ™” ๋„๊ตฌ์™€์˜ ์—ฐ๋™์ด ์šฉ์ดํ•˜์—ฌ, ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ค์ •์ด๋‚˜ ๋ฐฐํฌ ๊ณผ์ •์—์„œ ์œ ์šฉํ•˜๊ฒŒ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

  4. ์ปค๋ฎค๋‹ˆํ‹ฐ ๋ฐ ๊ธฐ์—… ์ง€์›: ๋ฌด๋ฃŒ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์ปค๋ฎค๋‹ˆํ‹ฐ ์—๋””์…˜ ์™ธ์—๋„, ์ถ”๊ฐ€ ๊ธฐ๋Šฅ๊ณผ ์ง€์›์„ ์ œ๊ณตํ•˜๋Š” ๊ธฐ์—…์šฉ ์—๋””์…˜๋„ ์žˆ๋‹ค.

Chocolatey ์„ค์น˜ ์š”๊ตฌ์‚ฌํ•ญ

  • Windows

    • Supported Windows client and server Operating Systems (can run on older Operating Systems)

    • windows ๋ฒ„์ „์— ๋”ฐ๋ผ ์ง€์›๊ธฐ๊ฐ„์ด ๋‹ค๋ฅด๋‹ˆ ์œ„์˜ ๋งํฌ์— ๋“ค์–ด๊ฐ€์„œ ํ™•์ธํ•˜์ž.

    • ์„ค์ • โ†’ ์‹œ์Šคํ…œ โ†’ ์ •๋ณด โ†’ windows ์‚ฌ์–‘


  • PowerShell

    • PowerShell v2+ (minimum is v3 for install from this website due to TLS 1.2 requirement)

    • Windows PowerShell 3.0 ์ด์ƒ

    • PowerShell์—์„œ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋กœ ๋ฒ„์ „์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

    $PSVersionTable

  • .NET Framework

    • .NET Framework 4.8 (the installation will attempt to install .NET 4.8 if you do not have it installed)

    • .NET Framework 4.8 ์ด์ƒ

    • Microsoft : ์„ค์น˜๋œ .NET Framework ๋ฒ„์ „ ํ™•์ธํ•˜๋Š” ๋ฒ•

    • PowerShell์—์„œ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋กœ ๋ฒ„์ „์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. ๋งจ ๋’ค์— ์žˆ๋Š” ์ˆซ์ž๋Š” ๋ฆด๋ฆฌ์ฆˆ ์ตœ์†Œ๊ฐ’

    • ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋Š” 4.8์ด์ƒ์ธ์ง€ ๋ฌผ์–ด๋ณด๋Š” ๋ช…๋ น์–ด. ๋งž๋‹ค๋ฉด true ์•„๋‹ˆ๋ฉด false ๋ฐ˜ํ™˜.

    (Get-ItemPropertyValue -LiteralPath 'HKLM:SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full' -Name Release) -ge 394802

Chocolatey ์„ค์น˜ํ•˜๊ธฐ

  1. Power Shell์„ ๊ด€๋ฆฌ์ž ๋ชจ๋“œ๋กœ ์‹คํ–‰ํ•œ๋‹ค.

  2. ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ๋ณต์‚ฌ - ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ›„ Enter

     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>'))
    
  3. ์ง„ํ–‰์ด ์™„๋ฃŒ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆฐ ํ›„์— ์˜ค๋ฅ˜ ์—†์ด ์™„๋ฃŒ๊ฐ€ ๋˜์—ˆ๋‹ค๋ฉด ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋กœ ์„ค์น˜๊ฐ€ ์ž˜ ์™„๋ฃŒ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.

     choco
    

    ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์น˜๋œ ๋ฒ„์ „๊ณผ ์•ˆ๋‚ด ๋ฌธ๊ตฌ๊ฐ€ ์ถœ๋ ฅ๋  ๊ฒƒ์ด๋‹ค.

Chocolatey ์‚ฌ์šฉํ•˜๊ธฐ

  • ์„ค์น˜

      choco install <ํŒจํ‚ค์ง€๋ช…>
    
      # ํŠน์ • ๋ฒ„์ „ ์„ค์น˜์‹œ
      choco install <ํŒจํ‚ค์ง€๋ช…> --version <์›ํ•˜๋Š” ๋ฒ„์ „>
    
  • ์—…๊ทธ๋ ˆ์ด๋“œ

      choco upgrade <ํŒจํ‚ค์ง€๋ช…>
    
  • ์ œ๊ฑฐ

      choco uninstall <ํŒจํ‚ค์ง€๋ช…>
    
  • ๋ฒ„์ „ ํ™•์ธ

      choco -v
      choco --version
    
  • ์„ค์น˜๋œ ํŒจํ‚ค์ง€ ๋ชฉ๋ก ํ™•์ธ

      choco list
    
  • ๋” ์•Œ๊ณ  ์‹ถ๋‹ค๋ฉด?

      choco -?
    

0
Subscribe to my newsletter

Read articles from wowssun directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

wowssun
wowssun