Choclate bars

Windows Package Managment Chocolaty

Windows did not implement a package management system for their distribution. Unlike Linux. Debian has its own aptitude package management. Ubuntu has two package management aptitude and snap. RedHat Enterprise Linux (RHEL) has its own package management called yum. They all support updating their core system as well as optional applications.

Windows implemented its own Windows Update service to update its core and it is propriety and you cannot publish your app in it. 

A new innovation came in place to shut administrator frustrations.

Chocolatey


Chocolatey is a package manager for Windows (like apt-get or yum but for Windows). It was designed to be a decentralized framework for quickly installing applications and tools that you need. It is built on the NuGet infrastructure currently using PowerShell as its focus for delivering packages from the distros to your door, err computer.

https://chocolatey.org/about

Install  Chocolatey from cmd

Press CTRL+R, enter cmd and write this down

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

Install Chocolaty from powershell

Powershell is another cmd like counterpart shell to “replace” cmd. Enter the following

C:\Users\Khalifa> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

follow the instruction and that’s it. You must be an administrator to do this.

How to Use Chocolaty

Very easy to use. For example to install curl as demonstrated in https://thebugd.tk/developer-tutorials/curl-tutorial/

C:\Users\Bunny> choco install curl

To remove a package 

C:\Users\GIF> choco uninstall curl

To upgrade a package

C:\Users\Zaky> choco upgrade curl

Write a Comment

Comment