首页 技术 正文
技术 2022年11月10日
0 收藏 561 点赞 4,327 浏览 2728 个字

What is Chocolatey?

Chocolatey is a software management solution unlike anything else you’ve ever experienced on Windows. It focuses on simplicity, security, and scalability. You write a software deployment in PowerShell once for any software (not just installers), then you can deploy it everywhere you have Windows with any solution that can manage systems (configuration management, endpoint management, etc) and track and manage updates of that software over time. Manage software on-premise, in the “Cloud”, or in Docker containers with Chocolatey.

Whew, that was a mouthful! For a bit more detail into what all of that means and more, see What is Chocolatey?

通过Powershell安装Chocolatey

Write-Output"Install Chocolatey"
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
Write-Output"Globally Auto confirm every action"
choco feature enable -n allowGlobalConfirmation

通过Chocolatey安装其它软件

Write-Output"Installing Packages"
choco install notepadplusplus
choco install awscli --version 1.16.88
choco install putty
choco install jdk8
choco install jre8
choco install python3
choco install tomcat
choco install GoogleChrome
choco install sourcetree
choco install jenkins
choco install visualstudio2017-installer
choco install webdeploy
choco install mysql
choco install mysql-connector
choco install mysql.workbench

Command Reference

This is a listing of all of the different things you can pass to choco.

Commands

  • list – lists remote or local packages
  • search – searches remote or local packages (alias for list)
  • info – retrieves package information. Shorthand for choco search pkgname –exact –verbose
  • install – installs packages from various sources
  • pin – suppress upgrades for a package
  • outdated – retrieves packages that are outdated. Similar to upgrade all –noop
  • upgrade – upgrades packages from various sources
  • uninstall – uninstalls a package
  • pack – packages up a nuspec to a compiled nupkg
  • push – pushes a compiled nupkg
  • new – generates files necessary for a chocolatey package from a template
  • sources – view and configure default sources (alias for source)
  • source – view and configure default sources
  • config – Retrieve and configure config file settings
  • feature – view and configure choco features
  • features – view and configure choco features (alias for feature)
  • setapikey – retrieves or saves an apikey for a particular source (alias for apikey)
  • apikey – retrieves or saves an apikey for a particular source
  • unpackself – have chocolatey set itself up
  • version – [DEPRECATED] will be removed in v1 – use choco outdated or cup <pkg|all> -whatif instead
  • update – [DEPRECATED] RESERVED for future use (you are looking for upgrade, these are not the droids you are looking for)
  • support – provides support information
  • download – downloads packages – optionally internalizing all remote resources
  • synchronize – synchronizes against system installed software – generates missing packages
  • sync – synchronizes against system installed software – generates missing packages
  • optimize – optimizes installation, reducing space usage

Please run chocolatey with choco command -help for specific help on
each command.

参考

https://chocolatey.org/

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,083
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,557
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,406
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,179
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,815
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,898