Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

choco

> 包管理
Open source

Chocolatey - the package manager for Windows

11.5K stars0 likes7 views
WebsiteGitHub

About

Chocolatey - the package manager for Windows

Chocolatey - like yum or apt-get, but for Windows

You can just call me choco.

  • Build Status
  • Chat Room
  • Support Chocolatey!
  • See Chocolatey In Action
  • Etiquette Regarding Communication
  • Information
    • Documentation
    • Requirements
    • License / Credits
  • Submitting Issues
  • Contributing
  • Committers
    • Compiling / Building Source
      • Windows
      • Other Platforms
        • Prerequisites:
        • Before building:
        • Build Process:
    • Testing
    • Installing on Other Platforms:
  • Credits

Build Status

GitHub Action

Chat Room

Come join in the conversation about Chocolatey in our Community Chat Room. Please make sure you've read over and agree with the etiquette regarding communication.

Support Chocolatey!

  • Purchase Chocolatey Pro / Chocolatey for Business

See Chocolatey In Action

Chocolatey FOSS install showing tab completion and refreshenv (a way to update environment variables without restarting your shell):

Chocolatey Pro showing private CDN download cache and virus scan protection:

Etiquette Regarding Communication

If you are an open source user requesting support, please remember that most folks in the Chocolatey community are volunteers that have lives outside of open source and are not paid to ensure things work for you, so please be considerate of others' time when you are asking for things. Many of us have families that also need time as well and only have so much time to give on a daily basis. A little consideration and patience can go a long way. After all, you are using a pretty good tool without cost. It may not be perfect (yet), and we know that.

If you are using a commercial edition of Chocolatey, you have different terms! Please see support.

Information

  • Chocolatey Website and Community Package Repository
  • Mailing List / Release Announcements Only Mailing List / Build Status Mailing List
  • Twitter / Facebook / GitHub
  • Blog / Newsletter
  • Documentation / Support

Documentation

Please see the docs

Give choco.exe --help a shot (or choco.exe -h). For specific commands, add the command and then the help switch e.g. choco.exe install --help.

Requirements

  • .NET Framework 4.8+
  • PowerShell 2.0+
  • Windows Server 2008 R2+ / Windows 10+
    • See our documentation on the support lifecycle and supported operating systems for additional information

License / Credits

Apache 2.0 - see LICENSE and NOTICE files.

Submitting Issues

  • If you are having issue with a package, please see Request Package Fixes or Updates / Become a maintainer of an existing package.
  • If you are looking for packages to be added to the community feed (aka https://community.chocolatey.org/packages), please see Package Requests.
  1. Start with Troubleshooting and the FAQ to see if your question or issue already has an answer.
  2. If not found or resolved, please follow one of the following avenues:
    • If you are a licensed customer, please see support. You can also log an issue to Licensed Issues and we will submit issues to all other places on your behalf. Another avenue is to use email support to have us submit tickets and other avenues on your behalf (allowing you to maintain privacy).
    • If it is an enhancement request or issue with the website (the community package repository aka https://community.chocolatey.org), please submit the issue to the Chocolatey.org repo.
    • If you have found an issue with the GUI (Chocolatey GUI) or you want to submit an enhancement, please see the ChocolateyGUI repository.
    • If you have found an issue with the client (choco.exe), you are in the right place. Keep reading below.

Observe the following help for submitting an issue:

Prerequisites:

  • The issue has to do with choco itself and is not a package or website issue.
  • Please check to see if your issue already exists with a quick search of the issues. Start with one relevant term and then add if you get too many results.
  • You are not submitting an "Enhancement". Enhancements should observe CONTRIBUTING guidelines.
  • You are not submitting a question - questions are better served as emails or Community Chat questions.
  • Please make sure you've read over and agree with the etiquette regarding communication.

Submitting a ticket:

  • We'll need debug and verbose output, so please run and capture the log with -dv or --debug --verbose. You can submit that with the issue or create a gist and link it.
  • Please note that the debug/verbose output for some commands may have sensitive data (passwords or API keys) related to Chocolatey, so please remove those if they are there prior to submitting the issue.
  • choco.exe logs to a file in $env:ChocolateyInstall\log\. You can grab the specific log output from there so you don't have to capture or redirect screen output. Please limit the amount included to just the command run (the log is appended to with every command).
  • Please save the log output in a gist (save the file as log.sh) and link to the gist from the issue. Feel free to create it as secret so it doesn't fill up against your public gists. Anyone with a direct link can still get to secret gists. If you accidentally include secret information in your gist, please delete it and create a new one (gist history can be seen by anyone) and update the link in the ticket (issue history is not retained except by email - deleting the gist ensures that no one can get to it). Using gists this way also keeps accidental secrets from being shared in the ticket in the first place as well.
  • We'll need the entire log output from the run, so please don't limit it down to areas you feel are relevant. You may miss some important details we'll need to know. This will help expedite issue triage.
  • It's helpful to include the version of choco, the version of the OS, and the version of PowerShell (Posh) - the debug script should capture all of those pieces of information.
  • Include screenshots and/or animated gifs whenever possible, they help show us exactly what the problem is.

Contributing

If you would like to contribute code or help squash a bug or two, that's awesome. Please familiarize yourself with CONTRIBUTING.

This project uses an .editorconfig file in order to help maintain consistency of code. Errors and warnings produced by not following these defined conventions will in future be enforced at build time, so ensure your contributions adhere to the rules defined in it and produce no warnings or errors in Visual Studio.

Committers

Committers, you should be very familiar with COMMITTERS.

Compiling / Building Source

There is a build.bat/build.sh file that creates a necessary generated file named SolutionVersion.cs. It must be run at least once before Visual Studio will build.

Windows

Prerequisites:

The following are a minimum set of requirements to successfully complete the build process:

  • .NET Framework 4.8
  • .NET Framework 4.8 Dev Pack
  • Visual Studio 2019 or Visual Studio 2019 Build Tools
  • .NET SDK (i.e. ability to install .NET Global tools using dotnet tool install)

There is a setup.ps1 file at the root of this repository, which can be used to install all of the above.

Build Process:

  • Run build.bat.

[!IMPORTANT] It is assumed that Chocolatey CLI is installed on the machine where you are running the build, as this is required to generate the final Chocolatey package. If required, you can skip the creation of the Chocolatey packages using the --shouldRunChocolatey option, i.e. .\build.bat --shouldRunChocolatey=false

Running the build on Windows should produce an artifact that is tested and ready to be used.

Other Platforms

Prerequisites:
  • Install and configure Mono. Mono 6.6 or newer should work, see docker/Dockerfile.linux for the currently recommended version of Mono.
    • Linux systems; see Mono install instructions for Linux
    • Mac systems; see Mono install instructions for Mac
  • Install .NET 6.0 SDK or newer. This is used in the build scripts.
    • Linux systems; see Install .NET on Linux
    • Mac systems; see Install .NET on macOS
    • This is required for some Dotnet Global Tools used during the Cake build. The .NET Frameworks equivalent builds do not work on Mono.
  • If building from Git, then having Git 2.22+ installed is required.
  • MonoDevelop is helpful for working on source.
Before building:
  • Consider adding the following to your ~/.profile (or other relevant dot source file):
bash
# Mono
# http://www.michaelruck.de/2010/03/solving-pkg-config-and-mono-35-profile.html
# https://cloudgen.wordpress.com/2013/03/06/configure-nant-to-run-under-mono-3-06-beta-for-mac-osx/
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig:$PKG_CONFIG_PATH
  • Set your permissions correctly:
bash
chmod +x *.sh
Build Process:
  • Run ./build.sh.

Running the build on Mono produces an artifact similar to W

Issues· 521 open

View all issuesOpen on GitHub
  • #3708

    Top Issues Dashboard

    Top Issues DashboardUpdated Sep 28, 2026
  • #3645

    Chocolatey CLI is incorrectly reporting bad permissions on the HttpCache folder and is not setting them correctly

    BugSecurityPriority - High3 - ReviewClickUp - InterruptUpdated Sep 25, 2026
  • #3941

    Add Dev Proxy test to verify choco push reports the server's error response

    Build AutomationTestsClickUp - QAUpdated Sep 23, 2026
  • #3940

    Docker chocolatey/choco image multi kernel support for Windows Docker (WCOW)

    EnhancementUpdated Sep 22, 2026
  • #3937

    Push Docker images to an internal registry on every build of a long-lived branch

    2 - WorkingBuild AutomationNO RELEASE NOTESUpdated Sep 18, 2026
  • #3923

    `upgrade --version` installs a different target version after dependency resolution retry

    BugClickUp - InterruptUpdated Sep 17, 2026
  • #3935

    Accessibility Enhancement Request: Audio Progress Cues for Blind Users During Installations

    0 - BacklogEnhancementClickUp - BacklogUpdated Sep 15, 2026
  • #3927

    Chocolatey will not install to default location and instead installs to UniGetUI folder

    0 - Waiting on UserQuestionPending ClosureUpdated Sep 11, 2026
  • #3642

    When using `--include-programs` Chocolatey CLI is not showing all software appearing in Programs and Features

    Bug0 - BacklogCustomerUpdated Sep 8, 2026
  • #3144

    File locked with read and delete permissions behave differently between client and server OS

    Bug0 - TriagingClickUp - QAUpdated Sep 2, 2026

> Tags

C#c-sharpchocolateyhacktoberfestpackage-management

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image