Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pub:chocolatey [2021/12/24 08:40] – [cmd-admin] derekpub:chocolatey [2023/08/28 13:18] (current) – removed derek
Line 1: Line 1:
-== chocolatey 
-  * https://chocolatey.org/docs/installation 
- 
-=== win7/2008r2 prerequisites 
-* pwsh core not supported yet 
-* [[windows 7]] requirements 
-=== cmd-admin 
-  * Win-R -> ''cmd'' -> Ctrl-Shift-Enter 
- 
-  @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" 
-=== powershell-admin 
-  * Win-R -> ''poweshell'' -> Ctrl-Shift-Enter 
- 
-  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')) 
-=== config chocolatey 
- 
-  choco feature enable -n allowGlobalConfirmation 
-  choco feature enable -n useRememberedArgumentsForUpgrades 
- 
-=== install 
- 
-<code dos> 
-choco install 7zip.commandline wget curl aria2 sudo which 
- 
-choco install wget --ignore-checksums        # ignore checksums 
-choco list -lo                               # list locally installed packages 
-choco outdated                               # list outdated packages 
-</code> 
- 
-=== uninstall 
-  choco uninstall <package>                              ## normal uninstall 
-  choco uninstall <package> --force                      ## force uninstall 
-  choco uninstall <package> -n -skipautouninstaller      ## delete a package in choco 
- 
-=== upgrade 
- 
-  choco upgrade chocolatey   ## upgrade itself 
-  choco upgrade all          ## upgrade all 
-  choco upgrade wget         ## upgrade single package 
- 
-=== pin 
- 
-  choco pin 
-  choco pin list 
-  choco pin add -n=git 
-  choco pin add -n=git --version 1.2.3 
-  choco pin remove --name git 
- 
- 
-=== clean up 
-* this will clean up the buggy ''sudo'' package 
- 
-  : choco install choco-cleaner 
-  choco install choco-cleaner --params "'/NOTASK:TRUE'" 
-  choco-cleaner 
- 
-=== use proxy 
-  choco config set proxy http://localhost:8888 
-  choco config set proxyUser username 
-  choco config set proxyPassword password 
-