Installing-Chocolatey
This is all about Chocolatey
Chocolatey
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:
-
Mozilla Firefox:
-
Visual Studio Code:
-
7-Zip:
-
Git:
-
Node.js (with npm):
-
Python 3:
-
Java Development Kit (JDK):
-
Docker:
-
Slack:
-
Zoom:
-
VLC Media Player:
-
Notepad++:
-
WinRAR:
-
Skype:
Development Tools
-
Postman:
-
MySQL:
-
MongoDB:
-
Redis:
-
Visual Studio 2019 Community:
-
.NET Core SDK:
-
IntelliJ IDEA Community Edition:
-
PyCharm Community Edition:
Utilities
-
Sysinternals Suite:
-
CCleaner:
-
PuTTY:
-
FileZilla:
-
WinSCP:
-
ConEmu:
-
OpenSSH:
Productivity Software
-
LibreOffice:
-
Adobe Acrobat Reader DC:
-
Evernote:
-
Microsoft Office 365 Business:
-
OneNote:
Communication Tools
-
Microsoft Teams:
-
Discord:
-
Telegram:
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.