choco使用记录
2018-09-19 本文已影响0人
一点金光
---
title: choco使用记录
date: 2018.09.19 17:43:00
updated: 2019-05-25 12:00:00
categories:
- web
tags:
- windows
- choco
---
目录
# 用途
# 安装
# 使用
# ----》搜索软件
# ----》安装软件
# ----》查看软件
# ----》升级软件
# ----》卸载软件
# 更新
# 卸载
# 类库
用途
Chocolatey is a package manager for Windows (like apt-get or yum but for Windows)
安装
用管理员打开cmd,执行以下命令:
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex
((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'
))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
使用
#### 搜索软件
choco search curl -all
choco search node
#### 安装软件
choco install jdk8
choco install python
choco install ruby
choco uninstall ruby
#### 查看软件
choco list -localonly
choco list -li
choco list -lai
choco list --page=0 --page-size=25
choco search git
choco search git -s "'https://somewhere/out/there'"
choco search bob -s "'https://somewhere/protected'" -u user -p pass
#### 升级软件
choco upgrade curl
#### 卸载软件
choco uninstall curl
更新
choco upgrade chocolatey
卸载
//https://chocolatey.org/docs/uninstallation
类库
https://chocolatey.org/packages