Skip to content

Instantly share code, notes, and snippets.

@grafst
Last active December 4, 2020 08:12
Show Gist options
  • Save grafst/b84662eef763ed2907c400dbc6b3d500 to your computer and use it in GitHub Desktop.
Save grafst/b84662eef763ed2907c400dbc6b3d500 to your computer and use it in GitHub Desktop.
choclatey installieren und verwenden

Chocolatey

Windows Equivalent zu aptitude und homebrew - Installiere Software à la 20xx

Installieren

  1. Powershell als Administrator ausführen
  2. Scripts für diese Session erlauben: Set-ExecutionPolicy Bypass -Scope Process -Force
  3. Installer downloaden und ausführen: iex(wget https://chocolatey.org/install.ps1)
  4. mit y bestätigen
  5. refreshenv oder powershell schliessen und neu öffnen (wieder als Administrator)
  6. Pakete installieren mit choco install ... z.B. choco install 7zip

Tipps

  • Bei Fehler "Internet Explorer engine is not available": Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2
  • Immer Administrator Shell verwenden (Tipp: Ctrl+Shift+Enter startet ein beliebiges Program als Administrator)
  • Internet Explorer muss mindestens 1 mal ausgeführt worden sein vor der installation
  • um die Bestätigung vorwegzunehmen: -y z.B.: choco install adobereader -y
  • um die Bestätigung abzuschalten: choco feature enable -n=allowGlobalConfirmation
  • noch kürzer: cinst z.B.:cinst vlc ;)
  • upgraden: choco upgrade oder cup. Ist das Programm noch nicht installiert wird es installiert

Pakete

  • verfügbare Pakete findet man auf chocolatey.org/packages
  • notepad++ heist notepadplusplus
  • google chrome heisst googlechrome
@grafst
Copy link
Author

grafst commented Apr 23, 2020

It seems that since recently you have to run [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12` before downloading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment