Chocolaty – The package manager for Windows

choco-logo

You can find many tool to manage packages on MAC, Linux but on Windows maybe lesses.

This week, I read a blog use chocolaty to install packages on Windows via command line, so i create this post to share it to everybody.

The first, you can read chocolaty at: https://chocolatey.org/

and installation guide at: https://chocolatey.org/install.

 

** Installation steps

Step 1: You need install powershell in your windows first:

Download Windows Management Framework (WMF)

screen-shot-2017-02-17-at-09-59-56

 Step 2: Enable RemoteSigned for Powershell(Open with Administrator) via command:

remotesigned

$Set-ExecutionPolicy RemoteSigned

Step 3: Install Chocolaty:

$iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

installchocolaty

 

** Install some packages with Chocolaty

  1. Install Java JDK:

Goto https://chocolatey.org/package and find Java JDK like screenshot below:

screen-shot-2017-02-17-at-10-23-13

install-java-jdk

When you use chocolaty, the environment variable will be added to your system automatically. (:D)

   2. Install maven

install-maven

 

 

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.