Categories: HomeHow-to'sWindows

How to install Chocolety in Windows 10 via Powershell

Howdy folks now in this article we are talking strictly about Windows, yes Windows you heard that right. After blogging for so many years about Linux I’m now willing, as well as passionate to write about Windows based software’s, but there is a catch I shall only include the command line based tools and SDK’s which shall be helpful for beginners and perhaps seasoned professionals alike. So now Let us begin our journey which starts here with an awesome package manager called Chocolety documentation also known as Choco.

At the time of writing I am on Windows 10, so listen guys Powershell is already installed by default on this OS, so the tutorial of installing it, is pretty straight forward and as mentioned below. For the people who don’t know what Powershell is it’s like maddening for a Linux user who does not know what terminal is and the same goes for macOS users as well. It’s basically as revamped version of Command Prompt which Microsoft has been shipping from ancient times.

Let’s get back to business. So a package manager called as choco for Windows, yeah like apt for Ubuntu or yum/dnf for Fedora etc. It’s the most automated and a sane way to manage software on Windows.

Sane way to Install chocolatey/choco on Windows 10

  1. Hit the Windows key(Yeah i meant the super key for Linux fans 😉  and type “powershell
  2. Make sure that you “Run as Administrator“ you may choose not to be one but that’s what not people like me prefer, read here for more info.
  3. Paste the following command into Powershell and press enter.
Set-ExecutionPolicy Bypass -Scope Process -Force; `<br /><br /><br /><br />
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  1. Answer Yes when prompted
  2. Restart that is re-open an elevated PowerShell window to start using choco

 

Chocolatey is now installed completely and it can now be used from a PowerShell prompt or a regular command prompt windows to install many different software packages from community repositoreis. Whichever one you use, just make sure you run choco from an elevated powershell/command prompt window.

See Choco in action:-

Some more examples:-

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

Thanks for reading !

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

6 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

6 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

11 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

11 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

11 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

12 months ago