Scoop如何更新所有的apps

问题描述

使用scoop过程中,每次都会提示有多个apps需要更新。

Updates are available for:
    git: 2.28.0.windows.1 -> 2.29.1.windows.1
    cmake: 3.18.2 -> 3.18.4
    curl: 7.72.0_4 -> 7.73.0_1
    diffutils: 3.5 -> 3.7
    everything: 1.4.1.988 -> 1.4.1.992
    ffmpeg: 4.3.1 -> 4.3.1-20
    gcc: 9.3.0-1 -> 9.3.0-2
    git: 2.28.0.windows.1 -> 2.29.1.windows.1
    googlechrome: 85.0.4183.83 -> 86.0.4240.111
    lessmsi: 1.6.91 -> 1.7.0
    llvm: 10.0.0 -> 11.0.0
    nodejs: 14.9.0 -> 15.0.1
    pandoc: 2.10.1 -> 2.11.0.4
    python: 3.8.5 -> 3.9.0
    telegram: 2.3.0 -> 2.4.4
    typora: 0.9.93 -> 0.9.96
    vscode: 1.48.2 -> 1.50.1
    youtube-dl: 2020.07.28 -> 2020.09.20

然后,scoop的help选项中,似乎只能单独更新某一个应用。比如,更新ffmpeg:

scoop update ffmpeg

全部的选项则如下:

Some useful commands are:

alias       Manage scoop aliases
bucket      Manage Scoop buckets
cache       Show or clear the download cache
checkup     Check for potential problems
cleanup     Cleanup apps by removing old versions
config      Get or set configuration values
create      Create a custom app manifest
depends     List dependencies for an app
export      Exports (an importable) list of installed apps
help        Show help for a command
hold        Hold an app to disable updates
home        Opens the app homepage
info        Display information about an app
install     Install apps
list        List installed apps
prefix      Returns the path to the specified app
reset       Reset an app to resolve conflicts
search      Search available apps
status      Show status and check for new app versions
unhold      Unhold an app to enable updates
uninstall   Uninstall an app
update      Update apps, or Scoop itself
virustotal  Look for app's hash on virustotal.com
which       Locate a shim/executable (similar to 'which' on Linux)

解决方案

方法其实很简单,就是使用通配符。比如:

PS C:Usersgaoweiscoopappsscoopcurrent> scoop update *
cmake: 3.18.2 -> 3.18.4
curl: 7.72.0_4 -> 7.73.0_1
diffutils: 3.5 -> 3.7
everything: 1.4.1.988 -> 1.4.1.992
ffmpeg: 4.3.1 -> 4.3.1-20
gcc: 9.3.0-1 -> 9.3.0-2
git: 2.28.0.windows.1 -> 2.29.1.windows.1
googlechrome: 85.0.4183.83 -> 86.0.4240.111
lessmsi: 1.6.91 -> 1.7.0
llvm: 10.0.0 -> 11.0.0
nodejs: 14.9.0 -> 15.0.1
pandoc: 2.10.1 -> 2.11.0.4
python: 3.8.5 -> 3.9.0
telegram: 2.3.0 -> 2.4.4
typora: 0.9.93 -> 0.9.96
vscode: 1.48.2 -> 1.50.1
youtube-dl: 2020.07.28 -> 2020.09.20
Updating 17 outdated apps:
Updating 'cmake' (3.18.2 -> 3.18.4)
Downloading new version
cmake-3.18.4-win64-x64.zip (33.5 MB) [===========>                                          ]  22%

以上则提示,scoop合计有17个程序需要更新,所有的应用选项如下:

Usage: scoop update  [options]

'scoop update' updates Scoop to the latest version.
'scoop update ' installs a new version of that app, if there is one.

You can use '*' in place of  to update all apps.

Options:
  -f, --force               Force update even when there isn't a newer version
  -g, --global              Update a globally installed app
  -i, --independent         Don't install dependencies automatically
  -k, --no-cache            Don't use the download cache
  -s, --skip                Skip hash validation (use with caution!)
  -q, --quiet               Hide extraneous messages

以上

展开阅读全文

页面更新:2024-05-16

标签:都会   通配符   选项   解决方案   提示   程序   方法   科技

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top