Chocolatey – Windows Package Installer & Manager

Hi All,

Let’s get Chocolatey !!

Today am going to explain about “Chocolatey NuGet” is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind.

Installation

Via Command Prompt (administrator)

C:> @powershell -NoProfile -ExecutionPolicy Bypass -Command “iex ((new-object net.webclient).DownloadString(‘https://chocolatey.org/install.ps1’))” && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Via Powershell

PS:> iex ((new-object net.webclient).DownloadString(‘https://chocolatey.org/install.ps1’))

which downloads and install in your machine.

 

Installing Programs :

We can install “N” of packages in windows via chocolatey, Once you’ve got Chocolatey up and running, it’s time to start installing programs. Open an administrative command prompt again and type cinst [program name]

cinst <package name>

Example : To install vlc player, type below command with “-y” which confirms your installation permission

Cinstall vlc -y

 

Can search programs/pacakges with hint

choco search (keyword)

 

Multiple installs

There are two ways to install multiple programs in one sitting with Chocolatey. The first is to type multiple arguments into the command line. If you wanted to install VLC, GIMP, and Firefox you’d type:

cinst vlc gimp Firefox

 

 Updating :

Updating installed programs via Chocolatey is simple too. Type cup [program name]into an administrative command. To update DosBox, for example, type:

cup vlc

You can also update all your programs by typing cup all. If your package is using an alternative source other than the main Chocolatey package feed, you can type:

cup [package name] –source 

Uninstalling

 

Uninstalling a package is a little different. Going back to our example, you’d type the following to uninstall DosBox:

choco uninstall vlc

Will update few more after my test…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s