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/

Chocolatey - Windows Software Management Automation的更多相关文章

  1. Azure Management API 之 利用 Windows Azure Management Libraries 来控制Azure platform

    在此之前,我曾经发过一篇文章讲叙了如何利用Azure power shell team 提供的class library. 而就在这篇文章发布之后不久,我又发现微软发布了一个preview 版本的Wi ...

  2. Fedora 15 KDE中如何打开software management及如何应用

    Fedora 15 KDE中如何打开software management级如何应用 software management中有转载和卸载软件(Get and remove software)的功能 ...

  3. 快速找出System.Management.Automation.dll,c#调用powershell

    public static void InvokeSystemPS(string cmd) { List<string> ps = new List<string>(); ps ...

  4. 远程管理服务 Windows Remote Management (WS-Management)

    Windows Remote Management (WS-Management) Windows 远程管理(WinRM)服务执行 WS-Management 协议来实现远程管理.WS-Managem ...

  5. 开源自己用python封装的一个Windows GUI(UI Automation)自动化工具,支持MFC,Windows Forms,WPF,Metro,Qt

    首先,大家可以看下这个链接 Windows GUI自动化测试技术的比较和展望 . 这篇文章介绍了Windows中GUI自动化的三种技术:Windows API, MSAA - Microsoft Ac ...

  6. [Windows Azure] Management REST API Reference

    Management REST API Reference 27 out of 42 rated this helpful - Rate this topic The SQL Database Man ...

  7. Chocolatey——windows下的包管理器

    前言 windows 包管理器 | https://chocolatey.org/ 命令 文档 | https://chocolatey.org/docs 根据使用会补充命令

  8. Windows Automation API 3.0 Overview

    https://www.codemag.com/article/0810042 While general accessibility requirements (such as font color ...

  9. [Windows Azure] Walkthrough to Configure System Center Management Pack for Windows Azure Fabric Preview for SCOM 2012 SP1 (with a MetricsHub Bonus)

    The wait is finally over. This is a huge update to the Azure Management Pack over the one that was r ...

随机推荐

  1. HDU 1277 Nested Dolls

    题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1677 题意: 玩俄罗斯套娃,问最后至少还剩几个. 题解: 这题可以和拦截导弹做对比,因为这里是二维的 ...

  2. 今目标登录时报网络错误E110

    今目标登录的时候报错了,错误代码:E110不论怎么修改都修复不了,百度相关资料也没有,只能联系客服. 经过好久终于联系上了客服,客服给出的解决方案是修改:Enternet选项: 第一步:打开,控制面板 ...

  3. Kotlint集合简单总结

    1.数组操作 var testArray = Array<>("s","ss")或者 = arrayOf("s","s ...

  4. exce族函数详解

    exec函数族 函数族说明 fork() 函数用于创建一个新的子进程,该子进程几乎复制了父进程的全部内容,但是,这个新创建的子进程如何执行呢?exec 函数族就提供了一个在进程中启动另一个程序执行的方 ...

  5. linux 内核态调试函数BUG_ON()[转]

    一些内核调用可以用来方便标记bug,提供断言并输出信息.最常用的两个是BUG()和BUG_ON(). 当被调用的时候,它们会引发oops,导致栈的回溯和错误信息的打印.为什么这些声明会导致 oops跟 ...

  6. sharepoint content type publishing

    1. Create 1 Project Team sites (Site1) on SharePoint(可以用普通site)2. Go to http://<PCName>:8080/_ ...

  7. HDU4803_Poor Warehouse Keeper

    题目很有意思,我想说其实我在比赛的时候就看过了一下这个题目,今天才这么快搞出来吧. 其实总共按上键的次数不会超过10个,我们可以每次假设相隔按两次上键之间按了xi次下键,由于上键的次数是确定的,所以最 ...

  8. DRM Study

    1.DRM是什么? DRM,英文全称Digital Rights Management, 可以翻译为:数字版权管理.指的是出版者用来控制被保护对象的使用权的一些技术,这些技术保护的有数字化内容(例如: ...

  9. LeetCode 671. Second Minimum Node In a Binary Tree

    Given a non-empty special binary tree consisting of nodes with the non-negative value, where each no ...

  10. php获取字符串的编码格式的方法(函数)

    // 检测字符的编码格式 $encode = mb_detect_encoding($string, array('ASCII','UTF-8','GB2312','GBK','BIG5')); ec ...