Make Windows more powerful with Chocolatey Package Manager

in chocolatey •  6 years ago 

Using Windows but you want to get more out of that CMD or Powershell?

Tired of seeing all these articles use macOS pm or linux pm commands brew install, apt install and you can't install anything cool? 😖

Breathe Windows users, breathe.

Chocolately Package Manager is here to save the day. CPM is a framework that allows you to access a repository chalked full of packages to install and upgrade easily from the command line.

Let's get started.

There are multiple ways to install Chocolately package manager but for this tutorial we are going to stick with the 2 more common ways. I will link the full install page for unique requirements.

CMD

Install with cmd.exe

Search box cmd, right click mouse over app, Run as Administrator

Run the following command inside CMD:
@"%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"

Powershell

Install with Powershell.exe

Note: With Powershell you must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security.

Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.

Search box Powershell, right click mouse over app, Run as Administrator

Run the following command inside Powershell:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Ensure you are running as Administrator or you will receive an error like below:

Test it out

Run the following command (in cmd or Powershell) `choco -v' and it should return your version like below:

Success! Install away until your HD is full

If the commands return errors or you have unique requirements checkout https://chocolately.org/install for in depth details.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://chocolatey.org/install

Congratulations @dapp-corner! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!