Chocolatey Installation
Chocolatey is a package manager for Windows that provides a centralized repository of software packages. It simplifies the process of installing, updating, and managing software on Windows machines through a command-line interface (CLI). Here’s a comprehensive overview of Chocolatey and its key features:
Key Features:
Package Management: Chocolatey allows users to search, install, update, and uninstall software packages from a curated repository called the Chocolatey Community Repository (formerly known as the Chocolatey Gallery). This repository contains a wide range of popular software applications, utilities, and tools.
Command-line Interface (CLI): Users interact with Chocolatey primarily through the command line, making it efficient for scripting and automation tasks. The CLI supports commands for searching packages, installing multiple packages in one command, upgrading packages, and more.
Automation and Scripting: Chocolatey is designed with automation in mind, enabling administrators and developers to automate software installation and management tasks. This is particularly useful for configuring new machines or deploying software across multiple systems.
Versioning and Dependencies: Chocolatey manages software versions and dependencies automatically. When installing a package, Chocolatey resolves and installs any dependencies required by the software, ensuring compatibility and stability.
Community Edition: Free and open-source, it provides access to the Chocolatey Community Repository and basic package management features.
Chocolatey for Business (C4B): Includes additional features such as package internalization, package audit and reporting, and more granular management capabilities suitable for enterprise environments.
Package Creation and Hosting: Users can create their own packages using Chocolatey’s packaging framework. Packages can be hosted on public or private repositories, allowing organizations to manage internal software distributions.
Security and Trust: Chocolatey emphasizes security by digitally signing packages in the official repository. This helps ensure that packages have not been tampered with and provides a level of trust in the software being installed.
Installing-Chocolatey
Check Current Execution Policy
To check the current execution policy, run the following command in PowerShell in Administrator mode:
Get-ExecutionPolicy
If the command returns Restricted, you can change the execution policy to either AllSigned or Bypass for the current process. Use one of the following commands:
Change Execution Policy to AllSigned
Set-ExecutionPolicy AllSigned
Make sure you give permissions by typing yes while installations.
Change Execution Policy to Bypass for the Current Process
Set-ExecutionPolicy Bypass -Scope Process
Make sure you have the necessary administrative privileges to change the execution policy.
Then paste this below code in powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Ignore the warning message while installation
After installation type
choco
orchoco -
to check either it is installed or not.
If not working then copy the code from documentation page of Chocolatey website https://chocolatey.org/install
Chocolatey commands to install various common software and packages
Each command is executed in an elevated (administrative) PowerShell window.
Basic Software Installations
Google Chrome:
choco install googlechrome -y
Mozilla Firefox:
choco install firefox -y
Visual Studio Code:
choco install vscode -y
7-Zip:
choco install 7zip -y
Git:
choco install git -y
Node.js (with npm):
choco install nodejs -y
Python 3:
choco install python -y
Java Development Kit (JDK):
choco install jdk8 -y
Docker:
choco install docker-desktop -y
Slack:
choco install slack -y
Zoom:
choco install zoom -y
VLC Media Player:
choco install vlc -y
Notepad++:
choco install notepadplusplus -y
WinRAR:
choco install winrar -y
Skype:
choco install skype -y
Development Tools
Postman:
choco install postman -y
MySQL:
choco install mysql -y
MongoDB:
choco install mongodb -y
Redis:
choco install redis-64 -y
Visual Studio 2019 Community:
choco install visualstudio2019community -y
.NET Core SDK:
choco install dotnetcore-sdk -y
IntelliJ IDEA Community Edition:
choco install intellijidea-community -y
PyCharm Community Edition:
choco install pycharm-community -y
Utilities
Sysinternals Suite:
choco install sysinternals -y
CCleaner:
choco install ccleaner -y
PuTTY:
choco install putty -y
FileZilla:
choco install filezilla -y
WinSCP:
choco install winscp -y
ConEmu:
choco install conemu -y
OpenSSH:
choco install openssh -y
Productivity Software
LibreOffice:
choco install libreoffice-fresh -y
Adobe Acrobat Reader DC:
choco install adobereader -y
Evernote:
choco install evernote -y
Microsoft Office 365 Business:
choco install office365business -y
OneNote:
choco install onenote -y
Communication Tools
Microsoft Teams:
choco install microsoft-teams -y
Discord:
choco install discord -y
Telegram:
choco install telegram -y
You can find more packages and their respective installation commands on the Chocolatey website. Always ensure you are using an elevated PowerShell window to install these packages using Chocolatey.
Subscribe to my newsletter
Read articles from Hritik Raj directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Hritik Raj
Hritik Raj
As a BTech CSE student and founder of scalant & Bubbleup communities, I have a strong foundation in computer science and a diverse skillset that includes full stack development, UI/UX design, and data science. I am proficient in Python and Django, and have experience with react js. I also have a strong understanding of database systems and SQL, and am skilled in front-end technologies such as HTML, CSS, and JavaScript. In addition to my technical expertise, I am also a strong problem-solver and team player, with excellent communication skills. As the founder of Scalant and Bubbleup communities, I enjoy connecting with like-minded individuals and sharing my knowledge and expertise.