Win-Software-Init-Chocolate

Win-Software-Init-Chocolate

关于Chocolatey

Chocolatey是一款专为Windows系统开发的、基于NuGet的包管理器工具, 类似于Node.js的npm,MacOS的brew,Ubuntu的apt-get,它简称为choco。 Chocolatey的设计目标是成为一个去中心化的框架,便于开发者按需快速安装应用程序和工具。 choco.exe Chocolatey v0.10.15 Please run 'choco -?' or 'choco -?' for help menu.

Chocolatey的官网:

https://chocolatey.org/ https://chocolatey.org/install https://chocolatey.org/packages 可安装包搜索页面

安装Chocolatey命令

cmd下管理员权限登录

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

powershell下管理员权限登录

iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

常用命令

列出本地已安装包


choco list --local-only
=============
Chocolatey v0.10.15
chocolatey 0.10.15
1 packages installed.
=============

列出Windows系统已安装的软件

choco list -li
===============
WPS Office (11.1.0.8612)|11.1.0.8612
YY8|8.34.0.0
爱奇艺|6.6.76.6256
爱奇艺万能播放器|3.2.49.4280
爱思助手7.0|7.90.021
百度网盘|6.6.0
酷狗音乐|8.2.24.20664
快剪辑 1.2.0.4006|1.2.0.4006
美图看看 2.7.8|2.7.8
美图秀秀 4.0.1 |
驱动精灵|2015
搜狗输入法 9.3正式版|9.3.0.3129
腾讯QQ|8.9.20029.0
腾讯桌面整理|2.9.1064.127
网易有道词典|8.5
微信|2.4.1.67
微信web开发者工具 1.02.1802270|1.02.1802270
小米助手|
小鸟壁纸(原360壁纸)|3.5.0.2242
迅雷9|9.0.17.424
132 applications not managed with Chocolatey.
===============



choco list -lai
=========================
Chocolatey v0.10.15
chocolatey 0.10.15
1 packages installed.
----------
腾讯桌面整理|2.9.1064.127
网易有道词典|8.5
微信|2.4.1.67
微信web开发者工具 1.02.1802270|1.02.1802270
小米助手|
小鸟壁纸(原360壁纸)|3.5.0.2242
迅雷9|9.0.17.424
132 applications not managed with Chocolatey.

升级所有已安装的包

choco upgrade all -y

固定包的版本,防止包被升级

 choco pin windirstat

安装包的安装

choco install chrome      // 需要输入 y 有交互
choco install chrome -y       // 自动输入-y

安装包的卸载

choco uninstall chrome

search 搜索包

choco search chrome

https://chocolatey.org/packages    可安装包搜索页面

choco -? 帮助手册

choco -?

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

Commands

 * list - lists remote or local packages
 * find - searches remote or local packages (alias for search)
 * 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, saves or deletes an apikey for a particular source (alias for apikey)
 * apikey - retrieves, saves or deletes 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)


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

How To Pass Options / Switches

You can pass options and switches in the following ways:

 * Unless stated otherwise, an option/switch should only be passed one
   time. Otherwise you may find weird/non-supported behavior.
 * `-`, `/`, or `--` (one character switches should not use `--`)
 * **Option Bundling / Bundled Options**: One character switches can be
   bundled. e.g. `-d` (debug), `-f` (force), `-v` (verbose), and `-y`
   (confirm yes) can be bundled as `-dfvy`.
 * NOTE: If `debug` or `verbose` are bundled with local options
   (not the global ones above), some logging may not show up until after
   the local options are parsed.
 * **Use Equals**: You can also include or not include an equals sign
   `=` between options and values.
 * **Quote Values**: When you need to quote an entire argument, such as
   when using spaces, please use a combination of double quotes and
   apostrophes (`"'value'"`). In cmd.exe you can just use double quotes
   (`"value"`) but in powershell.exe you should use backticks
   (`` `"value`" ``) or apostrophes (`'value'`). Using the combination
   allows for both shells to work without issue, except for when the next
   section applies.
 * **Pass quotes in arguments**: When you need to pass quoted values to
   to something like a native installer, you are in for a world of fun. In
   cmd.exe you must pass it like this: `-ia "/yo=""Spaces spaces"""`. In
   PowerShell.exe, you must pass it like this: `-ia '/yo=""Spaces spaces""'`.
   No other combination will work. In PowerShell.exe if you are on version
   v3+, you can try `--%` before `-ia` to just pass the args through as is,
   which means it should not require any special workarounds.
 * **Periods in PowerShell**: If you need to pass a period as part of a
   value or a path, PowerShell doesn't always handle it well. Please
   quote those values using "Quote Values" section above.
 * Options and switches apply to all items passed, so if you are
   installing multiple packages, and you use `--version=1.0.0`, choco
   is going to look for and try to install version 1.0.0 of every
   package passed. So please split out multiple package calls when
   wanting to pass specific options.

Scripting / Integration - Best Practices / Style Guide

When writing scripts, such as PowerShell scripts passing options and
switches, there are some best practices to follow to ensure that you
don't run into issues later. This also applies to integrations that
are calling Chocolatey and parsing output. Chocolatey **uses**
PowerShell, but it is an exe, so it cannot return PowerShell objects.

Following these practices ensures both readability of your scripts AND
compatibility across different versions and editions of Chocolatey.
Following this guide will ensure your experience is not frustrating
based on choco not receiving things you think you are passing to it.

 * For consistency, always use `choco`, not `choco.exe`. Never use
   shortcut commands like `cinst` or `cup`.
 * Always have the command as the first argument to `choco. e.g.
   `choco install`, where `install` is the command.
 * If there is a subcommand, ensure that is the second argument. e.g.
   `choco source list`, where `source` is the command and `list` is the
   subcommand.
 * Typically the subject comes next. If installing packages, the
   subject would be the package names, e.g. `choco install pkg1 pkg2`.
 * Never use 'nupkg' or point directly to a nupkg file UNLESS using
   'choco push'. Use the source folder instead, e.g. `choco install
   <package id> --source="'c:\folder\with\package'"` instead of
   `choco install DoNotDoThis.1.0.nupkg` or `choco install DoNotDoThis
    --source="'c:\folder\with\package\DoNotDoThis.1.0.nupkg'"`.
 * Switches and parameters are called simply options. Options come
   after the subject. e.g. `choco install pkg1 --debug --verbose`.
 * Never use the force option (`--force`/`-f`) in scripts (or really
   otherwise as a default mode of use). Force is an override on
   Chocolatey behavior. If you are wondering why Chocolatey isn't doing
   something like the documentation says it should, it's likely because
   you are using force. Stop.
 * Always use full option name. If the short option is `-n`, and the
   full option is `--name`, use `--name`. The only acceptable short
   option for use in scripts is `-y`. Find option names in help docs
   online or through `choco -?` /`choco [Command Name] -?`.
 * For scripts that are running automated, always use `-y`. Do note
   that even with `-y` passed, some things / state issues detected will
   temporarily stop for input - the key here is temporarily. They will
   continue without requiring any action after the temporary timeout
   (typically 30 seconds).
 * Full option names are prepended with two dashes, e.g. `--` or
   `--debug --verbose --ignore-proxy`.
 * When setting a value to an option, always put an equals (`=`)
   between the name and the setting, e.g. `--source="'local'"`.
 * When setting a value to an option, always surround the value
   properly with double quotes bookending apostrophes, e.g.
   `--source="'internal_server'"`.
 * If you are building PowerShell scripts, you can most likely just
   simply use apostrophes surrounding option values, e.g.
   `--source='internal_server'`.
 * Prefer upgrade to install in scripts. You can't `install` to a newer
   version of something, but you can `choco upgrade` which will do both
   upgrade or install (unless switched off explicitly).
 * If you are sharing the script with others, pass `--source` to be
   explicit about where the package is coming from. Use full link and
   not source name ('https://chocolatey.org/api/v2' versus
   'chocolatey').
 * If parsing output, you might want to use `--limit-output`/`-r` to
   get output in a more machine parseable format. NOTE: Not all
   commands handle return of information in an easily digestible
   output.
 * Use exit codes to determine status. Chocolatey exits with 0 when
   everything worked appropriately and other exits codes like 1 when
   things error. There are package specific exit codes that are
   recommended to be used and reboot indicating exit codes as well. To
   check exit code when using PowerShell, immediately call
   `$exitCode = $LASTEXITCODE` to get the value choco exited with.

Here's an example following bad practices (line breaks added for
 readability):

  `choco install pkg1 -y -params '/Option:Value /Option2:value with
   spaces' --c4b-option 'Yaass' --option-that-is-new 'dude upgrade'`

Now here is that example written with best practices (again line
 breaks added for readability - there are not line continuations
 for choco):

  `choco upgrade pkg1 -y --source="'https://chocolatey.org/api/v2'"
   --package-parameters="'/Option:Value /Option2:value with spaces'"
   --c4b-option="'Yaass'" --option-that-is-new="'dude upgrade'"`

Note the differences between the two:
 * Which is more self-documenting?
 * Which will allow for the newest version of something installed or
   upgraded to (which allows for more environmental consistency on
   packages and versions)?
 * Which may throw an error on a badly passed option?
 * Which will throw errors on unknown option values? See explanation
   below.

Chocolatey ignores options it doesn't understand, but it can only
 ignore option values if they are tied to the option with an
 equals sign ('='). Note those last two options in the examples above?
 If you roll off of a commercial edition or someone with older version
 attempts to run the badly crafted script `--c4b-option 'Yaass'
 --option-that-is-new 'dude upgrade'`, they are likely to see errors on
 'Yaass' and 'dude upgrade' because they are not explicitly tied to the
 option they are written after. Now compare that to the other script.
 Choco will ignore `--c4b-option="'Yaass'"` and
 `--option-that-is-new="'dude upgrade'"` as a whole when it doesn't
 register the options. This means that your script doesn't error.

Following these scripting best practices will ensure your scripts work
 everywhere they are used and with newer versions of Chocolatey.


Default Options and Switches

 -?, --help, -h
     Prints out the help menu.

 -d, --debug
     Debug - Show debug messaging.

 -v, --verbose
     Verbose - Show verbose messaging. Very verbose messaging, avoid using
       under normal circumstances.

     --trace
     Trace - Show trace messaging. Very, very verbose trace messaging. Avoid
       except when needing super low-level .NET Framework debugging. Available
       in 0.10.4+.

     --nocolor, --no-color
     No Color - Do not show colorization in logging output. This overrides
       the feature 'logWithoutColor', set to 'False'. Available in 0.10.9+.

     --acceptlicense, --accept-license
     AcceptLicense - Accept license dialogs automatically. Reserved for
       future use.

 -y, --yes, --confirm
     Confirm all prompts - Chooses affirmative answer instead of prompting.
       Implies --accept-license

 -f, --force
     Force - force the behavior. Do not use force during normal operation -
       it subverts some of the smart behavior for commands.

     --noop, --whatif, --what-if
     NoOp / WhatIf - Don't actually do anything.

 -r, --limitoutput, --limit-output
     LimitOutput - Limit the output to essential information

     --timeout, --execution-timeout=VALUE
     CommandExecutionTimeout (in seconds) - The time to allow a command to
       finish before timing out. Overrides the default execution timeout in the
       configuration of 2700 seconds. '0' for infinite starting in 0.10.4.

 -c, --cache, --cachelocation, --cache-location=VALUE
     CacheLocation - Location for download cache, defaults to %TEMP% or value
       in chocolatey.config file.

     --allowunofficial, --allow-unofficial, --allowunofficialbuild, --allow-unofficial-build
     AllowUnofficialBuild - When not using the official build you must set
       this flag for choco to continue.

     --failstderr, --failonstderr, --fail-on-stderr, --fail-on-standard-error, --fail-on-error-output
     FailOnStandardError - Fail on standard error output (stderr), typically
       received when running external commands during install providers. This
       overrides the feature failOnStandardError.

     --use-system-powershell
     UseSystemPowerShell - Execute PowerShell using an external process
       instead of the built-in PowerShell host. Should only be used when
       internal host is failing. Available in 0.9.10+.

     --no-progress
     Do Not Show Progress - Do not show download progress percentages.
       Available in 0.10.4+.

     --proxy=VALUE
     Proxy Location - Explicit proxy location. Overrides the default proxy
       location of ''. Available for config settings in 0.9.9.9+, this CLI
       option available in 0.10.4+.

     --proxy-user=VALUE
     Proxy User Name - Explicit proxy user (optional). Requires explicity
       proxy (`--proxy` or config setting). Overrides the default proxy user of
       ''. Available for config settings in 0.9.9.9+, this CLI option available
       in 0.10.4+.

     --proxy-password=VALUE
     Proxy Password - Explicit proxy password (optional) to be used with
       username. Requires explicity proxy (`--proxy` or config setting) and
       user name.  Overrides the default proxy password (encrypted in settings
       if set). Available for config settings in 0.9.9.9+, this CLI option
       available in 0.10.4+.

     --proxy-bypass-list=VALUE
     ProxyBypassList - Comma separated list of regex locations to bypass on
       proxy. Requires explicity proxy (`--proxy` or config setting). Overrides
       the default proxy bypass list of ''. Available in 0.10.4+.

     --proxy-bypass-on-local
     Proxy Bypass On Local - Bypass proxy for local connections. Requires
       explicity proxy (`--proxy` or config setting). Overrides the default
       proxy bypass on local setting of 'True'. Available in 0.10.4+.

     --log-file=VALUE
     Log File to output to in addition to regular loggers. Available in 0.1-
       0.8+.
Chocolatey v0.10.15

常用安装包


choco install notepadplusplus.install -y              # notepad++
choco install git.install -y
choco install skype -y
choco install filezilla -y
choco install curl -y
choco install teamviewer -y
choco install treesizefree -y
choco install ruby -y
choco install python -y          #   python3.7.3   
choco install virtualbox -y
choco install firefoxesr -y
choco install chocolateygui -y
choco install wireshark -y
choco install golang -y              # go 语言
choco install intellijidea-community -y     # intelij
choco install google-chrome-x64 -y

choco install osquery -y              # facebook开发  osqueryi.exe
https://blog.spoock.com/2018/11/26/osquery-intro/
choco install cmder -y
choco install googledrive -y

choco install kubernetes-cli -y

choco install docker -y
choco install everything -y
choco install ffmpeg -y
choco install ninja -y
choco install cpu-z.install -y

choco install googleearth -y
choco install googleearthpro -y

choco install mysql -y
 choco install vnc-viewer -y
choco install docker-for-windows -y
https://chocolatey.org/packages?sortOrder=package-download-count&page=10&prerelease=False&moderatorQueue=False
choco install androidstudio -y
choco install dart-sdk -y
choco install beyondcompare  -y
choco install pycharm-community -y

choco install 360ts -y      ### 360安全管家
choco install sharex   -y    ## 屏幕录制软件
choco install screentogif  -y   ## 录制屏幕GIF
choco install graphviz -y         ## 点图

choco install jenkins -y   ## 持续集成CI-jenkins

choco install markdownpad2 -y   ### markdownpad
choco install exiftool -y      ##  查看图片的 exif的值
 
choco install tablacus -y   ## 标签文件

choco install fsviewer -y    ## 图片尺寸 批量查看


http://plantuml.com/zh/sequence-diagram
https://blog.csdn.net/junhuahouse/article/details/80767632
 choco install plantuml -y          ## 类图流程图
choco install software-ideas-modeler -y   ## UML  类图 流程图
choco install mediainfo -y    ## 多媒体文件参数显示软件
https://chocolatey.org/packages?sortOrder=package-download-count&page=21&prerelease=False&moderatorQueue=False



choco install adb  -y    ##  安卓ADB


choco install geogebra -y  ## 几何画板的动态数学软件
choco install geogebra6 -y  

choco install potplayer  -y  ##  视频播放器


choco install clover -y     ## 文件标签

choco install webstorm  -y    ##  html 开发 


choco install hwmonitor -y     ## cpu 检测


choco install skypeforbusiness -y    ## skype

choco install clipgrab -y    ##  视频 url 下载到本地

choco install dex2jar  -y     ## 解析 class 为 jar


choco install rapidee -y   ## 环境变量编辑器

choco install copyq -y    ##  剪切板增强工具
choco install clipx -y    ##  多保存复制剪切板

choco install geekuninstaller -y    ## 卸载工具


choco install apktool -y     ## apktool 安卓工具



choco install choco-package-list-backup  -y    ## 生成chocolate的当前配置文件  方便移植到其他机器
choco install chocolateyexplorer -y            ##  看不懂


https://blog.csdn.net/thinkeydeng/article/details/82758076
choco install wox -y    ## Wox工具使用-释放双手的神器(window快速搜索文件启动程序软件)



choco install cheatengine  -y    ## 进程查看器 cheatengine



choco install wps-office-free  -y     ##  WPS套件

安装离线宝  https://kapeli.com/dash#docsets
https://zealusercontributions.now.sh/
choco install zeal.install -y     ## 开发程序API

choco install orwelldevcpp -y    ## DevC  C语言IDE



choco install shadowsocks  -y    ## VPN

https://chocolatey.org/packages?sortOrder=package-download-count&page=51&prerelease=False&moderatorQueue=False


choco install fscapture -y    ## 滚动截图工具


choco install systemninja -y   ## 系统清理软件 开机启动管理


choco install nexusfile -y    ## 双窗口文件资源管理器软件

choco install time4popcorn -y    ## 种子边下载边观看

choco install tcpview -y       ##   tcp 连接显示软件


choco install usbdeview -y     ##  检测USB使用记录


choco install dexpot -y   ## 类似Linux下工作区的软件 


choco install dspeech -y   ##  文本转语音工具

choco install mactype -y   ##  字体软件

choco install aquasnap -y   ## 桌面排版对齐软件  按住shift 然后拖拽窗口到边缘


choco install aida64-extreme   -y   ##  系统信息工具

choco install renamer   -y    ## 批量依据规则重命名软件

choco install javadecompiler-gui  -y    ## JD-gui 查看Java代码工具

choco install haroopad -y   ### 同markdownpad2一样的 markdown编辑器 当时 Linux Mac  Win 通用
choco install teamviewer9 -y  ##  远程控制 teamviewer

https://www.sohu.com/a/193342064_278730
choco install stickies -y   ## 便签   闹钟  抖动

choco install flutter  -y    ## google的  flutter的 SDK

choco install free-hex-editor-neo  -y    ##  二进制查看软件

https://chocolatey.org/packages?sortOrder=package-download-count&page=71&prerelease=False&moderatorQueue=False


https://chocolatey.org/packages?sortOrder=package-download-count&page=71&prerelease=False&moderatorQueue=False

choco install docfetcher -y    ##  文件内容搜索工具 http://news.mydrivers.com/1/585/585900.htm

choco install jsonedit -y    ##  json 编辑器

choco install ecm -y    ##  右键菜单管理

choco install zoomit -y  ##  屏幕标注 放大 演示工具 Ctrl+1 方法   Ctrl+2 书写  https://www.jianshu.com/p/76b78af068f5 

choco install wps-office-free -y   ##  金山WPS 

choco install activepresenter  -y   ##  录屏软件 


choco install nbfc -y   ##  笔记本风扇转数调节软件  https://www.playbeta.net/download/13574.html

https://chocolatey.org/packages?sortOrder=package-download-count&page=83&prerelease=False&moderator

choco install ollydbg -y   ##  软件逆向分析工具


choco install mousecontroller -y   ##  鼠标功能自定义软件  左击  右击  上下滚动   https://www.cr173.com/soft/24470.html


choco install ghidra -y  ## 来自美国NSA航天局的逆向工程软件


choco install google-hangouts-chrome  -y   ## 谷歌浏览器 hangout聊天软件


choco install wordpress-com-for-desktop -y   ##  没用过  先记录


choco install npppluginmanager -y    ##  notepad 插件管理

https://chocolatey.org/packages?sortOrder=package-download-count&page=103&prerelease=False&moderatorQueue=False


choco install liteide  -y    ## go 语言集成开发环境 IDE


http://www.pc6.com/softview/SoftView_281340.html
碰到一些软件上的文本信息就不能进行复制了。Textify可以轻松复制软件中的文本信息,功能十分实用。默认采用的是shift+鼠标中键的方法进行复制。
choco install textify -y  ## 不可复制文本窗口的文字变得可复制的工具


choco install scummvm -y   ## 传统 Dos 时代游戏平台


choco install imageconverter -y    ##  多图像转为 PDF文件的工具






http://www.pc6.com/softview/SoftView_556776.html
SG TCP Optimizer便携版能够通过调整系统的TTL、TCP/IP、宽带延迟、MTU、注册表等网络参数有效优化网络环境,提升上网速度!
choco install tcpoptimizer -y   ##  调整系统的TTL、TCP/IP、宽带延迟、MTU、注册表等网络参数



choco install turnedontimesview -y   ##  查看电脑开关记录软件  http://www.greenxf.com/soft/234415.html


choco install  RapidMiner -y    ## 数据挖掘工具


choco install exiftoolgui -y    ##  图片 exif查看工具


iReboot是一款非常适合多系统的电脑,能够在当前系统下直接选择下次重启的系统,而不必担心重启时错过系统选择界面,导致不必要的再次重启!
choco install ireboot -y    ##  在当前系统下直接选择下次重启的系统 http://www.pc0359.cn/downinfo/22615.html




http://www.pc0359.cn/downinfo/95678.html
choco install excelconverter -y   ## excel转换工具


https://chocolatey.org/packages?sortOrder=package-download-count&page=109&prerelease=False&moderatorQueue=False



runasdate 64位版是一款用来破解有时间限制软件的小工具,runasdate可以帮助用户建立在指定的日期和时间运行程序
choco install runasdate -y    ##  http://www.huacolor.com/soft/23751.html






http://www.pc6.com/softview/SoftView_31106.html
choco install battoexeconverter -y    ##  bat文件转为exe可执行文件的工具

https://chocolatey.org/packages?sortOrder=package-download-count&page=112&prerelease=False&moderatorQueue=False