Microsoft MVP성태의 닷넷 이야기
Windows: 193. 윈도우 패키지 관리자 - winget 설치 [링크 복사], [링크+제목 복사]
조회: 9921
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

윈도우 패키지 관리자 - winget 설치

이제는 제법 분위기가 무르익은 것 같아 ^^ 저도 설치를 해봤습니다. 설치 방법은, Windows Store에 방문해 "App Installer"를 설치하시면 됩니다.

App Installer
; https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1

"App Installer"와 winget이 정확히 어떤 관계인지는 알 수 없지만, (테스트에 따른) 짐작으로는 패키지 관리의 기본 역할을 winget.exe가 하지만 로컬에 설치하는 경우의 작업을 "App Installer"가 대행하는 것으로 보입니다. 그렇기 때문에 설치 후에 "App Installer"를 실행하려고 해도 윈도우의 시작 메뉴에서는 이를 찾아볼 수 없습니다.

어쨌든 App Installer가 설치되면, "winget.exe" 파일이 다음의 경로에 위치합니다.

%LOCALAPPDATA%\Microsoft\WindowsApps

// 이 경로는 사용자 환경 변수의 "PATH"에 등록되기 때문에 명령행(cmd.exe) 창에서 자유롭게 실행할 수 있습니다.

그런데 특정 PC에서는 "App Installer"가 설치되어 있는데도 winget.exe가 없는 경우가 있었습니다. 그럴 때는, github에 방문해,

microsoft/winget-cli
; https://github.com/microsoft/winget-cli

Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle
; https://github.com/microsoft/winget-cli/releases/download/v1.0.11451/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle

Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle 파일을 다운로드해 더블 클릭으로 설치해도 무방합니다. 그럼, 기존 설치된 "App Installer"가 업데이트되고 "%LOCALAPPDATA%\Microsoft\WindowsApps" 디렉터리에 winget.exe가 추가된 것을 확인할 수 있습니다.




"winget search" 명령을 내려 보면 제법 많은 프로그램들이 등록된 것을 확인할 수 있습니다. 아래는 그 목록 중 일부인데요,

  • 7-Zip
  • Arduino IDE
  • Bandizip
  • Honeyview
  • Blender
  • Battle.Net
  • Ubuntu
  • WinZip
  • Discord
  • Dropbox
  • EditPlus
  • Elasticsearch
  • Free Pascal Compiler
  • GeoGebra Classic
  • Git
  • Android Studio
  • Google Chrome
  • IDA Freeware
  • Cyberduck
  • GoLand
  • IntelliJ IDEA Community Edition
  • IntelliJ IDEA Education Edition
  • IntelliJ IDEA Ultimate Edition
  • Rider
  • KakaoTalk Setup
  • Kubernetes - Minikube
  • MariaDB Server
  • Azure CLI
  • Microsoft Edge
  • NuGet
  • Microsoft OpenJDK 11
  • Microsoft OpenJDK 16
  • Microsoft R Open
  • SQL Server Management Studio
  • Visual Studio Build Tools 2019
  • Visual Studio Community 2019
  • Visual Studio Enterprise 2019
  • Visual Studio Professional 2019
  • Remote Tools for Visual Studio 2019
  • Visual Studio Code
  • Windows SDK
  • Windows WDK
  • .Net Framework
  • MongoDB Server
  • NASM
  • Notepad++
  • Node.js
  • OpenVPN
  • MySQL
  • PostgreSQL
  • pgAdmin4
  • PuTTY release
  • Python
  • Python 2.7.18
  • Python 3.9.5
  • WinRAR
  • OpenSSL
  • TeamViewer
  • Snagit
  • Fiddler Everywhere
  • Unity
  • VMware Workstation
  • Steam
  • WinSCP
  • Wireshark
  • Bitvise SSH Client
  • youtube-dl-gui
  • Vim

보는 바와 같이 국내에서도 반디소프트의 제품(반디집, 꿀뷰,...)군이 등록된 것을 볼 수 있습니다. 그 외에 혹시 있을까 싶은 제품을 찾고 싶다면 --name 인자로 다음과 같이 검색도 해보시고! ^^

C:\temp> winget search --name post
Name       Id                    Version
----------------------------------------
Postman    Postman.Postman       8.5.1
PostgreSQL PostgreSQL.PostgreSQL 13.3.2
Postbox    Postbox.Postbox       7.0.46




해당 제품들을 설치하려고 하면 이때 "App Installer"가 개입을 합니다. 예를 들어 OpenSSL을 설치하려고 하면,

C:\temp> winget install OpenSSL
Found OpenSSL [ShiningLight.OpenSSLLight]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://slproweb.com/download/Win64OpenSSL_Light-1_1_1k.msi
  ██████████████████████████████  3.75 MB / 3.75 MB
Successfully verified installer hash
Starting package install...
Successfully installed

위의 메시지 중 "Downloading ..." 단계에서 대상 패키지의 msi를 "%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\WinGet\" 디렉터리에 다운로드해 설치를 위해 msi를 실행하기 전 다음과 같은 창이 하나 뜹니다.

winget_install_1.png

"Yes" 버튼을 누르면, 이후의 과정은 일반적인 msi 설치 작업에 따라 진행이 됩니다. 가령, OpenSSL의 경우 "C:\Program Files\OpenSSL-Win64" 디렉터리에 설치가 되었습니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 6/13/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13584정성태3/26/20241273개발 환경 구성: 708. Unity3D - C# Windows Forms / WPF Application에 통합하는 방법파일 다운로드1
13583정성태3/25/20241489Windows: 261. CPU Utilization이 100% 넘는 경우를 성능 카운터로 확인하는 방법
13582정성태3/19/20241575Windows: 260. CPU 사용률을 나타내는 2가지 수치 - 사용량(Usage)과 활용률(Utilization)파일 다운로드1
13581정성태3/18/20241754개발 환경 구성: 707. 빌드한 Unity3D 프로그램을 C++ Windows Application에 통합하는 방법
13580정성태3/15/20241291닷넷: 2231. C# - ReceiveTimeout, SendTimeout이 적용되지 않는 Socket await 비동기 호출파일 다운로드1
13579정성태3/13/20241498오류 유형: 899. HTTP Error 500.32 - ANCM Failed to Load dll
13578정성태3/11/20241643닷넷: 2230. C# - 덮어쓰기 가능한 환형 큐 (Circular queue)파일 다운로드1
13577정성태3/9/20241907닷넷: 2229. C# - 닷넷을 위한 난독화 도구 소개 (예: ConfuserEx)
13576정성태3/8/20241547닷넷: 2228. .NET Profiler - IMetaDataEmit2::DefineMethodSpec 사용법
13575정성태3/7/20241696닷넷: 2227. 최신 C# 문법을 .NET Framework 프로젝트에 쓸 수 있을까요?
13574정성태3/6/20241566닷넷: 2226. C# - "Docker Desktop for Windows" Container 환경에서의 IPv6 DualMode 소켓
13573정성태3/5/20241574닷넷: 2225. Windbg - dumasync로 분석하는 async/await 호출
13572정성태3/4/20241660닷넷: 2224. C# - WPF의 Dispatcher Queue로 알아보는 await 호출의 hang 현상파일 다운로드1
13571정성태3/1/20241636닷넷: 2223. C# - await 호출과 WPF의 Dispatcher Queue 동작 확인파일 다운로드1
13570정성태2/29/20241643닷넷: 2222. C# - WPF의 Dispatcher Queue 동작 확인파일 다운로드1
13569정성태2/28/20241550닷넷: 2221. C# - LoadContext, LoadFromContext 그리고 GAC파일 다운로드1
13568정성태2/27/20241615닷넷: 2220. C# - .NET Framework 프로세스의 LoaderOptimization 설정을 확인하는 방법파일 다운로드1
13567정성태2/27/20241623오류 유형: 898. .NET Framework 3.5 이하에서 mscoree.tlb 참조 시 System.BadImageFormatException파일 다운로드1
13566정성태2/27/20241635오류 유형: 897. Windows 7 SDK 설치 시 ".NET Development" 옵션이 비활성으로 선택이 안 되는 경우
13565정성태2/23/20241620닷넷: 2219. .NET CLR2 보안 모델에서의 개별 System.Security.Permissions 제어
13564정성태2/22/20241905Windows: 259. Hyper-V Generation 1 유형의 VM을 Generation 2 유형으로 바꾸는 방법
13563정성태2/21/20241945디버깅 기술: 196. windbg - async/await 비동기인 경우 메모리 덤프 분석의 어려움
13562정성태2/21/20241956오류 유형: 896. ASP.NET - .NET Framework 기본 예제에서 System.Web에 대한 System.IO.FileNotFoundException 예외 발생
13561정성태2/20/20242030닷넷: 2218. C# - (예를 들어, Socket) 비동기 I/O에 대한 await 호출 시 CancellationToken을 이용한 취소파일 다운로드1
13560정성태2/19/20242048디버깅 기술: 195. windbg 분석 사례 - Semaphore 잠금으로 인한 Hang 현상 (닷넷)
13559정성태2/19/20242931오류 유형: 895. ASP.NET - System.Security.SecurityException: 'Requested registry access is not allowed.'
1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...