Chocolatey

From HackerNet
Revision as of 15:35, 15 February 2016 by Sparco (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Chocolatey är en pakethanterare för Windows, som apt och yum.

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

Installera

Starta cmd som admin och skriv,

choco install git 7zip vlc firefox -y

Söka

choco search firefox

GUI

choco install chocolateygui