Difference between revisions of "Chocolatey"

From Comprofix
Jump to: navigation, search
Line 25: Line 25:
 
</pre>
 
</pre>
 
Chocolatey will download and install
 
Chocolatey will download and install
 +
 
[[File:Powershell-choco-install-W10.png]]
 
[[File:Powershell-choco-install-W10.png]]
  

Revision as of 00:59, 16 May 2018

What is Chocolatey?

Chocolatey is a package manager for Windows (like apt-get or yum but for Windows). It was designed to be a decentralized framework for quickly installing applications and tools that you need. It is built on the NuGet infrastructure currently using PowerShell as its focus for delivering packages from the distros to your door, err computer. - https://www.chocolatey.org/about

Installation

To Install Chocolatey, follow the steps below for the version of Windows you are running.

Windows 10

Open a PowerShell Prompt as an Administration

  • Click Star Menu
  • Type PowerShell

Powershell-W10.png

  • Right Click on Windows PowerShell
  • Select Run as Administrator

Powershell-run-as-administratror-W10.png

  • Click Yes on the to allow PowerShell to Open

Powershell-UAC.png

In PowerShell enter the following commands

Set-ExecutionPolicy Unrestricted -Force
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

Chocolatey will download and install

Powershell-choco-install-W10.png

Windows 10 Chocolatey Install Windows 7 Open a PowerShell Prompt as an Administration Click Star Menu Type PowerShell Right Click on Windows PowerShell Select Run as Administrator Windows 7 Menu PowerShell Click Yes on the to allow PowerShell to Open In PowerShell enter the following commands Set-ExecutionPolicy Unrestricted -Force

iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))

Chocolatey will download and install Windows 7 Chocolatey Install Using Chocolatey When using Chocolatey run it using a Command Prompt run as an Administrator.

Once Chocolatey is installed we need to enable some features which make it easier to use.

choco feature enable -n=allowGlobalConfirmation

choco feature enable -n=allowEmptyChecksum

The first option suppresses the “Prompt for confirmation in scripts or bypass”, this way you don’t have to keep answering Yes to confirm installation.

The second option “Allow packages to have empty/missing checksums”, if a maintainer has not included a Checksum in the installation package it will still install it.

To install software Open a Command Prompt as an Administrator and enter the command

choco install <Software>

So if you wanted to install 7-Zip you would enter:

choco install 7zip

Chocolatey Install 7zip

Finding packages to install is simple, you can use the website – https://chocolatey.org/packages or you can use the command

choco search <Software>

Updating software is also easy. Use the following command

choco update all

This will check what software is installed by Chocolatey and if their are any updates will download and install them.

Conslusion For now chocolatey is all I need. No longer do I need to keep a folder of software installers. Just install chocolatey and it does the rest.