Scoop
安装
$env:SCOOP='D:\scoop' # 指定安装路径, 直接在此路径下安装
[environment]::setEnvironmentVariable('SCOOP', $env:SCOOP, 'User') # 设置环境变量
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression # 安装 scoop
scoop install git sudo 7zip dark innounp
sudo Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
scoop checkup # 检查潜在问题
scoop bucket add extras
可以考虑使用 innounp-unicode
替代 innounp
, 详情请见故障排除.
常用操作
scoop search <package> # 搜索包
scoop install <package> # 安装包
scoop uninstall <package> # 删除包(包括依赖项)
scoop update * # 更新全部包
网络代理
详情请参考 Wiki.
aria2
通过下面命令安装 aria2 后, scoop 将自动使用 aria2 下载.
故障排除
innounp-unicode
WARN Purging previous failed installation of ollama.
ERROR 'ollama' isn't installed correctly.
Removing older version (0.2.3).
'ollama' was uninstalled.
Installing 'ollama' (0.2.3) [64bit] from 'main' bucket
Loading OllamaSetup.exe from cache
Checking hash of OllamaSetup.exe ... ok.
Extracting OllamaSetup.exe ... ERROR Exit code was 1!
Failed to extract files from D:\scoop\apps\ollama\0.2.3\OllamaSetup.exe.
Log file:
D:\scoop\apps\ollama\0.2.3\innounp.log
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=ollama%400.2.3%3a+decompress+error