DEV Community

Monir Saikat
Monir Saikat

Posted on

How to install chocolatey on windows 11

To install Chocolatey on Windows 11, you can follow these steps:

Open PowerShell as Administrator: You'll need administrative privileges to install Chocolatey. To open PowerShell as an administrator, right-click on the Start button and select "Windows Terminal (Admin)" or "Windows PowerShell (Admin)."

Check Execution Policy: In PowerShell, you should check the execution policy to make sure scripts can be run. Run the following command to set the execution policy to a more permissive level (This is only required if you haven't done it before):

   Set-ExecutionPolicy Bypass -Scope Process -Force
Enter fullscreen mode Exit fullscreen mode

Install Chocolatey: To install Chocolatey, use the following command:

   Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Enter fullscreen mode Exit fullscreen mode

This command will download and install Chocolatey on your Windows 11 system. Follow the on-screen prompts if any appear.

Verify Installation: After installation, you can verify that Chocolatey is installed correctly by running:

   choco --version
Enter fullscreen mode Exit fullscreen mode

It should display the version number of Chocolatey if the installation was successful.

That's it! You have now successfully installed Chocolatey on Windows 11. You can use Chocolatey to easily install and manage various software packages on your system.

Top comments (0)