Difference between revisions of "Chocolatey"
From HackerNet
Line 2: | Line 2: | ||
==Installation== | ==Installation== | ||
+ | Du kan installera via cmd eller powershell. | ||
+ | ===CMD=== | ||
+ | Kör cmd som admin. | ||
+ | @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SETPATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | ||
+ | |||
+ | ===Powershell=== | ||
Kör powershell som admin. | Kör powershell som admin. | ||
<syntaxhighlight lang=powershell>iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))</syntaxhighlight> | <syntaxhighlight lang=powershell>iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))</syntaxhighlight> | ||
+ | |||
+ | Se till att <code>Get-ExecutionPolicy</code> är satt till bypass. | ||
+ | Set-ExecutionPolicy bypass | ||
==Exempel== | ==Exempel== |
Revision as of 17:53, 3 August 2015
Chocolatey är en pakethanterare för Windows, som apt-get och yum.
Contents
Installation
Du kan installera via cmd eller powershell.
CMD
Kör cmd som admin.
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SETPATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
Powershell
Kör powershell som admin.
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
Se till att Get-ExecutionPolicy
är satt till bypass.
Set-ExecutionPolicy bypass
Exempel
Starta cmd som admin och skriv,
choco install git 7zip vlc firefox -y
GUI
choco install chocolateygui