How do I update all Chocolatey packages except one?












25















cup all -y is used to update all Chocolatey packages at boot. At the moment there is an issue in the latest version of VirtualBox, and I want to avoid that this package is updated at boot while the other packages need to be updated.



Attempt to solve the issue



I have checked the help function of the command:



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.


But it does not seem to have a function to exclude a certain package.



How do I update all packages at boot, except one?










share|improve this question





























    25















    cup all -y is used to update all Chocolatey packages at boot. At the moment there is an issue in the latest version of VirtualBox, and I want to avoid that this package is updated at boot while the other packages need to be updated.



    Attempt to solve the issue



    I have checked the help function of the command:



    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.


    But it does not seem to have a function to exclude a certain package.



    How do I update all packages at boot, except one?










    share|improve this question



























      25












      25








      25


      7






      cup all -y is used to update all Chocolatey packages at boot. At the moment there is an issue in the latest version of VirtualBox, and I want to avoid that this package is updated at boot while the other packages need to be updated.



      Attempt to solve the issue



      I have checked the help function of the command:



      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.


      But it does not seem to have a function to exclude a certain package.



      How do I update all packages at boot, except one?










      share|improve this question
















      cup all -y is used to update all Chocolatey packages at boot. At the moment there is an issue in the latest version of VirtualBox, and I want to avoid that this package is updated at boot while the other packages need to be updated.



      Attempt to solve the issue



      I have checked the help function of the command:



      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.


      But it does not seem to have a function to exclude a certain package.



      How do I update all packages at boot, except one?







      chocolatey






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 20 at 1:48









      Peter Mortensen

      8,376166185




      8,376166185










      asked Sep 12 '15 at 19:48









      030030

      93771534




      93771534






















          2 Answers
          2






          active

          oldest

          votes


















          28














          You have two options: pin or exclude items at runtime.



          Pin Packages to Suppress Upgrades



          You can pin any program you don't want updated.



          Type choco pin -h for more details. If that command doesn't give you anything, please upgrade Chocolatey to at least 0.9.9.x.




          Pin Command



          Pin a package to suppress upgrades.



          This is especially helpful when running choco upgrade for all
          packages, as it will automatically skip those packages. Another
          alternative is choco upgrade --except="pkg1,pk2".



          Usage



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


          Examples



          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



          Exclude Packages At Runtime



          Sometimes you just simply want to exclude items you would normally include in upgrades. You don't want pins as those are meant to live longer than a single command run. That is where the Exclude option comes in to your upgrade command.



          As of Chocolatey v0.9.10, when calling upgrade, you can pass the optional --except as a switch for upgrade. An example would be choco upgrade all --except="'conemu'".






          share|improve this answer


























          • Why choco pin? Is cup all deprecated?

            – 030
            Sep 14 '15 at 19:27






          • 7





            Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

            – ferventcoder
            Sep 14 '15 at 22:14



















          0














          According to the official documentation:



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





          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f972178%2fhow-do-i-update-all-chocolatey-packages-except-one%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            28














            You have two options: pin or exclude items at runtime.



            Pin Packages to Suppress Upgrades



            You can pin any program you don't want updated.



            Type choco pin -h for more details. If that command doesn't give you anything, please upgrade Chocolatey to at least 0.9.9.x.




            Pin Command



            Pin a package to suppress upgrades.



            This is especially helpful when running choco upgrade for all
            packages, as it will automatically skip those packages. Another
            alternative is choco upgrade --except="pkg1,pk2".



            Usage



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


            Examples



            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



            Exclude Packages At Runtime



            Sometimes you just simply want to exclude items you would normally include in upgrades. You don't want pins as those are meant to live longer than a single command run. That is where the Exclude option comes in to your upgrade command.



            As of Chocolatey v0.9.10, when calling upgrade, you can pass the optional --except as a switch for upgrade. An example would be choco upgrade all --except="'conemu'".






            share|improve this answer


























            • Why choco pin? Is cup all deprecated?

              – 030
              Sep 14 '15 at 19:27






            • 7





              Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

              – ferventcoder
              Sep 14 '15 at 22:14
















            28














            You have two options: pin or exclude items at runtime.



            Pin Packages to Suppress Upgrades



            You can pin any program you don't want updated.



            Type choco pin -h for more details. If that command doesn't give you anything, please upgrade Chocolatey to at least 0.9.9.x.




            Pin Command



            Pin a package to suppress upgrades.



            This is especially helpful when running choco upgrade for all
            packages, as it will automatically skip those packages. Another
            alternative is choco upgrade --except="pkg1,pk2".



            Usage



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


            Examples



            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



            Exclude Packages At Runtime



            Sometimes you just simply want to exclude items you would normally include in upgrades. You don't want pins as those are meant to live longer than a single command run. That is where the Exclude option comes in to your upgrade command.



            As of Chocolatey v0.9.10, when calling upgrade, you can pass the optional --except as a switch for upgrade. An example would be choco upgrade all --except="'conemu'".






            share|improve this answer


























            • Why choco pin? Is cup all deprecated?

              – 030
              Sep 14 '15 at 19:27






            • 7





              Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

              – ferventcoder
              Sep 14 '15 at 22:14














            28












            28








            28







            You have two options: pin or exclude items at runtime.



            Pin Packages to Suppress Upgrades



            You can pin any program you don't want updated.



            Type choco pin -h for more details. If that command doesn't give you anything, please upgrade Chocolatey to at least 0.9.9.x.




            Pin Command



            Pin a package to suppress upgrades.



            This is especially helpful when running choco upgrade for all
            packages, as it will automatically skip those packages. Another
            alternative is choco upgrade --except="pkg1,pk2".



            Usage



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


            Examples



            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



            Exclude Packages At Runtime



            Sometimes you just simply want to exclude items you would normally include in upgrades. You don't want pins as those are meant to live longer than a single command run. That is where the Exclude option comes in to your upgrade command.



            As of Chocolatey v0.9.10, when calling upgrade, you can pass the optional --except as a switch for upgrade. An example would be choco upgrade all --except="'conemu'".






            share|improve this answer















            You have two options: pin or exclude items at runtime.



            Pin Packages to Suppress Upgrades



            You can pin any program you don't want updated.



            Type choco pin -h for more details. If that command doesn't give you anything, please upgrade Chocolatey to at least 0.9.9.x.




            Pin Command



            Pin a package to suppress upgrades.



            This is especially helpful when running choco upgrade for all
            packages, as it will automatically skip those packages. Another
            alternative is choco upgrade --except="pkg1,pk2".



            Usage



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


            Examples



            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



            Exclude Packages At Runtime



            Sometimes you just simply want to exclude items you would normally include in upgrades. You don't want pins as those are meant to live longer than a single command run. That is where the Exclude option comes in to your upgrade command.



            As of Chocolatey v0.9.10, when calling upgrade, you can pass the optional --except as a switch for upgrade. An example would be choco upgrade all --except="'conemu'".







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 4 '17 at 19:54

























            answered Sep 14 '15 at 0:21









            ferventcoderferventcoder

            2,4241216




            2,4241216













            • Why choco pin? Is cup all deprecated?

              – 030
              Sep 14 '15 at 19:27






            • 7





              Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

              – ferventcoder
              Sep 14 '15 at 22:14



















            • Why choco pin? Is cup all deprecated?

              – 030
              Sep 14 '15 at 19:27






            • 7





              Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

              – ferventcoder
              Sep 14 '15 at 22:14

















            Why choco pin? Is cup all deprecated?

            – 030
            Sep 14 '15 at 19:27





            Why choco pin? Is cup all deprecated?

            – 030
            Sep 14 '15 at 19:27




            7




            7





            Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

            – ferventcoder
            Sep 14 '15 at 22:14





            Why would cup all be deprecated? Pin is a command that says "stay on this version for this package."

            – ferventcoder
            Sep 14 '15 at 22:14













            0














            According to the official documentation:



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





            share|improve this answer




























              0














              According to the official documentation:



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





              share|improve this answer


























                0












                0








                0







                According to the official documentation:



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





                share|improve this answer













                According to the official documentation:



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






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 21 at 19:10









                LukeLuke

                170119




                170119






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f972178%2fhow-do-i-update-all-chocolatey-packages-except-one%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Сан-Квентин

                    8-я гвардейская общевойсковая армия

                    Алькесар