Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » Windows Package Manager: How to install, upgrade or uninstall Chocolatey
  • 1 pUEZd8z  1p 7ICIO1NZFA
    The package python-virtualenv has no installation candidate error Linux
  • screenshot 2020 03 29 at 18.19.50
    Shortcut for Windows update: How to create a shortcut for Windows scheduled task Windows Server
  • azure file share feature image
    Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
  • FEAUREanydesk
    How to install AnyDesk on a Linux Machine Linux
  • fix IP addressed blocked Synology
    IP Address blocked on Synology NAS due to forgotten Password Storage
  • mssql
    Fix MSSQL Connection timeout and timeout period expired Oracle/MSSQL/MySQL
  • ReasonsforBitLockerRecovery
    Reasons for BitLocker Recovery Prompt: Query the number of BitLocker recovery request Windows
  • Missing Windows defender
    Missing Windows Defender? Install and manage Microsoft Defender via Windows Security on Windows Server Windows Server

Windows Package Manager: How to install, upgrade or uninstall Chocolatey

Posted on 25/05/202019/09/2023 Christian By Christian No Comments on Windows Package Manager: How to install, upgrade or uninstall Chocolatey
Windows Package Manager

Chocolatey is a secure and simple Windows package manager. Windows package managers are a collection of tools that enable users to automate the installation, configuration, and updating of apps and programs. It is free and open-source for personal and business use. For users who need advanced functionality, Chocolatey offers premium upgrades. For a similar guide on how to install Windows Package Manager (Winget), see the following link, and how to install applications with Windows Package Manager (Winget). It can also manage things you would normally xcopy deploy (like runtime binaries and zip files).

What does Chocolatey bring?  

Chocolatey Software Management Tool replaces the traditional way of searching for a .exe or .msi application file on a website, then download the installer before executing it (the rigorous process of clicking on several next, etc., till the software is finally installed) and then click on finish to end the installation process.

With  Chocolatey Software Management Tool, these steps have been simplified and made it easy to achieve the same with Command Prompt or PowerShell. We shall see this later as we install and uninstall packages quite easily.

Install Chocolatey

To install chocolatey, follow the steps below.
1: Install with PowerShell: You can install Chocolatey with PowerShell, but this requires an additional step. You must set the ExecutionPolicy.
– For more set the ExecutivePolicy, see https://techdirectarchive.com/2020/02/04/how-to-set-execution-policy/
– For to set the PowerShell Execution Policy via the registry settings,

Note: Get-ExecutionPolicy is not restricted. To fix this, it is advisable to use the “Bypass” policy to let the script run.

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'))

Ensure to launch PowerShell with Administrative privilege and run the above code

Chocolatey

Now, chocolatey is installed on your server.

To see how to install, upgrade and uninstall software with Chocolatey, see

2: Via the Command Prompt: To run Chocolatey, launch Command Prompt withAdministrator privilege

install Chocolatey

– Next, copy the command below to the command prompt and click on enter.

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

This will ensure, that Chocolatey is installed on to your server.

How to upgrade Chocolatey

Once installed, Chocolatey can be upgraded in exactly the same way as any other package that has been installed using Chocolatey. Simply use the command to upgrade to the latest stable release of Chocolate.

choco upgrade chocolatey

How to uninstall Chocolatey

Once installed, Chocolatey can be uninstalled in the following way by simply removing the folder and the environment variable(s) that are created on your device. Since it is not actually installed in Programs and Features, you don’t have to worry that it cluttered up your registry. However, that’s a different story for the applications that you installed with Chocolatey or manually).

Most of Chocolatey is contained in C:\ProgramData\chocolatey or whatever $env: ChocolateyInstall evaluates to. You can simply delete that folder.

Note: Ensure you check the box to show the “Hidden items” or else the folder ProgramData will not be visitable.

For other installation scenarios, see the following link. However, I hope you found this blog post helpful. Furthermore, Please let me know in the comment session if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:Package Management, Packages

Post navigation

Previous Post: How to uninstall the DriveLock Agent from your device
Next Post: Windows Package Manager: How to install applications using Chocolatey?

Related Posts

  • windows 10 keyboard shortcut 1024x512 1
    How to create a Desktop shortcut in Windows Windows
  • win 10 login screen
    How to Transfer User Profile to another User in Windows Windows
  • image 41
    How to Quickly Fix Windows Search Bar Not Working Windows
  • wac
    Fix Windows Admin Center cannot be reached Windows
  • How to Disable UAC with Group Policy and enable PIN in Windows Hello
    How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
  • TPM 1
    How to fix unable to find compatible TPM Windows

More Related Articles

windows 10 keyboard shortcut 1024x512 1 How to create a Desktop shortcut in Windows Windows
win 10 login screen How to Transfer User Profile to another User in Windows Windows
image 41 How to Quickly Fix Windows Search Bar Not Working Windows
wac Fix Windows Admin Center cannot be reached Windows
How to Disable UAC with Group Policy and enable PIN in Windows Hello How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
TPM 1 How to fix unable to find compatible TPM Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • 1 pUEZd8z  1p 7ICIO1NZFA
    The package python-virtualenv has no installation candidate error Linux
  • screenshot 2020 03 29 at 18.19.50
    Shortcut for Windows update: How to create a shortcut for Windows scheduled task Windows Server
  • azure file share feature image
    Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
  • FEAUREanydesk
    How to install AnyDesk on a Linux Machine Linux
  • fix IP addressed blocked Synology
    IP Address blocked on Synology NAS due to forgotten Password Storage
  • mssql
    Fix MSSQL Connection timeout and timeout period expired Oracle/MSSQL/MySQL
  • ReasonsforBitLockerRecovery
    Reasons for BitLocker Recovery Prompt: Query the number of BitLocker recovery request Windows
  • Missing Windows defender
    Missing Windows Defender? Install and manage Microsoft Defender via Windows Security on Windows Server Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.