{"id":7396,"date":"2021-01-26T22:49:14","date_gmt":"2021-01-26T21:49:14","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7396"},"modified":"2021-02-01T14:39:01","modified_gmt":"2021-02-01T13:39:01","slug":"windows-manage-applications-with-winget","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-manage-applications-with-winget\/","title":{"rendered":"Windows: Manage applications with winget"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7396 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7396')){$('.twoclick_social_bookmarks_post_7396').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Manage%20applications%20with%20winget\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Awinget%20is%20a%20new%20tool%20from%20microsoft%20which%20acts%20as%20a%20package%20manager%20like%20apt%2C%20zypper%20or%20yum.%0D%0A%0D%0AInstalling%20winget%20%28latest%20version%20on%2026.01.2021%20is%200.2.3162%20Preview%29%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-manage-applications-with-winget\\\/\",\"post_id\":7396,\"post_title_referrer_track\":\"Windows%3A+Manage+applications+with+winget\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>winget is a new tool from microsoft which acts as a package manager like apt, zypper or yum.<\/p>\n<p>Installing winget (latest version on 26.01.2021 is 0.2.3162 Preview)<br \/>\n<!--more--><br \/>\nDownload <a href=\"http:\/\/tlu.dl.delivery.mp.microsoft.com\/filestreamingservice\/files\/c25ff6df-4333-4b94-8bbb-e33f0ead8e27?P1=1611736241&#038;P2=402&#038;P3=2&#038;P4=Wi8JOH2KlJzG%2fQrVq9Yxpvx9D8wWuKNxXSVB6zY0qFtlfZRbkzDPnannGppYn7oxHbTkzZzxIxS38wtbsYT4pQ%3d%3d\" rel=\"noopener noreferrer\" target=\"_blank\">Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.appx<\/a>, <a href=\"http:\/\/tlu.dl.delivery.mp.microsoft.com\/filestreamingservice\/files\/0f3db454-690c-4d14-85cc-8c7c529c1594?P1=1611736361&#038;P2=402&#038;P3=2&#038;P4=Ccx%2bqiIYiuZWc5%2flOWpIlHlDirLKNjQxCv3KvlISF98uzQjuoSYXAnTqFryHe4c4fIFxaMLpoFzCsNpkoNxD9Q%3d%3d\" rel=\"noopener noreferrer\" target=\"_blank\">Microsoft.VCLibs.140.00.UWPDesktop_14.0.29231.0_x64__8wekyb3d8bbwe.appx<\/a> and the latest release of <a href=\"https:\/\/github.com\/microsoft\/winget-cli\/releases\/download\/v0.2.3162-preview\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle\" rel=\"noopener noreferrer\" target=\"_blank\">winget<\/a><\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Add-AppxPackage .\\Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.appx\r\nPS D:\\&gt; Add-AppxPackage .\\Microsoft.VCLibs.140.00.UWPDesktop_14.0.29231.0_x64__8wekyb3d8bbwe.appx\r\nPS D:\\&gt; Add-AppxPackage .\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle\r\n<\/pre>\n<p>Open a command shell (cmd.exe) or powershell<br \/>\nTo search for an application use<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget search python\r\n<\/pre>\n<p>List all versions of an application<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget search python\r\nName                        ID                             Version  \r\n------------------------------------------------------------------\r\nPython                      Python.Python                  3.9.1\r\n<\/pre>\n<p>Install a package<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget show python --versions\r\nFoundPython &#x5B;Python.Python]\r\nVersion\r\n-------\r\n3.9.1\r\n3.9.0\r\n3.8.7\r\n3.8.6\r\n<\/pre>\n<p>Install the latest version of a package<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget install python\r\n<\/pre>\n<p>Or in a specific version. <\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget install python -v 3.8.6\r\n<\/pre>\n<p>This starts the installer in foreground. If you want to perform a silent installation add the <strong>&#8211;silent<\/strong> switch<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget install python -v 3.8.6 --silent\r\n<\/pre>\n<p>In the current release the upgrade and (installed) list commands are marked as experimental. You must enable it if you want to use it<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget features\r\nFunction                State    Property\r\n-----------------------------------------------------\r\nMicrosoft Store Support disabled experimentalMSStore \r\nList Command            disabled list                \r\nUpgrade Command         disabled upgrade    \r\n<\/pre>\n<p>To enable experimental features you must create a settings.json file. Simply call <\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget settings\r\n<\/pre>\n<p>and open it with an editor of your choice(if no additional editor is installed use notepad). This creates a file<br \/>\n<code><br \/>\nC:\\Users\\%UserName%\\AppData\\Local\\Packages\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\\LocalState\\settings.json<br \/>\n<\/code><br \/>\n Possible settings can be found <a href=\"https:\/\/github.com\/microsoft\/winget-cli\/blob\/master\/doc\/Settings.md\" rel=\"noopener noreferrer\" target=\"_blank\">here<\/a>.<br \/>\nSo add<br \/>\n<code><br \/>\n   \"experimentalFeatures\": {<br \/>\n       \"experimentalCmd\": true,<br \/>\n       \"experimentalArg\": true<br \/>\n   },<br \/>\n<\/code><br \/>\nto the settings.json. Then this looks like<\/p>\n<pre>\r\n<code>\r\n{ \r\n    \"$schema\": \"https:\/\/aka.ms\/winget-settings.schema.json\",\r\n   \"experimentalFeatures\": {\r\n       \"list\": true,\r\n       \"upgrade\": true\r\n   },\r\n}\r\n<\/code>\r\n<\/pre>\n<p>and the experimental features are enabled<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget\r\n  install\r\n  show\r\n  source\r\n  search\r\n  list\r\n  upgrade\r\n  hash\r\n  validate\r\n  settings\r\n  features\r\n<\/pre>\n<p>To list all installed applications <\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; winget list\r\n<\/pre>\n<p><!--\nTo upgrade python for example. Look for the ID\n[powershell]\nPS D:\\&gt; winget list python\nName                  ID                                     Version\n-----------------------------------------------------------------------\nPython Launcher       {406A47EE-C4AE-4944-BADE-1B543A443873} 3.8.7072.0\nPython 3.8.3 (64-bit) {f7b3255c-a01a-4595-8768-ff8f6613898c} 3.8.3150.0\n[\/powershell]\nAnd try to update...\n[powershell][\/powershell]\nPS D:\\> winget upgrade \n--><br \/>\nto be continued&#8230;<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, winget is a new tool from microsoft which acts as a package manager like apt, zypper or yum. Installing winget (latest version on 26.01.2021 is 0.2.3162 Preview)<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[119,1520,1190,1245,1208,20,1519],"class_list":["post-7396","post","type-post","status-publish","format-standard","hentry","category-windows","category-windowsknowhow","tag-install","tag-list-all-versions","tag-update","tag-upgrade","tag-version","tag-windows-2","tag-winget"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7396"}],"version-history":[{"count":13,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7396\/revisions"}],"predecessor-version":[{"id":7407,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7396\/revisions\/7407"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}