하나를 제외한 모든 Chocolatey 패키지를 업데이트하는 방법은 무엇입니까?

하나를 제외한 모든 Chocolatey 패키지를 업데이트하는 방법은 무엇입니까?

cup all -y모두 업데이트하는 데 사용됩니다.초콜릿 같은부팅 시 패키지. 현재 최신 버전의 VirtualBox에 문제가 있습니다. 부팅 시 다른 패키지를 업데이트해야 하는 동안 이 패키지가 업데이트되는 것을 방지하고 싶습니다.

문제 해결을 시도

명령의 도움말 기능을 확인했습니다.

C:\>cup all -h
Chocolatey v0.9.9.8
Upgrade Command

Upgrades a package or a list of packages. Some may prefer to use `cup`
 as a shortcut for `choco upgrade`.

Usage

    choco upgrade <pkg|all> [<pkg2> <pkgN>] [<options/switches>]
    cup <pkg|all> [<pkg2> <pkgN>] [<options/switches>]

NOTE: `all` is a special package keyword that will allow you to upgrade
 all currently installed packages.

Examples

    choco upgrade chocolatey
    choco upgrade notepadplusplus googlechrome atom 7zip
    choco upgrade notepadplusplus googlechrome atom 7zip -dvfy
    choco upgrade git --params="/GitAndUnixToolsOnPath /NoAutoCrlf" -y
    choco upgrade nodejs.install --version 0.10.35
    choco upgrade git -s "https://somewhere/out/there"
    choco upgrade git -s "https://somewhere/protected" -u user -p pass

Options and Switches

NOTE: Options and switches apply to all items passed, so if you are
 installing multiple packages, and you use `--version=1.0.0`, it is
 going to look for and try to install version 1.0.0 of every package
 passed. So please split out multiple package calls when wanting to
 pass specific options.


 -?, --help, -h
     Prints out the help menu.

 -d, --debug
     Debug - Run in Debug Mode.

 -v, --verbose
     Verbose - See verbose messaging.

     --acceptlicense, --accept-license
     AcceptLicense - Accept license dialogs automatically.

 -y, --yes, --confirm
     Confirm all prompts - Chooses affirmative answer instead of prompting.
       Implies --accept-license

 -f, --force
     Force - force the behavior

     --noop, --whatif, --what-if
     NoOp - Don't actually do anything.

 -r, --limitoutput, --limit-output
     LimitOutput - Limit the output to essential information

     --execution-timeout=VALUE
     CommandExecutionTimeoutSeconds - Override the default execution timeout
       in the configuration of 2700 seconds.

 -c, --cache, --cachelocation, --cache-location=VALUE
     CacheLocation - Location for download cache, defaults to %TEMP% or value
       in chocolatey.config file.

     --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build
     AllowUnofficialBuild - When not using the official build you must set
       this flag for choco to continue.

 -s, --source=VALUE
     Source - The source to find the package(s) to install. Special sources
       include: ruby, webpi, cygwin, windowsfeatures, and python. Defaults to
       default feeds.

     --version=VALUE
     Version - A specific version to install. Defaults to unspecified.

     --pre, --prerelease
     Prerelease - Include Prereleases? Defaults to false.

     --x86, --forcex86
     ForceX86 - Force x86 (32bit) installation on 64 bit systems. Defaults to
       false.

     --ia, --installargs, --installarguments, --install-arguments=VALUE
     InstallArguments - Install Arguments to pass to the native installer in
       the package. Defaults to unspecified.

 -o, --override, --overrideargs, --overridearguments, --override-arguments
     OverrideArguments - Should install arguments be used exclusively without
       appending to current package passed arguments? Defaults to false.

     --notsilent, --not-silent
     NotSilent - Do not install this silently. Defaults to false.

     --params, --parameters, --pkgparameters, --packageparameters, --package-parameters=VALUE
     PackageParameters - Parameters to pass to the package. Defaults to
       unspecified.

 -m, --sxs, --sidebyside, --side-by-side, --allowmultiple, --allow-multiple, --allowmultipleversions, --allow-multiple-versions
     AllowMultipleVersions - Should multiple versions of a package be
       installed? Defaults to false.

 -i, --ignoredependencies, --ignore-dependencies
     IgnoreDependencies - Ignore dependencies when upgrading package(s).
       Defaults to false.

 -n, --skippowershell, --skip-powershell
     Skip Powershell - Do not run chocolateyInstall.ps1. Defaults to false.

     --failonunfound, --fail-on-unfound
     Fail On Unfound Packages - If a package is not found in feeds specified,
       fail instead of warn.

     --failonnotinstalled, --fail-on-not-installed
     Fail On Non-installed Packages - If a package is not already intalled,
       fail instead of installing.

 -u, --user=VALUE
     User - used with authenticated feeds. Defaults to empty.

 -p, --password=VALUE
     Password - the user's password to the source. Defaults to empty.

하지만 특정 패키지를 제외하는 기능은 없는 것 같습니다.

부팅 시 패키지 하나만 제외하고 모든 패키지를 업데이트하는 방법은 무엇입니까?

답변1

두 가지 옵션이 있습니다. 패키지를 미리 고정하거나 도중에 항목을 제외하는 것입니다 choco upgrade.

업그레이드를 억제하기 위해 패키지 고정

업데이트를 원하지 않는 프로그램을 고정할 수 있습니다.

자세한 내용을 보려면 입력하세요 choco pin -h. 해당 명령으로 아무 것도 제공되지 않으면 Chocolatey를 최소 0.9.9.x로 업그레이드하세요.

핀 명령

업그레이드를 억제하려면 패키지를 고정하세요.

choco upgrade이는 모든 패키지에 대해 실행할 때 해당 패키지를 자동으로 건너뛰기 때문에 특히 유용합니다 . 또 다른 대안은 입니다 choco upgrade --except="pkg1,pk2".

용법

choco pin [list]|add|remove [<options/switches>]

choco pin
choco pin list
choco pin add -n=git
choco pin add -n=git --version 1.2.3
C4B: choco pin add -n=git --version 1.2.3 --reason "'others may need to review'"
choco pin remove --name git

메모: --reasonChocolatey for Business(C4B)에서만 사용할 수 있는 옵션입니다.

업그레이드하는 동안 패키지 제외

때로는 단순히 업그레이드에 일반적으로 포함되는 항목을 제외하고 싶을 때도 있습니다. 단일 명령 실행보다 오래 지속되는 핀을 원하지 않습니다. Exclude업그레이드 명령에 옵션이 제공되는 곳입니다 .

Chocolatey v0.9.10부터 업그레이드 호출 시 선택사항을 전달할 수 있습니다.--except업그레이드용 스위치로. 예를 들면 다음과 같습니다 choco upgrade all --except="'conemu'".

답변2

에 따르면공식 문서:

choco upgrade all --except="'skype,conemu'"

관련 정보