{"id":1437,"date":"2022-02-07T13:05:51","date_gmt":"2022-02-07T12:05:51","guid":{"rendered":"https:\/\/abchaus.synology.me\/wordpress\/?p=1437"},"modified":"2022-03-10T20:46:10","modified_gmt":"2022-03-10T19:46:10","slug":"winget-auf-server-2021","status":"publish","type":"post","link":"https:\/\/abchaus.synology.me\/wordpress\/blog\/2022\/02\/07\/winget-auf-server-2021\/","title":{"rendered":"winget auf Server 2022"},"content":{"rendered":"<p>Da den Serverplattformen der store fehlt und damit auch die Appx Umgebung, kann man winget nicht so ganz einfach installieren. Es w\u00e4re aber besonders f\u00fcr Server praktisch. Daher bin ich die aktuellen Anleitungen durchgegangen und kam zu folgendem (erfolgreichen Rezept):<\/p>\n<ol>\n<li>Installiere Powershell 7.x: Aktuell <a title=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\/download\/v7.2.1\/PowerShell-7.2.1-win-x64.msi\" href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\/download\/v7.2.1\/PowerShell-7.2.1-win-x64.msi\">https:\/\/github.com\/PowerShell\/PowerShell\/releases\/download\/v7.2.1\/PowerShell-7.2.1-win-x64.msi<\/a> <\/li>\n<li>Lade die aktuelle Version von winget und das zugeh\u00f6rige Lizenzfile herunter: <a title=\"https:\/\/github.com\/microsoft\/winget-cli\/releases\" href=\"https:\/\/github.com\/microsoft\/winget-cli\/releases\">https:\/\/github.com\/microsoft\/winget-cli\/releases<\/a>       <br \/><a href=\"https:\/\/abchaus.synology.me\/wordpress\/wp-content\/uploads\/2022\/02\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/abchaus.synology.me\/wordpress\/wp-content\/uploads\/2022\/02\/image_thumb.png\" width=\"1028\" height=\"236\" \/><\/a> <\/li>\n<li>Lade die aktuelle Version der VCLibs als appx Package herunter: <a title=\"https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx\" href=\"https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx\">https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx<\/a> <\/li>\n<li>Lade die aktuelle Version der Microsoft.UI.XAML herunter. Dazu auf Nuget gehen <a title=\"https:\/\/www.nuget.org\/packages\/Microsoft.UI.Xaml\/\" href=\"https:\/\/www.nuget.org\/packages\/Microsoft.UI.Xaml\/\">https:\/\/www.nuget.org\/packages\/Microsoft.UI.Xaml\/<\/a> dort auf Open in NuGet Explorer, und auf den Inhalt doppelt klicken (l\u00e4dt herunter):       <br \/><a href=\"https:\/\/abchaus.synology.me\/wordpress\/wp-content\/uploads\/2022\/02\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/abchaus.synology.me\/wordpress\/wp-content\/uploads\/2022\/02\/image_thumb-1.png\" width=\"1028\" height=\"501\" \/><\/a> <\/li>\n<li>In der administrativen Windows Powershell nun folgende Zeilen tippen (ich gehe davon aus, da\u00df die ganzen Downloads im gleichen Verzeichnis liegen):      <br \/><code>add-appxpackage <em>NameDerVCLibs.appx<\/em>         <br \/>add-appxpackage <em>NameDerUI.XAML.appx<\/em>         <br \/>Add-AppxProvisionedPackage -Online -PackagePath .\\<em>NameDesWingetPackages.msixbundle<\/em> -LicensePath .\\<em>NameDerLizenzDatei.xml<\/em> \u2013Verbose<\/code> <\/li>\n<li>Dann winget in einem Powershell 7 Fenster \u00f6ffnen (auf der Windows Powershell hatte ich seltsame Anzeigen unter Server 2021) <\/li>\n<\/ol>\n<p>Damit kann man sich die nun auch beliebten anderen Tools wie Windows Terminal dann mit winget holen. Das Windows Terminal z.B. mit    <\/p>\n<pre>winget install --id=Microsoft.WindowsTerminal -e<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Da den Serverplattformen der store fehlt und damit auch die Appx Umgebung, kann man winget nicht so ganz einfach installieren.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1437","post","type-post","status-publish","format-standard","hentry","category-windows-server"],"_links":{"self":[{"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=1437"}],"version-history":[{"count":3,"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1443,"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/1437\/revisions\/1443"}],"wp:attachment":[{"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abchaus.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}