Chocolatey package manager for Windows

Let's examine how Chocolatey works.

Firstly, Chocolatey is a package manager for windows. You can install and uninstall software that you need easily from Command Line Interface.

chocolateymain

https://chocolatey.org/

By the way, there are more than 4000 packages in Chocolatey

chocolateypackages

https://chocolatey.org/packages

Installing Chocolatey

To install Chocolatey on your computer, you can follow below link.

https://chocolatey.org/docs/installation

or open a Command Promt as administrator

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Installing Chocolate with proxy

@powershell -NoProfile -ExecutionPolicy Bypass -Command "[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH="%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Upgrading Chocolatey

to install the latest release of Chocolatey

choco upgrade chocolatey

Using Chocolatey package manager, you can accelerate development environment.

In order to see all command references of Choco, use below link

https://github.com/chocolatey/choco/wiki/CommandsReference

Installing package

Let's say that you need to use a no sql database (Redis or Mongo, etc.)

chocolateynodejsinstall

choco install redis
choco install mongodb
choco install sysinternals
choco install notepadplusplus googlechrome atom 7zip
choco install notepadplusplus --force --force-dependencies
choco install notepadplusplus googlechrome atom 7zip -dvfy
choco install git --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'" -y
choco install nodejs.install --version 0.10.35
choco install git -s "'https://somewhere/out/there'"
choco install git -s "'https://somewhere/protected'" -u user -p pass

Reinstalling package

choco install nodejs –force

Listing locally installed packages

chocolatey list -localonly
chocolatey list -lo
clist -lo

Listing packeges

choco list –page=0 –page-size=25

Uninstalling package

If you want to uninstall one package, use below;

choco uninstall git
choco uninstall ruby --version 1.8.7.37402
choco uninstall nodejs.install --all-versions

Upgrading Package

If you want to upgrade package, use below;

choco upgrade chocolatey
choco upgrade notepadplusplus googlechrome atom 7zip
choco upgrade notepadplusplus googlechrome atom 7zip -dvfy
choco upgrade git --params="'/GitAndUnixToolsOnPath /NoAutoCrlf'" -y
choco upgrade nodejs.install --version 0.10.35
choco upgrade git -s "'https://somewhere/out/there'"
choco upgrade git -s "'https://somewhere/protected'" -u user -p pass
choco upgrade all
choco upgrade all --except="'skype,conemu'"

Some examples are below, just copy one of them to cmd.exe

choco install ruby
choco install python
choco install python3
choco install nodejs
choco install javaruntime
choco install jre8
choco install jdk8
choco install dotnet3.5
choco install dotnet4.0
choco install dotnet4.5
choco install wget
choco install git
choco install github
choco install svn
choco install sourcetree
choco install curl
choco install cygwin
choco install fiddler
choco install googledrive
choco install notepadplusplus
choco install googlechrome
choco install winrar
choco install firefox
choco install adobereader
choco install vlc
choco install skype
choco install powershell
choco install filezilla
choco install silverlight
choco install putty
choco install virtualbox
choco install teamviewer
choco install dropbox
choco install sublimetext3

Leave a Reply