Windows11/winget:修订间差异

来自OSSmedia
无编辑摘要
 
(未显示同一用户的9个中间版本)
第17行: 第17行:


== 常用软件包 ==
== 常用软件包 ==
excute this if you need to install for all users
<pre>
function gget {
    param (
        [string]$packageName
    )
   
    # Define the base command with automatic agreement acceptance
    $baseCommand = "winget install --scope machine --accept-package-agreements --accept-source-agreements"


    # Combine the command and package name
    $fullCommand = "$baseCommand $packageName"
    # Execute the command
    Invoke-Expression $fullCommand
}
</pre>
excute this if you need to install for current user
<pre>
function uget {
    param (
        [string]$packageName
    )
   
    # Define the base command with automatic agreement acceptance
    $baseCommand = "winget install --accept-package-agreements --accept-source-agreements"
    # Combine the command and package name
    $fullCommand = "$baseCommand $packageName"
    # Execute the command
    Invoke-Expression $fullCommand
}</pre>
==== basic ====
==== basic ====
  winget install "Microsoft Powertoy"
  uget "Microsoft Powertoy"
  winget install clash-verge-rev
  gget clash-verge-rev
  winget install kde.kdeconnect
  gget kde.kdeconnect
  winget install google.chrome
  gget google.chrome
  winget install firefox
  gget firefox
  winget install 7zip.7zip
  gget 7zip.7zip
  winget install rustdesk
  gget rustdesk
  winget install TheDocumentFoundation.LibreOffice
  gget TheDocumentFoundation.LibreOffice
  winget install nextcloud.nextclouddesktop
  gget nextcloud.nextclouddesktop
uget squirreldisk.SquirrelDisk
==== dev ====
==== dev ====
  winget install vscode
  gget vscode
  winget install git.git
  gget git.git
  winget install gnu.nano
  gget gnu.nano
  winget install winscp.winscp
  gget winscp.winscp
  winget install msys2.msys2
  uget msys2.msys2
  winget install python.python.3.12
  gget python.python.3.12
  winget install nmap
  uget nmap
   
  gget google.andridstudio
gget genymobile.scrcpy
gget google.platformtools
 
==== nvidia ====
==== nvidia ====
  winget install nvidia.cuda
  gget nvidia.cuda


==== crystalDiskInfo ====
==== crystalDiskInfo ====
  winget install CrystalDewWorld.CrystalDiskInfo
  gget CrystalDewWorld.CrystalDiskInfo
  winget install CrystalDewWorld.CrystalDiskInfo.AoiEdition
  gget CrystalDewWorld.CrystalDiskInfo.AoiEdition
  winget install CrystalDewWorld.CrystalDiskInfo.KureiKeiEdition
  gget CrystalDewWorld.CrystalDiskInfo.KureiKeiEdition
  winget install CrystalDewWorld.CrystalDiskInfo.ShizukuEdition
  gget CrystalDewWorld.CrystalDiskInfo.ShizukuEdition
  winget install CrystalDewWorld.CrystalDiskMark
  gget CrystalDewWorld.CrystalDiskMark
  winget install CrystalDewWorld.CrystalDiskMark.ShizukuEdition
  gget CrystalDewWorld.CrystalDiskMark.ShizukuEdition




第68行: 第104行:
=== software development ===
=== software development ===
==== editors ====
==== editors ====
  Microsoft.VisualStudioCode
  gget Microsoft.VisualStudioCode
  GNU.nano
  gget GNU.nano
  GNU.Emacs
  gget GNU.Emacs
  GNU.Octave
  gget GNU.Octave


==== compile env ====
==== compile env ====
  MSYS2.MSYS2
  uget MSYS2.MSYS2
  Git.Git
  gget Git.Git
  Kitware.CMake
  gget Kitware.CMake
   
   
=== multimedia ===
=== multimedia ===
  BlenderFoundation.Blender  
  gget BlenderFoundation.Blender
  KDE.Kdenlive
  gget KDE.Kdenlive
  KDE.Krita
  gget KDE.Krita
  GIMP.GIMP
  gget GIMP.GIMP
  Gyan.FFmpeg
  gget Gyan.FFmpeg

2024年12月28日 (六) 09:59的最新版本

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 with automatic agreement acceptance
    $baseCommand = "winget install --scope machine --accept-package-agreements --accept-source-agreements"

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

    # Execute the command
    Invoke-Expression $fullCommand
}

excute this if you need to install for current user

function uget {
    param (
        [string]$packageName
    )
    
    # Define the base command with automatic agreement acceptance
    $baseCommand = "winget install --accept-package-agreements --accept-source-agreements"

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

    # Execute the command
    Invoke-Expression $fullCommand
}

basic

uget "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
uget squirreldisk.SquirrelDisk

dev

gget vscode
gget git.git
gget gnu.nano
gget winscp.winscp
uget msys2.msys2
gget python.python.3.12
uget 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

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

compile env

uget MSYS2.MSYS2
gget Git.Git
gget Kitware.CMake

multimedia

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