PowerShell package installation¶
PowerShell serves as a primary interface for package management on Windows, particularly through the use of tools like Chocolatey^[600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md].
Chocolatey¶
Chocolatey is a command-line package manager that allows users to automate the installation of software and development tools directly from the PowerShell terminal^[600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md].
Installation¶
To install Chocolatey, the PowerShell terminal must be opened with Administrator privileges^[600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md]. The installation is performed by executing a specific command that sets the execution policy, updates security protocols, and downloads the installation script^[600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md].
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Usage¶
Once installed, users can utilize the choco command to manage software. For example, to search for a package like Node.js, the following command is used^[600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md]:
C:\> choco Search nodejs
Additionally, Chocolatey can be used to install essential utilities such as unzip and zip^[600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md].
Related Concepts¶
- [[Package managers]]
- [[Windows]]
- [[PowerShell]]
Sources¶
600-developer__tools__windows__THE-PACKAGE-MANAGER-FOR-WINDOWS.md