top ad article

Chocolatey is a Windows awesome tool that provides software management solutions. In the sense that, it provides the concepts of real package management to allow you to version things, manage dependencies and installation better. It works just like RPM does in Linux. It has been designed in a way that it is very simple to use and as well provides you with powerful features and components required for your IT environment, hence the ability to manage your Windows software comfortably. Chocolatey can be used while installing nuclear.

Features

  • Can be installed, tested and implemented on any Windows Operating System
  • Manages all available software on Windows which include software installers, internal software, zip files and scripts
  • With it, you do not depend on internet access, hence giving you full control on your environment
  • This tool utilizes PowerShell when it comes to its packages, hence it is familiar

Step 1. Prepare to Install Chocolatey

NB/ Ensure that you run powershell as administartor lest you get an error.

To install this tool, use PowerShell.exe as administrator. Before then, you need to also enable the execution policy, ensure that it is not restricted, just like we did while using PowerShell in the removal of bloatware on windows. To do so;

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

Just like as shown below;


PS C:\Users\Valentine> Get-ExecutionPolicy
Unrestricted
PS C:\Users\Valentine>

Since it has returned, as unrestricted, then I can now continue to do chocolatey installation.

Step 2. Run Installation Command

For the installation to happen on your Windows system, use the command below;

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

This is how it will look once ready, check the screenshot below;

Below is the whole code;

                                                                                                                                                                           PS C:\Windows\system32> Get-ExecutionPolicy                                                                             Unrestricted                                                                                                            PS C:\Windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.15.
Downloading https://chocolatey.org/api/v2/package/chocolatey/0.10.15 to C:\Users\VALENT~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
Extracting C:\Users\VALENT~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\VALENT~1\AppData\Local\Temp\chocolatey\chocoInstall
Installing Chocolatey on the local machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
  Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
  before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
  (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
  and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.

Creating Chocolatey folders if they do not already exist.

WARNING: You can safely ignore errors related to missing log files when
  upgrading from a version of Chocolatey less than 0.9.9.
  'Batch file could not be found' is also safe to ignore.
  'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
 Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
WARNING: Not setting tab completion: Profile file does not exist at
'C:\Users\Valentine\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
 first prior to using choco.
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
PS C:\Windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')

Since Chocolatey has been successfully installed, before you use it, close PowerShell then open and resume its usage. The installation process is fast and easy.

Other Posts;

Previous articleInstall and Use Rambox Application
Next articleUse Nuclear to Find and Stream music for free
Valentine is eager to learn new things, technology and life issues. She is curious enough to write about them. And, she uses her platform to educate others regarding the many sectors in life and most importantly technology.

LEAVE A REPLY

Please enter your comment!
Please enter your name here