每次重装电脑都要重新安装一遍软件,比较麻烦,直接借助SCOOP工具对软件重装方便许多,备份一下软件列表,顺便把scoop安装步骤也放进来。
第一步
安装条件
- PowerShell最新版本或Windows PowerShell 5.1
PowerShell执行策略必须是以下之一:Unrestricted
或执行安装程序。例如:RemoteSigned ByPass
设置执行策略:Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
第二步
普通安装
用户模式下PowerShell运行此命令以使用默认配置安装 scoop,scoop 将安装到C:\Users\<YOUR USERNAME>\scoop
irm get.scoop.sh | iex
# You can use proxies if you have network trouble in accessing GitHub, e.g.
irm get.scoop.sh -Proxy 'http://<ip:port>' | iex
高级安装
如果要高级安装,可以下载安装程序,手动带参数执行
irm get.scoop.sh -outfile 'install.ps1'
查看安装程序的所有可配置参数
.\install.ps1 -?
例如,您可以将 scoop 安装到自定义目录,配置 scoop 以将全局程序安装到自定义目录,并在安装过程中绕过系统代理。
.\install.ps1 -ScoopDir 'D:\Applications\Scoop' -ScoopGlobalDir 'F:\GlobalScoopApps' -NoProxy
管理员安装
出于安全考虑,默认情况下已禁用管理员控制台下的安装。如果您知道自己在做什么并想以管理员身份安装 Scoop。请下载安装程序并-RunAsAdmin
在提升的控制台中使用参数手动执行它。这是示例
irm get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin [-OtherParameters ...]
# I don't care about other parameters and want a one-line command
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
备份
导出命令:
scoop export > list.json
导入命令:
scoop import list.json
当前软件列表:
{
"buckets": [
{
"Name": "apps",
"Source": "https://github.com/kkzzhizhou/scoop-apps",
"Updated": "2023-11-20T12:43:56+08:00",
"Manifests": 12835
},
{
"Name": "extras",
"Source": "https://github.com/ScoopInstaller/Extras",
"Updated": "2023-11-20T18:38:16+08:00",
"Manifests": 1888
},
{
"Name": "main",
"Source": "https://github.com/ScoopInstaller/Main",
"Updated": "2023-11-20T12:27:13+08:00",
"Manifests": 1262
},
{
"Name": "nonportable",
"Source": "https://github.com/ScoopInstaller/Nonportable",
"Updated": "2023-11-20T16:33:40+08:00",
"Manifests": 127
}
],
"apps": [
{
"Name": "7zip",
"Source": "main",
"Updated": "2023-05-22T21:19:57.6906108+08:00",
"Info": "",
"Version": "23.00"
},
{
"Name": "chfs-gui",
"Source": "apps",
"Updated": "2023-05-26T11:46:28.4472814+08:00",
"Info": "",
"Version": "2.0"
},
{
"Name": "dark",
"Source": "main",
"Updated": "2023-05-26T10:53:48.4073405+08:00",
"Info": "",
"Version": "3.11.2"
},
{
"Name": "dismplusplus",
"Source": "extras",
"Updated": "2023-08-25T23:39:04.4339304+08:00",
"Info": "",
"Version": "10.1.1002.1B"
},
{
"Name": "EmEditor",
"Source": "apps",
"Updated": "2023-11-20T19:01:05.0474484+08:00",
"Info": "",
"Version": "23.0.2"
},
{
"Name": "Everything",
"Source": "apps",
"Updated": "2023-06-04T17:15:00.9090077+08:00",
"Info": "",
"Version": "1.4.1.1024"
},
{
"Name": "ffmpeg",
"Source": "main",
"Updated": "2023-05-25T22:59:23.4461405+08:00",
"Info": "",
"Version": "6.0"
},
{
"Name": "firefox",
"Source": "extras",
"Updated": "2023-05-26T11:05:15.2484802+08:00",
"Info": "",
"Version": "113.0.2"
},
{
"Name": "git",
"Source": "main",
"Updated": "2023-05-22T21:21:55.3852209+08:00",
"Info": "",
"Version": "2.40.1.windows.1"
},
{
"Name": "imageglass",
"Source": "apps",
"Updated": "2023-11-20T19:21:01.2321884+08:00",
"Info": "",
"Version": "8.10.9.27"
},
{
"Name": "localsend",
"Source": "extras",
"Updated": "2023-05-22T21:45:48.4746082+08:00",
"Info": "",
"Version": "1.9.1"
},
{
"Name": "nmap",
"Source": "main",
"Updated": "2023-05-26T18:13:00.5855617+08:00",
"Info": "",
"Version": "7.94"
},
{
"Name": "nodejs16",
"Source": "apps",
"Updated": "2023-06-25T15:11:19.8212324+08:00",
"Info": "",
"Version": "16.20.1"
},
{
"Name": "obsidian",
"Source": "extras",
"Updated": "2023-10-14T23:12:33.7771705+08:00",
"Info": "",
"Version": "1.4.16"
},
{
"Name": "oh-my-posh",
"Source": "main",
"Updated": "2023-05-28T18:21:16.4433407+08:00",
"Info": "",
"Version": "16.9.0"
},
{
"Name": "potplayer",
"Source": "apps",
"Updated": "2023-05-26T11:43:14.1932485+08:00",
"Info": "",
"Version": "230523"
},
{
"Name": "powertoys",
"Source": "apps",
"Updated": "2023-11-19T15:54:18.574286+08:00",
"Info": "",
"Version": "0.75.1"
},
{
"Name": "rclone",
"Source": "main",
"Updated": "2023-05-26T21:31:37.5235829+08:00",
"Info": "",
"Version": "1.62.2"
},
{
"Name": "rustdesk",
"Source": "extras",
"Updated": "2023-09-10T18:34:54.5578614+08:00",
"Info": "",
"Version": "1.2.2"
},
{
"Name": "tightvnc",
"Source": "apps",
"Updated": "2023-10-12T13:51:41.360123+08:00",
"Info": "",
"Version": "2.8.81"
},
{
"Name": "ventoy",
"Source": "extras",
"Updated": "2023-05-26T11:11:07.4241283+08:00",
"Info": "",
"Version": "1.0.91"
},
{
"Name": "vscode",
"Source": "extras",
"Updated": "2023-05-23T06:58:16.2852509+08:00",
"Info": "",
"Version": "1.78.2"
},
{
"Name": "wechat",
"Source": "apps",
"Updated": "2023-09-12T07:39:38.1302884+08:00",
"Info": "",
"Version": "3.9.6.33"
},
{
"Name": "wgcf",
"Source": "main",
"Updated": "2023-05-26T07:08:16.0379701+08:00",
"Info": "",
"Version": "2.2.17"
},
{
"Name": "which",
"Source": "main",
"Updated": "2023-05-26T12:51:05.2573784+08:00",
"Info": "",
"Version": "2.20"
},
{
"Name": "winfsp-np",
"Source": "nonportable",
"Updated": "2023-05-27T10:59:26.131626+08:00",
"Info": "",
"Version": "2.0.23075"
},
{
"Name": "winscp",
"Source": "apps",
"Updated": "2023-05-28T09:36:15.5319453+08:00",
"Info": "",
"Version": "6.1"
},
{
"Name": "wireguard-np",
"Source": "nonportable",
"Updated": "2023-05-26T07:07:42.536723+08:00",
"Info": "",
"Version": "0.5.3"
},
{
"Name": "wise-disk-cleaner",
"Source": "apps",
"Updated": "2023-08-22T23:26:52.6144497+08:00",
"Info": "",
"Version": "11.0.3.817"
}
]
}
本文作者为Mr.Bai,转载请注明。