{"componentChunkName":"component---src-templates-post-template-js","path":"/windows-winget-setup-en","result":{"data":{"markdownRemark":{"id":"3dbeb67c-3a70-582a-bf4f-eb1d59a63645","html":"<blockquote>\n<p>This page has been machine-translated from the <a href=\"/windows-winget-setup\">original page</a>.</p>\n</blockquote>\n<p>This time, I will use Windows Package Manager, whose major version was just recently released, to install the applications I normally use.</p>\n<p>This article covers the following:</p>\n<ol>\n<li>How to use Windows Package Manager</li>\n<li>A list of Windows Package Manager commands</li>\n<li>Installing frequently used applications with Windows Package Manager</li>\n<li>Errors that occur when using Windows Package Manager</li>\n</ol>\n<p>Basically, I will refer to the following official documentation and official blog post.</p>\n<ul>\n<li><a href=\"https://docs.microsoft.com/en-us/windows/package-manager/winget/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Use the winget tool to install and manage applications | Microsoft Docs</a></li>\n<li><a href=\"https://devblogs.microsoft.com/commandline/windows-package-manager-1-0/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Windows Package Manager 1.0 | Windows Command Line</a></li>\n</ul>\n<!-- omit in toc -->\n<h2 id=\"table-of-contents\" style=\"position:relative;\"><a href=\"#table-of-contents\" aria-label=\"table of contents permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Table of Contents</h2>\n<ul>\n<li><a href=\"#enable-windows-package-manager\">Enable Windows Package Manager</a></li>\n<li><a href=\"#winget-commands\">winget Commands</a></li>\n<li>\n<p><a href=\"#install-applications\">Install Applications</a></p>\n<ul>\n<li><a href=\"#web-browsers\">Web Browsers</a></li>\n<li><a href=\"#development-tools\">Development Tools</a></li>\n<li><a href=\"#communication-tools\">Communication Tools</a></li>\n<li><a href=\"#others\">Others</a></li>\n<li><a href=\"#installation-script\">Installation Script</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#troubles-when-installing-applications-with-winget\">Troubles When Installing Applications with winget</a></p>\n<ul>\n<li><a href=\"#hash-mismatch\">Hash Mismatch</a></li>\n<li><a href=\"#version-mismatch-with-the-microsoft-store-version\">Version Mismatch with the Microsoft Store Version</a></li>\n</ul>\n</li>\n<li><a href=\"#summary\">Summary</a></li>\n</ul>\n<h2 id=\"enable-windows-package-manager\" style=\"position:relative;\"><a href=\"#enable-windows-package-manager\" aria-label=\"enable windows package manager permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Enable Windows Package Manager</h2>\n<p>Download [Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle] from the GitHub releases page.</p>\n<ul>\n<li><a href=\"https://github.com/microsoft/winget-cli/releases\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Releases · microsoft/winget-cli · GitHub</a></li>\n</ul>\n<p>I will use the latest version available right now, v1.0.11692. (The version in the screenshot is old, though…)</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/c27c8c2d29a2a26f3eec33daa9dacdf2/0b533/image-20210624211848984.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 64.16666666666666%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAARlAAAEZQAGA43XUAAAB0UlEQVQ4y51T7W7TMBTNqyFeAn7AMyF+8gIgPqb92DQmDZa1tJpaEGIbICYi2sZuljTOp9PEjdOD7Q7UZp2GuNKR7fj65Piea+vqykNRFEizFHmeG2R5hkyv+WrO1VjMCyRJgjiOrxEhihgYC+F5UzA1P784g5WmKUpF2NQCpTokyhILUWFecJOc5xw6h3OOu4JSAsvzKL46P0GjAl6YwI8yBHGOiRfCGblGRRAERpWO5XJ5A03TmD3XncAixMXw2wXOnCl+jKa4HHtwSADGBWRLgT7cXm8QEkWo61LN5wocha6VqplKXaGlZJ1kPTYIXdeFr64k1ceyrFBLicViASnljRq1ibYSzmYz8FwbwFRRKQghZjRmKYO069qQdYW3ERJN6M98UEYRJiGEEKb4ugxapU7USjX+hdAoZDFD1VQQUtzZFm1SY8hS/bSR1y6PV3242t3eEttMuU0ppUqh7ni9Wdf13+ttRbO51h0Q8hAjNsKEjeFzH86vS1h/7v8/8aT3FPee3cejl4/x4NVDDL6fwtrb38GxfYTDwwPYJ0fo9230FDrdY5x03uNDz8bwYxefPncxGHYMvpz31bs9RXfwFvv2a7w5eIG9d7vY2X2O30x/4TFatNG7AAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/c27c8c2d29a2a26f3eec33daa9dacdf2/8ac56/image-20210624211848984.webp 240w,\n/static/c27c8c2d29a2a26f3eec33daa9dacdf2/d3be9/image-20210624211848984.webp 480w,\n/static/c27c8c2d29a2a26f3eec33daa9dacdf2/b0a15/image-20210624211848984.webp 500w\"\n              sizes=\"(max-width: 500px) 100vw, 500px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/c27c8c2d29a2a26f3eec33daa9dacdf2/8ff5a/image-20210624211848984.png 240w,\n/static/c27c8c2d29a2a26f3eec33daa9dacdf2/e85cb/image-20210624211848984.png 480w,\n/static/c27c8c2d29a2a26f3eec33daa9dacdf2/0b533/image-20210624211848984.png 500w\"\n            sizes=\"(max-width: 500px) 100vw, 500px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/c27c8c2d29a2a26f3eec33daa9dacdf2/0b533/image-20210624211848984.png\"\n            alt=\"image-20210624211848984\"\n            title=\"image-20210624211848984\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<p>If you can confirm in PowerShell that commands such as [winget.exe install —id search APPNAME] work, you are good to go.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 960px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/9bd91e802e4317d6acb50486cffe9a16/f2d92/image-20210625135253926.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 47.08333333333333%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAYAAAAywQxIAAAACXBIWXMAAAsTAAALEwEAmpwYAAABcklEQVQoz2WS127CUBBELdGLAdM7ovf6wIdRIhA/ECVBeeF/J5xFN1KUh5Gv787Mzq7tvX/c9fn5pfv9rsfjoe/vL10ub7per7rdbjqfzzocDjoej/9wOp0M7h2eFwQ5JZNJpVIpJRIJ+X7yiZTS6bTy+fzz7CscDisUChk4RyIRA7VYLKZ4PG7naDQqb7VaaTweq1KpKJfLPY18K9KkWq1qv99rNpsZ6vW6giCwejabNV2hUDDtbrfTZDKR58jL5VLtdttMQKlUUqvVsnuAYD6fq9lsmiETYFir1VQsFo0zGAzkTadTc0YMycElZILFYqFut2tC7h2HIK45vOFwKI+uGNKZPTogLJfLlgwy3Tudjo362rVvdyQEJPxjSLdGo6FMJvMrovt6vbZRScmuqLFH9s3I/X7f7tH3er2XIWTcMaDIaM5wu91qs9loNBrZB2A8ODwxY+/uIwGPqLhTcGT3CzlDUgJGc/vlSSKCoIOP7gfCBACgRNQv0QAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/9bd91e802e4317d6acb50486cffe9a16/8ac56/image-20210625135253926.webp 240w,\n/static/9bd91e802e4317d6acb50486cffe9a16/d3be9/image-20210625135253926.webp 480w,\n/static/9bd91e802e4317d6acb50486cffe9a16/e46b2/image-20210625135253926.webp 960w,\n/static/9bd91e802e4317d6acb50486cffe9a16/25665/image-20210625135253926.webp 1027w\"\n              sizes=\"(max-width: 960px) 100vw, 960px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/9bd91e802e4317d6acb50486cffe9a16/8ff5a/image-20210625135253926.png 240w,\n/static/9bd91e802e4317d6acb50486cffe9a16/e85cb/image-20210625135253926.png 480w,\n/static/9bd91e802e4317d6acb50486cffe9a16/d9199/image-20210625135253926.png 960w,\n/static/9bd91e802e4317d6acb50486cffe9a16/f2d92/image-20210625135253926.png 1027w\"\n            sizes=\"(max-width: 960px) 100vw, 960px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/9bd91e802e4317d6acb50486cffe9a16/d9199/image-20210625135253926.png\"\n            alt=\"image-20210625135253926\"\n            title=\"image-20210625135253926\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<h2 id=\"winget-commands\" style=\"position:relative;\"><a href=\"#winget-commands\" aria-label=\"winget commands permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>winget Commands</h2>\n<p>The commands currently available in winget seem to be as follows.</p>\n<table>\n<thead>\n<tr>\n<th>Command</th>\n<th>Overview</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>export</td>\n<td>Exports a list of installed packages.</td>\n</tr>\n<tr>\n<td>features</td>\n<td>Displays the status of experimental features.</td>\n</tr>\n<tr>\n<td>hash</td>\n<td>Generates the installer’s SHA256 hash.</td>\n</tr>\n<tr>\n<td>import</td>\n<td>Installs all packages from a file.</td>\n</tr>\n<tr>\n<td>install</td>\n<td>Installs the specified application.</td>\n</tr>\n<tr>\n<td>list</td>\n<td>Displays installed packages.</td>\n</tr>\n<tr>\n<td>search</td>\n<td>Searches for applications.</td>\n</tr>\n<tr>\n<td>settings</td>\n<td>Searches for applications.</td>\n</tr>\n<tr>\n<td>show</td>\n<td>Displays details of the specified application.</td>\n</tr>\n<tr>\n<td>source</td>\n<td>Adds, removes, and updates the Windows Package Manager repositories accessed by the winget tool.</td>\n</tr>\n<tr>\n<td>validate</td>\n<td>Validates manifest files submitted to the Windows Package Manager repository.</td>\n</tr>\n<tr>\n<td>uninstall</td>\n<td>Uninstalls the specified package.</td>\n</tr>\n<tr>\n<td>upgrade</td>\n<td>Upgrades the specified package.</td>\n</tr>\n</tbody>\n</table>\n<h2 id=\"install-applications\" style=\"position:relative;\"><a href=\"#install-applications\" aria-label=\"install applications permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Install Applications</h2>\n<p>So, I installed the tools I usually use with winget.</p>\n<p>The list of applications I install with winget is as follows.</p>\n<h3 id=\"web-browsers\" style=\"position:relative;\"><a href=\"#web-browsers\" aria-label=\"web browsers permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Web Browsers</h3>\n<ul>\n<li>Google Chrome</li>\n<li>Firefox</li>\n</ul>\n<h3 id=\"development-tools\" style=\"position:relative;\"><a href=\"#development-tools\" aria-label=\"development tools permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Development Tools</h3>\n<ul>\n<li>VSCode</li>\n<li>Visual Studio 2019 Community</li>\n<li>Windows Terminal</li>\n<li>Git</li>\n<li>WSL Ubuntu</li>\n<li>WSL Debian</li>\n<li>Qemu</li>\n<li>Wire Shark</li>\n<li>Typora</li>\n</ul>\n<h3 id=\"communication-tools\" style=\"position:relative;\"><a href=\"#communication-tools\" aria-label=\"communication tools permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Communication Tools</h3>\n<ul>\n<li>Slack</li>\n<li>Discord</li>\n<li>ZOOM</li>\n<li>LINE</li>\n</ul>\n<h3 id=\"others\" style=\"position:relative;\"><a href=\"#others\" aria-label=\"others permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Others</h3>\n<ul>\n<li>Spotify</li>\n<li>OBS Studio</li>\n<li>Acrobat</li>\n<li>Power Toys</li>\n</ul>\n<h3 id=\"installation-script\" style=\"position:relative;\"><a href=\"#installation-script\" aria-label=\"installation script permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Installation Script</h3>\n<p>The tools above can be installed with the following script.</p>\n<div class=\"gatsby-highlight\" data-language=\"powershell\"><pre class=\"language-powershell\"><code class=\"language-powershell\">winget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Google<span class=\"token punctuation\">.</span>Chrome\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Mozilla<span class=\"token punctuation\">.</span>Firefox\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id SlackTechnologies<span class=\"token punctuation\">.</span>Slack\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Discord<span class=\"token punctuation\">.</span>Discord\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Zoom<span class=\"token punctuation\">.</span>Zoom\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id LINE<span class=\"token punctuation\">.</span>LINE\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Canonical<span class=\"token punctuation\">.</span>Ubuntu\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Debian<span class=\"token punctuation\">.</span>Debian\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Typora<span class=\"token punctuation\">.</span>Typora\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Microsoft<span class=\"token punctuation\">.</span>VisualStudioCode\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Microsoft<span class=\"token punctuation\">.</span>VisualStudio<span class=\"token punctuation\">.</span>2019<span class=\"token punctuation\">.</span>Community\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Microsoft<span class=\"token punctuation\">.</span>WindowsTerminal\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Git<span class=\"token punctuation\">.</span>Git\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Amazon<span class=\"token punctuation\">.</span>Kindle\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Microsoft<span class=\"token punctuation\">.</span>PowerToys\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id WiresharkFoundation<span class=\"token punctuation\">.</span>Wireshark\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Adobe<span class=\"token punctuation\">.</span>AdobeAcrobatReaderDC\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id SoftwareFreedomConservancy<span class=\"token punctuation\">.</span>QEMU\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id Spotify<span class=\"token punctuation\">.</span>Spotify\nwinget<span class=\"token punctuation\">.</span>exe install <span class=\"token operator\">--</span>id OBSProject<span class=\"token punctuation\">.</span>OBSStudio</code></pre></div>\n<p>At present, unlike Linux’s <code class=\"language-text\">apt</code> command, you cannot install multiple packages together on a single line. To install them in bulk, you need to load an import file defined in JSON format using the <code class=\"language-text\">[--import-file]</code> option.</p>\n<h2 id=\"troubles-when-installing-applications-with-winget\" style=\"position:relative;\"><a href=\"#troubles-when-installing-applications-with-winget\" aria-label=\"troubles when installing applications with winget permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Troubles When Installing Applications with winget</h2>\n<h3 id=\"hash-mismatch\" style=\"position:relative;\"><a href=\"#hash-mismatch\" aria-label=\"hash mismatch permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Hash Mismatch</h3>\n<p>When installing with winget, if you do not specify a version it is treated as the latest, and during installation winget performs hash verification against the manifest file it has.</p>\n<p>It seems fairly common for inconsistencies to occur between the manifest file winget has and the actual installer.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">PS C:`Users`kash1064> winget.exe install --id Google.Chrome\n見つかりました Google Chrome [Google.Chrome]\nこのアプリケーションは所有者からライセンス供与されます。\nMicrosoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。\nDownloading https://dl.google.com/edgedl/chrome/install/GoogleChromeStandaloneEnterprise64.msi\n  ██████████████████████████████  75.2 MB / 75.2 MB\nインストーラーのハッシュが一致しません; このチェックを無効にするには、--force を使用します</code></pre></div>\n<p>After looking at the issue, it seems that, under the current specification, it is unavoidable that this error occurs in some cases.</p>\n<p>That makes it seem less stable for automation by script.</p>\n<ul>\n<li><a href=\"https://github.com/microsoft/winget-cli/issues/714\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Use of installer hashes causes frequent errors. Instead, rely on signatures in binary. · Issue #714 · microsoft/winget-cli</a></li>\n</ul>\n<h3 id=\"version-mismatch-with-the-microsoft-store-version\" style=\"position:relative;\"><a href=\"#version-mismatch-with-the-microsoft-store-version\" aria-label=\"version mismatch with the microsoft store version permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Version Mismatch with the Microsoft Store Version</h3>\n<p>If the same application is installed from the Microsoft Store, the following mismatch error may occur.</p>\n<p>Uninstalling the application installed from the Microsoft Store resolves it.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 420px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/a573b0d73f3647b747f3c7e946f24f16/d10fb/image-20210625151009513.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 39.583333333333336%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAYAAAD5nd/tAAAACXBIWXMAAAsTAAALEwEAmpwYAAABUUlEQVQoz6WQW0sCURSF5wf3E6LA9yiKDIqIyAtRvfZSEjqNDzqC5XgbS6ikvM+oNTqj49eZGYV6qmjBYu2z9uacdbYUj8eRUynSyq1QGVmWyeVyf6CKqqrk83nC4TBSuVjCw4z/Q1EUpGrtATqvOM0GH5aFaQ4YjUb0+316vT6mYQrPZDAYMBwORe+dbqft97q9Lp12UHtIJZNIj88NrNAKxm4I/aWBms2hFQrciS8U7jXq9TolrYiu16jpuq+VcoVsJks6nfbniotfeusKEppdnPYbHSNIZRiGSNij1Wrjui7M57iCc8HZLFiOVwc9cBeef6GXRnhYtsNkMsG2bV+XHI/H3/jVW854q/KQSFyLhNWKf5g6jv/6b8ncpdK0yNRaKNoTWmvK5dUN0sbmNmfnF0QiEaLRGLHYz/Tm4kL3jyLs7B+ztXfIwckpq2vrfAKcZ0HBgRKsGwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/a573b0d73f3647b747f3c7e946f24f16/8ac56/image-20210625151009513.webp 240w,\n/static/a573b0d73f3647b747f3c7e946f24f16/ce09e/image-20210625151009513.webp 420w\"\n              sizes=\"(max-width: 420px) 100vw, 420px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/a573b0d73f3647b747f3c7e946f24f16/8ff5a/image-20210625151009513.png 240w,\n/static/a573b0d73f3647b747f3c7e946f24f16/d10fb/image-20210625151009513.png 420w\"\n            sizes=\"(max-width: 420px) 100vw, 420px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/a573b0d73f3647b747f3c7e946f24f16/d10fb/image-20210625151009513.png\"\n            alt=\"image-20210625151009513\"\n            title=\"image-20210625151009513\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span>\\</p>\n<h2 id=\"summary\" style=\"position:relative;\"><a href=\"#summary\" aria-label=\"summary permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Summary</h2>\n<p>I tried installing applications with Windows Package Manager, whose major version has been released.</p>\n<p>There still seem to be many issues to work through, but being able to install the applications you want with a single copy-and-paste, without the usual “Google search → download the installer → install” steps, is extremely convenient.</p>","fields":{"slug":"/windows-winget-setup-en","tagSlugs":["/tag/windows/","/tag/winget/","/tag/notes/","/tag/備忘録/","/tag/english/"]},"frontmatter":{"date":"2021-06-27","description":"This time, I will use Windows Package Manager, whose major version was just recently released, to install the applications I normally use.","tags":["Windows","winget","Notes","備忘録","English"],"title":"Install Frequently Used Applications with Windows Package Manager (winget)","socialImage":{"publicURL":"/static/dc4d8b7f8795f3c3d3489d9957d155f2/no-image.png"}}}},"pageContext":{"slug":"/windows-winget-setup-en"}},"staticQueryHashes":["251939775","401334301","825871152"]}