Windows11/winget:修订间差异

来自OSSmedia
无编辑摘要
无编辑摘要
第18行: 第18行:
== 常用软件包 ==
== 常用软件包 ==
excute this if you need to install for all users
excute this if you need to install for all users
$sp = "winget install --scope machine"
<pre>
$sp = "winget install "
function gget {
    param (
        [string]$packageName
    )
   
    # Define the base command
    $baseCommand = "winget install --scope machine"
 
    # Combine the command and package name
    $fullCommand = "$baseCommand $packageName"
 
    # Execute the command
    Invoke-Expression $fullCommand
}
</pre>
==== basic ====
==== basic ====
  '$sp' "Microsoft Powertoy"
  gget "Microsoft Powertoy"
  '$sp' clash-verge-rev
  gget clash-verge-rev
  '$sp' kde.kdeconnect
  gget kde.kdeconnect
  '$sp' google.chrome
  gget google.chrome
  '$sp' firefox
  gget firefox
  '$sp' 7zip.7zip
  gget 7zip.7zip
  '$sp' rustdesk
  gget rustdesk
  '$sp' TheDocumentFoundation.LibreOffice
  gget TheDocumentFoundation.LibreOffice
  '$sp' nextcloud.nextclouddesktop
  gget nextcloud.nextclouddesktop
==== dev ====
==== dev ====
  '$sp' vscode
  gget vscode
  '$sp' git.git
  gget git.git
  '$sp' gnu.nano
  gget gnu.nano
  '$sp' winscp.winscp
  gget winscp.winscp
  '$sp' msys2.msys2
  gget msys2.msys2
  '$sp' python.python.3.12
  gget python.python.3.12
  '$sp' nmap
  gget nmap
  '$sp' google.andridstudio
  gget google.andridstudio
  '$sp' genymobile.scrcpy
  gget genymobile.scrcpy
  '$sp' google.platformtools
  gget google.platformtools
   
   
==== nvidia ====
==== nvidia ====
  '$sp' nvidia.cuda
  gget nvidia.cuda


==== crystalDiskInfo ====
==== crystalDiskInfo ====
  '$sp' CrystalDewWorld.CrystalDiskInfo
  gget CrystalDewWorld.CrystalDiskInfo
  '$sp' CrystalDewWorld.CrystalDiskInfo.AoiEdition
  gget CrystalDewWorld.CrystalDiskInfo.AoiEdition
  '$sp' CrystalDewWorld.CrystalDiskInfo.KureiKeiEdition
  gget CrystalDewWorld.CrystalDiskInfo.KureiKeiEdition
  '$sp' CrystalDewWorld.CrystalDiskInfo.ShizukuEdition
  gget CrystalDewWorld.CrystalDiskInfo.ShizukuEdition
  '$sp' CrystalDewWorld.CrystalDiskMark
  gget CrystalDewWorld.CrystalDiskMark
  '$sp' CrystalDewWorld.CrystalDiskMark.ShizukuEdition
  gget CrystalDewWorld.CrystalDiskMark.ShizukuEdition





2024年12月28日 (六) 00:29的版本

winget 是windows上的包管理器(

安装

  • 可以通过微软商店安装
https://www.microsoft.com/p/app-installer/9nblggh4nns1#activetab=pivot:overviewtab
  • 也可以通过powershell命令行安装
$progressPreference = 'silentlyContinue'
Write-Information "Downloading WinGet and its dependencies..."
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile 
Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle

常用软件包

excute this if you need to install for all users

function gget {
    param (
        [string]$packageName
    )
    
    # Define the base command
    $baseCommand = "winget install --scope machine"

    # Combine the command and package name
    $fullCommand = "$baseCommand $packageName"

    # Execute the command
    Invoke-Expression $fullCommand
}

basic

gget "Microsoft Powertoy"
gget clash-verge-rev
gget kde.kdeconnect
gget google.chrome
gget firefox
gget 7zip.7zip
gget rustdesk
gget TheDocumentFoundation.LibreOffice
gget nextcloud.nextclouddesktop

dev

gget vscode
gget git.git
gget gnu.nano
gget winscp.winscp
gget msys2.msys2
gget python.python.3.12
gget nmap
gget google.andridstudio
gget genymobile.scrcpy
gget google.platformtools

nvidia

gget nvidia.cuda

crystalDiskInfo

gget CrystalDewWorld.CrystalDiskInfo
gget CrystalDewWorld.CrystalDiskInfo.AoiEdition
gget CrystalDewWorld.CrystalDiskInfo.KureiKeiEdition
gget CrystalDewWorld.CrystalDiskInfo.ShizukuEdition
gget CrystalDewWorld.CrystalDiskMark
gget CrystalDewWorld.CrystalDiskMark.ShizukuEdition


分类

文件工具

7zip.7zip
Iterate.Cyberduck 
WinSCP.WinSCP
PuTTY.PuTTY
KDE.KDEConnect

用户体验相关

Microsoft.PowerToys
SomePythonThings.WingetUIStore 

remote management

RustDesk.RustDesk

office

TheDocumentFoundation.LibreOffice

software development

editors

Microsoft.VisualStudioCode
GNU.nano
GNU.Emacs
GNU.Octave

compile env

MSYS2.MSYS2
Git.Git
Kitware.CMake

multimedia

BlenderFoundation.Blender 
KDE.Kdenlive
KDE.Krita
GIMP.GIMP
Gyan.FFmpeg