Difference between revisions of "Chocolatey"

From Comprofix
Jump to: navigation, search
Line 63: Line 63:
 
* 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.
 
* 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.
  
== Installing Software ===
+
== Installing Software ==
 
To install software Open a Command Prompt as an Administrator and enter the command
 
To install software Open a Command Prompt as an Administrator and enter the command
 
<pre>
 
<pre>
 
choco install <Software>
 
choco install <Software>
<pre>
+
</pre>
  
 
So if you wanted to install 7-Zip you would enter:
 
So if you wanted to install 7-Zip you would enter:

Revision as of 07:00, 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 Administrator

  • 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 7

Open a PowerShell Prompt as an Administrator

  • Click Star Menu
  • Type PowerShell

Powershell-Start-Menu-W7.png

  • Right Click on Windows PowerShell
  • Select Run as Administrator

Powershell-run-as-administrator-W7.png

  • Click Yes on the to allow PowerShell to Open

Powershell-UAC-W7.png

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

Powershell-choco-install-W7.png

Using Chocolatey

Configuring Chorolatey

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=allowEmptyChecksums
  • 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.

Installing Software

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

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

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.

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.