winget使用介绍 scoop使用介绍 wsl使用介绍
- 2025-01-15 23:26:00
- admin
- 原创 415
一、winget使用介绍
1、winget使用指引:https://learn.microsoft.com/zh-cn/windows/package-manager/winget
2、查看帮助:winget --help
3、查看配置:winget --info
4、管理下载源:winget source <subcommand> <options>
管理软件:
1、查找软件:winget search [[-q] <query>] [<options>]
2、查看软件:winget show [[-q] <query>] [<options>]
3、下载软件:winget download [[-q] <query>] [<options>]
4、安装软件:winget install [[-q] <query> ...] [<options>]
5、卸载软件:winget uninstall [[-q] <query>] [<options>]
6、升级软件:winget upgrade [[-q] <query> ...] [<options>]
7、查看已安装软件:winget list [[-q] <query>] [<options>]
二、scoop使用介绍
1、官方文档:https://scoop.sh
2、查找app:https://scoop.sh/#/apps
3、查找bucket:https://scoop.sh/#/buckets
4、安装帮助:https://github.com/ScoopInstaller/Install
5、入门帮助:https://github.com/ScoopInstaller/Scoop#readme
6、详细帮助:https://github.com/ScoopInstaller/Scoop/wiki
7、命令列表:https://github.com/ScoopInstaller/Scoop/wiki/Commands
简单安装:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
自定义安装:
irm https://get.scoop.sh -outfile install.ps1
get-help .\install.ps1 -detailed
.\install.ps1 -ScoopDir D:\scoop -Proxy http://<ip:port>
scoop config proxy http://<ip:port>
scoop bucket add extras
scoop bucket add java
scoop bucket add versions
aria2高速下载:
1、代码仓库:https://github.com/aria2/aria2
2、帮助文档:https://aria2.github.io/manual/en/html
3、支持协议:HTTP、HTTPS、FTP、SFTP、BitTorrent、Metalink
4、参数说明:-x单个服务器的最大连接数量,-s下载单个文件的连接数量,-k每个连接下载的最小分片;
5、参数说明:实际连接数量=min(x, s, size(file)/k),一般需要调整x和s,即可实现快速下载大文件;
6、参数说明:-j最多并行下载的文件数量,默认5个,--file-allocation空间分配策略,默认预分配;
7、参数说明:--max-download-limit单个文件限速,--max-overall-download-limit总体限速;
8、默认参数下载:aria2c -x1 -s5 -k20M http://host/file.zip
查找应用:
1、scoop update,更新本地软件清单,安装更新下载软件时自动触发;
2、scoop search coreutils,在本地软件清单搜索软件概况;
3、scoop info coreutils,在本地软件清单查看软件详情;
4、scoop home coreutils,打开应用官网;
维护应用:
1、scoop install coreutils,安装应用;
2、scoop update coreutils,更新应用;
3、scoop uninstall coreutils,卸载应用;
4、scoop reset coreutils,切换应用版本;
5、scoop list [query],查看已安装应用;
6、scoop cleanup *,清理旧版本应用;
7、scoop cache rm *,清理下载缓存;
三、wsl使用介绍
1、wsl安装指引:https://learn.microsoft.com/zh-cn/windows/wsl/install
2、wsl,Windows Subsystem for Linux,linux模拟环境,使用非常方便;
3、wsl --manage --move,迁移linux安装位置;
4、wsl --terminate,关闭linux;
5、wsl --unregister,卸载linux;
6、wsl --set-default,设置默认linux;
7、wsl --distribution,启动指定linux;
8、wsl [command],执行默认linux命令;
安装FedoraLinux:
wsl --list --online
wsl --list --verbose
wsl --install FedoraLinux-42 --location C:\mywsl\FedoraLinux-42
wsl --manage FedoraLinux-42 --move C:\mywsl\FedoraLinux-42
wsl --terminate FedoraLinux-42
wsl --unregister FedoraLinux-42
安装Ubuntu:
wsl --install Ubuntu-22.04
wsl --manage Ubuntu-22.04 --move C:\mywsl\Ubuntu-22.04
操作linux:
wsl --set-default FedoraLinux-42
wsl --distribution FedoraLinux-42
wsl [command]